network_send(gnet->connection[0].fd,gd3_l->status,c*sizeof(unsigned char));
network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char));
printf("debug: sent ac\n");
network_send(gnet->connection[0].fd,gd3_l->status,c*sizeof(unsigned char));
network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char));
printf("debug: sent ac\n");