X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fsocket.h;h=eede70564a4f4808a29cb590cf6c0351b72ff42c;hb=cc567c9beace114554f7e7f50c3a5181cc44a07d;hp=39e00deea46339f38f578b1665bcea2ce72a3fe8;hpb=3900e5fdff688dc3c273f177d9d913b7389d5561;p=elogind.git diff --git a/src/core/socket.h b/src/core/socket.h index 39e00deea..eede70564 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -101,7 +101,11 @@ struct Socket { unsigned max_connections; unsigned backlog; + unsigned keep_alive_cnt; usec_t timeout_usec; + usec_t keep_alive_time; + usec_t keep_alive_interval; + usec_t defer_accept; ExecCommand* exec_command[_SOCKET_EXEC_COMMAND_MAX]; ExecContext exec_context; @@ -134,6 +138,7 @@ struct Socket { /* Socket options */ bool keep_alive; + bool no_delay; bool free_bind; bool transparent; bool broadcast; @@ -183,3 +188,5 @@ const char* socket_result_to_string(SocketResult i) _const_; SocketResult socket_result_from_string(const char *s) _pure_; const char* socket_port_type_to_string(SocketPort *p) _pure_; + +int socket_instantiate_service(Socket *s);