void send_data(int signum) {
int c;
+ unsigned char ack=DATA_OK;
c=gd3_l->max_x*gd3_l->max_y*gd3_l->max_z;
network_send_chan(gnet,0,gd3_l->status,c*sizeof(unsigned char));
network_send_chan(gnet,0,(unsigned char *)gd3_l->extra,c*sizeof(int));
network_send_chan(gnet,0,(unsigned char *)gi,sizeof(int));
+ network_send_chan(gnet,0,&ack,sizeof(unsigned char));
if(dc==DC_QUIT) shut_down=1;
}
sizeof(int));
network_send(net->connection[0].fd,&data,sizeof(unsigned char));
}
+ if(c_step==0) {
+ printf("important: clear status/conc data!\n");
+ memset(d3_l.status,0,j*sizeof(unsigned char));
+ memset(d3_l.extra,0,j*sizeof(int));
+ }
}
else {
printf("unknown instruction, restarting ...\n");