X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=network%2Fnetwork.h;h=e80995d93b4e051638591923fd771e8e0fdc13da;hb=HEAD;hp=7ef63019aef5cd6d91a34aeca476d0de19922e71;hpb=195f89f8c46af637b38761cb0f7a76d58eaaaa05;p=my-code%2Fapi.git diff --git a/network/network.h b/network/network.h index 7ef6301..e80995d 100644 --- a/network/network.h +++ b/network/network.h @@ -43,6 +43,8 @@ #define MAX_LISTEN_QUEUE 32 +#define MTU 1448 + /* net specific variables */ typedef struct s_connection { int fd; @@ -69,7 +71,6 @@ typedef struct s_net { /* function prototypes */ int network_init(t_net *net,int outfd); -int network_set_timeout(t_net *net,int chan,int read,int write); int network_listen(t_net *net); int network_shutdown(t_net *net); int network_set_listen_port(t_net *net,in_port_t port);