int network_shutdown(t_net *net) {
+ int channel;
+
+ for(channel=0;channel<MAX_CONNECTIONS;channel++)
+ if(net->connection[channel].status&C_SOCKET)
+ close(net->connection[channel].fd);
+
if(close(net->l_fd)==-1) {
perror("[network] close call");
return N_ERROR;