From: hackbard Date: Tue, 18 May 2004 12:34:59 +0000 (+0000) Subject: corrected network udp functions X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=17fdfff130690ae3aa68a9bef133271e4c1061a9;p=my-code%2Fivac.git corrected network udp functions --- diff --git a/src/network.c b/src/network.c index b9c68aa..3cc7c83 100644 --- a/src/network.c +++ b/src/network.c @@ -266,7 +266,7 @@ int network_receive(int fd,unsigned char *data,int datasize) { return count; } -int network_udp_listen_init(t_net *net,int port) { +int network_udp_listen_init(t_net *net) { struct sockaddr_in addr; @@ -294,13 +294,6 @@ int network_udp_listen_init(t_net *net,int port) { return N_SUCCESS; } -int network_set_udp_ports(t_net *net,int port) { - - net->l_udp_port=port; - - return N_SUCCESS; -} - int network_udp_receive(t_net *net,int channel, unsigned char *data,int count) { struct sockaddr_in addr; diff --git a/src/network.h b/src/network.h index 5253191..60ae773 100644 --- a/src/network.h +++ b/src/network.h @@ -77,8 +77,7 @@ int network_deselect(t_net *net,int channel); int network_manage_incoming(t_net *net); int network_send(int fd,unsigned char *data,int datasize); int network_receive(int fd,unsigned char *data,int datasize); -int network_udp_listen_init(t_net *net,int port); -int network_set_udp_ports(t_net *net,int port); +int network_udp_listen_init(t_net *net); int network_udp_receive(t_net *net,int channel, unsigned char *data,int count); int network_udp_send(t_net *net,int channel, unsigned char *data,int size); int network_udp_shutdown(t_net *net);