fixed drpintf for event + network api
[my-code/api.git] / network / network.h
index 079cea3..d234d9c 100644 (file)
@@ -52,6 +52,7 @@ typedef struct s_connection {
 } t_connection;
 
 typedef struct s_net {
+  int outfd;
   int l_fd; /* fd for tcp conn */
   int l_udp_fd; /* fd for udp data receive */
   int s_udp_fd; /* fd for udp data send */
@@ -66,7 +67,7 @@ typedef struct s_net {
 } t_net;
 
 /* function prototypes */
-int network_init(t_net *net);
+int network_init(t_net *net,int outfd);
 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);