summaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 04:25:28 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 04:25:34 +0200
commit6cf6bbc2682c6df010d64ea7e49d93affa7282cd (patch)
tree510fd14e79d61bcf6f9628113c38de7d219f8671 /src/service.h
parenta3d4e06dfa234bf2a9398c8e534b705b68aa50a1 (diff)
socket: enforce limit on number of concurrent connections
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service.h b/src/service.h
index 7b85771a30..6c1612d0f5 100644
--- a/src/service.h
+++ b/src/service.h
@@ -137,13 +137,14 @@ struct Service {
RateLimit ratelimit;
int socket_fd;
+ struct Socket *socket;
Watch timer_watch;
};
extern const UnitVTable service_vtable;
-int service_set_socket_fd(Service *s, int fd);
+int service_set_socket_fd(Service *s, int fd, struct Socket *socket);
const char* service_state_to_string(ServiceState i);
ServiceState service_state_from_string(const char *s);