From: hackbard Date: Tue, 16 Nov 2004 11:35:39 +0000 (+0000) Subject: added gui functionality (show client info) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=fbc07d62fcdebec39450d69aca254ab91c284ef4;p=physik%2Fnlsop.git added gui functionality (show client info) --- diff --git a/nlsop_server.c b/nlsop_server.c index 5a627db..4409108 100644 --- a/nlsop_server.c +++ b/nlsop_server.c @@ -228,19 +228,26 @@ int send_status(void) { 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;idata,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;idata, + sizeof(t_client)); + list_next(&(priv.client)); + } + return 1; }