aboutsummaryrefslogtreecommitdiff
path: root/Server.h
diff options
context:
space:
mode:
Diffstat (limited to 'Server.h')
-rwxr-xr-xServer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Server.h b/Server.h
index 2192e2b..0a55543 100755
--- a/Server.h
+++ b/Server.h
@@ -38,6 +38,11 @@ struct Server{
void (*on_disconnect)(struct Server *server, int socketFD);
};
+/*
+ * AF_INET, SOCK_STREAM, 0, INADDR_ANY, port, 10, launch_socket
+ * or
+ * AF_INET, SOCK_STREAM, 0, INADDR_ANY, port, 10, launch
+ */
struct Server server_constructor(int domain, int service, int protocol, u_long interface, int port, int backlog, pthread_t (*launch)(struct Server *server));
#endif /* Server_h */