diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-15 06:19:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-15 06:20:00 +0200 |
commit | 4f2d528d3bb25cebf8d3ebe83d8193ab4016cb90 (patch) | |
tree | 96336ea5c252c903ab4666d49714ececf949dfdf /service.h | |
parent | 9e2f7c11fb6ba35ffec2274da3e2d08b10d23965 (diff) |
socket: optionally call accept() for incoming connections and spawn one service instance per connection
Diffstat (limited to 'service.h')
-rw-r--r-- | service.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -112,11 +112,15 @@ struct Service { RateLimit ratelimit; + int socket_fd; + Watch timer_watch; }; extern const UnitVTable service_vtable; +int service_set_socket_fd(Service *s, int fd); + const char* service_state_to_string(ServiceState i); ServiceState service_state_from_string(const char *s); |