summaryrefslogtreecommitdiffstats
path: root/src/socket-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket-util.h')
-rw-r--r--src/socket-util.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/socket-util.h b/src/socket-util.h
new file mode 100644
index 00000000..1c4dbe35
--- /dev/null
+++ b/src/socket-util.h
@@ -0,0 +1,17 @@
+#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);
+
+#endif