RE: tcp4u
- Posted by mhance at harris.com Aug 13, 2003
- 493 views
Correct ... The original examples, and code Ray has, would lead one to believe a ret code is expected, as in the naming. However, if you examine the actual TCP4U C ++ programs and DLL from which it was derived, you can get to the bottom of it ... which is to say that the sock_recieve returns two pieces of data , an integer which indicates the actual number of bytes returned, following by sequence of bytes .... -----Original Message----- From: Robert Szalay [mailto:robsz1 at hotpop.com] Sent: Tuesday, August 12, 2003 6:20 PM To: EUforum Subject: RE: tcp4u > Then sock_recieve[tcp4u_ret] is actually a 10 !!! There is NO >return > code 10 !!! There is a very simple explenation for this. The returned value is *NOT* a return code. It is the number of bytes that were received. If.. sock_receive = tcp4u_receive(sock, 93, 1) Then sock_recieve[tcp4u_ret] = 93 Which means it sucessfully received 93 bytes of data. Otherwise, it did not receive all 93 bytes of data. Regards, Robert Szalay --^---------------------------------------------------------------- This email was sent to: mhance at harris.com TOPICA - Start your own email discussion group. FREE!