diff options
Diffstat (limited to 'Server.c')
| -rwxr-xr-x | Server.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ #include <stdlib.h> #include <Server.h> -struct Server server_constructor(int domain, int service, int protocol, ulong interface, int port, int backlog, pthread_t(*launch)(struct Server *server)){ +struct Server server_constructor(int domain, int service, int protocol, ulong interface, int port, int backlog){ struct Server server; server.domain=domain; @@ -37,7 +37,9 @@ struct Server server_constructor(int domain, int service, int protocol, ulong in server.accepted_socket=NULL; - server.launch=launch; + server.on_message=NULL; + server.on_disconnect=NULL; + server.running=true; return server; |
