Forum Discussion
Altera_Forum
Honored Contributor
14 years agotse transmission get hanged in TCP protocal
Hello,everyone! I want to transfer data between my laptop(the OS is windows XP) and my Stratix III 3sl150 board through ethernet wire. I'm using the hardware and software design found here...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- while(1){ cnt++; for (i=0; i<100; i++) { send(sockClient,"1",2,0); printf("1 sent OK!\n\n"); } for (i=0; i<100; i++) { recv(sockClient,recvBuf,2,0); printf("%s\nrecieved OK!\ncnt=%d\n\n",recvBuf,cnt); } } --- Quote End --- Thank you for your reply, Cris72 I've tried your code, but it is of no use, the loop stopped when cnt =156. I think it is not a software code efficiency problem.