data=GUI_INFO;
- count=list_count(&(priv.job));
-
- printf("sending job info\n");
-
network_send_chan(&(priv.net),gi,&data,sizeof(unsigned char));
- network_send_chan(&(priv.net),gi,(unsigned char *)&count,sizeof(int));
+ printf("sending job + client list ...\n");
+ count=list_count(&(priv.job));
+ network_send_chan(&(priv.net),gi,(unsigned char *)&count,sizeof(int));
list_reset(&(priv.job));
for(i=0;i<count;i++) {
network_send_chan(&(priv.net),gi,priv.job.current->data,sizeof(t_job));
list_next(&(priv.job));
}
+ count=list_count(&(priv.client));
+ network_send_chan(&(priv.net),gi,(unsigned char *)&count,sizeof(int));
+ list_reset(&(priv.client));
+ for(i=0;i<count;i++) {
+ network_send_chan(&(priv.net),gi,priv.client.current->data,
+ sizeof(t_client));
+ list_next(&(priv.client));
+ }
+
return 1;
}