+ int i,count;
+ t_job job;
+ char data;
+ char string[MAX_CONTENT];
+
+ data=GUI_INFO;
+
+ /* request information */
+ network_send_chan(net,0,&data,sizeof(unsigned char));
+
+ /* receive information */
+ network_receive_chan(net,0,&data,sizeof(unsigned char));
+ if(data!=GUI_INFO) {
+ display_new_line(display,"no gui info answer, ignored");
+ return -1;
+ }
+
+ network_receive_chan(net,0,(unsigned char *)&count,sizeof(int));
+ for(i=0;i<count;i++) {
+ network_receive_chan(net,0,(unsigned char *)&job,sizeof(t_job));
+ snprintf(string,MAX_CONTENT,
+ "channel %d %c => b=%f c=%f s=%f | d: %d %f | %d",
+ job.channel,job.status&IN_WORK?'a':'q',
+ job.info.b,job.info.c,job.info.s,
+ job.info.diff_rate,job.info.dr_ac,job.progress);
+ display_new_line(display,string);
+ }
+
+ display_new_line(display,"done");
+