unix-socket: add backlog size option to unix_stream_listen()
[alt-git.git] / unix-socket.h
blobec2fb3ea726714934d430c944c8af5b00f8ac061
1 #ifndef UNIX_SOCKET_H
2 #define UNIX_SOCKET_H
4 struct unix_stream_listen_opts {
5 int listen_backlog_size;
6 };
8 #define UNIX_STREAM_LISTEN_OPTS_INIT { 0 }
10 int unix_stream_connect(const char *path);
11 int unix_stream_listen(const char *path,
12 const struct unix_stream_listen_opts *opts);
14 #endif /* UNIX_SOCKET_H */