return L_SUCCESS;
}
+int list_del_current(t_list *list) {
+
+ return(list_del_element(list,list->current));
+}
+
int list_destroy(t_list *list) {
if(list->start==NULL) {
int list_reset(t_list *list);
int list_next(t_list *list);
int list_del_element(t_list *list,t_list_element *element);
+int list_del_current(t_list *list);
int list_destroy(t_list *list);
int list_search_data(t_list *list,void *data,int first_bytes);
int list_add_element(t_list *list,void *data,int data_len);
return datasize;
}
+int network_receive_chan(t_net *net,int chan,unsigned char *data,int datasize) {
+
+ return(network_receive(net->connection[chan].fd,data,datasize));
+}
+
int network_udp_listen_init(t_net *net) {
struct sockaddr_in addr;
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_receive_chan(t_net *net,int chan,unsigned char *data,int datasize);
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);