bugfixes
[my-code/api.git] / network / network.h
index d234d9c..bfb4ab4 100644 (file)
@@ -4,6 +4,7 @@
 #define NETWORK_H
 
 /* includes */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
@@ -68,6 +69,7 @@ typedef struct s_net {
 
 /* function prototypes */
 int network_init(t_net *net,int outfd);
+int network_listen(t_net *net);
 int network_shutdown(t_net *net);
 int network_set_listen_port(t_net *net,in_port_t port);
 int network_manage_connection(t_net *net);