diff options
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index 5a2cd06d9d..31b3870ef6 100644 --- a/src/socket.h +++ b/src/socket.h @@ -103,6 +103,8 @@ struct Socket { bool accept; unsigned n_accepted; + unsigned n_connections; + unsigned max_connections; bool failure; Watch timer_watch; @@ -118,6 +120,9 @@ void socket_notify_service_dead(Socket *s); * any of the sockets of this socket */ int socket_add_one_mount_link(Socket *s, Mount *m); +/* Called from the service code when a per-connection service ended */ +void socket_connection_unref(Socket *s); + extern const UnitVTable socket_vtable; const char* socket_state_to_string(SocketState i); |