From fbc07d62fcdebec39450d69aca254ab91c284ef4 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 16 Nov 2004 11:35:39 +0000 Subject: [PATCH] added gui functionality (show client info) --- nlsop_server.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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; } -- 2.39.2