summaryrefslogtreecommitdiffstats
path: root/src/socket-util.h
blob: 0133bfc3ba6f6ff5c4e14ce06ae270bffcff9ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef foosocketutilhfoo
#define foosocketutilhfoo

#include <sys/types.h>

void pa_socket_peer_to_string(int fd, char *c, size_t l);

int pa_socket_low_delay(int fd);
int pa_socket_tcp_low_delay(int fd);

int pa_socket_set_sndbuf(int fd, size_t l);
int pa_socket_set_rcvbuf(int fd, size_t l);

int pa_unix_socket_is_stale(const char *fn);
int pa_unix_socket_remove_stale(const char *fn);

int pa_unix_socket_make_secure_dir(const char *fn);
int pa_unix_socket_remove_secure_dir(const char *fn);

#endif