aboutsummaryrefslogtreecommitdiff
path: root/Server.c
diff options
context:
space:
mode:
Diffstat (limited to 'Server.c')
-rwxr-xr-xServer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Server.c b/Server.c
index 3fb55c6..8c3c8c4 100755
--- a/Server.c
+++ b/Server.c
@@ -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;