RE: tcp4u

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu