X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=nlsop_client.c;h=535dc89b2416995cc0c2a7d7f51555d8e6f37118;hp=3f7654992c2d43752580e09041b71909ec01547e;hb=520f56881396deed5206591ccc09f8734db8cc6b;hpb=b947acff653562c5be7d21128555a16f87924d18 diff --git a/nlsop_client.c b/nlsop_client.c index 3f76549..535dc89 100644 --- a/nlsop_client.c +++ b/nlsop_client.c @@ -312,21 +312,30 @@ void send_data(int signum) { printf("%d <-\n",c); network_send(gnet->connection[0].fd,&dc,1); - /* + network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); + printf("debug: sent dc\n"); + network_send(gnet->connection[0].fd,(unsigned char *)gd3_l, sizeof(d3_lattice)); + network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); + printf("debug: sent d3_lattice\n"); + network_send(gnet->connection[0].fd,(unsigned char *)gmy_info,sizeof(info)); - */ - printf("debug: sent dc\n"); + network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); + printf("debug: sent info\n"); + network_send(gnet->connection[0].fd,gd3_l->status,c*sizeof(unsigned char)); network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); printf("debug: sent ac\n"); + network_send(gnet->connection[0].fd,(unsigned char *)gd3_l->extra, c*sizeof(int)); network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); printf("debug: sent cc\n"); + network_send(gnet->connection[0].fd,(unsigned char *)gi,sizeof(int)); network_receive(gnet->connection[0].fd,&data,sizeof(unsigned char)); + printf("debug: sent steps\n"); }