ServerSocket: use the SocketMonitor class

This commit is contained in:
Max Kellermann
2013-01-15 22:50:49 +01:00
parent a0ebd444ad
commit 0dd5f2915a
5 changed files with 40 additions and 56 deletions

View File

@@ -92,13 +92,15 @@ listen_systemd_activation(GError **error_r)
bool
listen_global_init(GError **error_r)
{
assert(main_loop != nullptr);
int port = config_get_positive(CONF_PORT, DEFAULT_PORT);
const struct config_param *param =
config_get_next_param(CONF_BIND_TO_ADDRESS, NULL);
bool success;
GError *error = NULL;
listen_socket = server_socket_new(listen_callback, NULL);
listen_socket = server_socket_new(*main_loop, listen_callback, NULL);
if (listen_systemd_activation(&error))
return true;