printf("receiving data from client (%d)\n",job->size);
data=DATA_OK;
- ret=network_receive_chan(net,channel,(unsigned char *)&d3l,
+ network_send_chan(net,channel,&data,sizeof(unsigned char));
+
+ network_receive_chan(net,channel,(unsigned char *)&d3l,
sizeof(d3_lattice));
network_send_chan(net,channel,&data,sizeof(unsigned char));
printf("debug: got d3_lattice\n");
- ret=network_receive_chan(net,channel,(unsigned char *)&info,sizeof(info));
+ network_receive_chan(net,channel,(unsigned char *)&info,sizeof(info));
network_send_chan(net,channel,&data,sizeof(unsigned char));
printf("debug: got info\n");
- ret=network_receive_chan(net,channel,job->ac,job->size*sizeof(unsigned char));
+ network_receive_chan(net,channel,job->ac,job->size*sizeof(unsigned char));
network_send_chan(net,channel,&data,sizeof(unsigned char));
printf("debug: got ac\n");
- ret=network_receive_chan(net,channel,(unsigned char *)job->cc,
+ network_receive_chan(net,channel,(unsigned char *)job->cc,
job->size*sizeof(int));
network_send_chan(net,channel,&data,sizeof(unsigned char));
printf("debug: got cc\n");
- ret=network_receive_chan(net,channel,(unsigned char *)&(job->step),
- sizeof(int));
+ network_receive_chan(net,channel,(unsigned char *)&(job->step),sizeof(int));
network_send_chan(net,channel,&data,sizeof(unsigned char));
printf("debug: got steps\n");
if(data==DC_END) {
save_job(net,i,j,DC_END);
/* reset client */
+ printf("client in state %c now\n",c->status&IDLE?'i':'a');
c->status=IDLE;
+ printf("now: %c\n",c->status&IDLE?'i':'a');
+ printf("it is channel %d\n",c->channel);
/* free job memory */
free(j->ac);
free(j->cc);