X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=nlsop_gui.c;h=e4677915503358528fd6b78e91b0785c2640f121;hp=ec9de6d160dd72dfe34e7f782af773882501d2a1;hb=fc979c38bf7883995b0cb16b44da01ff33eb2184;hpb=dfb3695b3cbe16607a7afa5e2eeefe4d7994c863 diff --git a/nlsop_gui.c b/nlsop_gui.c index ec9de6d..e467791 100644 --- a/nlsop_gui.c +++ b/nlsop_gui.c @@ -109,6 +109,7 @@ int send_and_wait_for_answer(t_net *net,t_display *display,t_input *input) { int i,count; t_job job; + t_client client; char data; char string[MAX_CONTENT]; @@ -124,6 +125,7 @@ int send_and_wait_for_answer(t_net *net,t_display *display,t_input *input) { return -1; } + display_new_line(display,input,"jobs:"); network_receive_chan(net,0,(unsigned char *)&count,sizeof(int)); for(i=0;ic_count==0) { switch(input->content[0]) { + case GUI_HELP: + display_help(display,input); + break; case GUI_INFO: send_and_wait_for_answer(net,display,input); break; @@ -342,7 +381,7 @@ int main(int argc,char **argv) /* default values */ strcpy(logfile,LOGFILE); - strcpy(server_ip,""); + strcpy(server_ip,"137.250.82.105"); port=1025; /* parse/check argv */