Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualRoundPotato

Posted 19 September 2013 - 11:32 AM

Hey guys.

 

This "getBytesLeft()" somehow appears in my mind, no idea where is it from or why. So my thoughts are...

 

I believe "recv" returns the number of bytes received from the socket connection. Is there such a thing to show bytes that are left to receive or do you implement that yourself (with some headers of data to be sent and calculating with number of bytes returned by the "recv" against that?)  ?

 

Thanks.


#2RoundPotato

Posted 19 September 2013 - 10:21 AM

Hey guys.

 

This "getBytesLeft()" somehow appears in my mind, no idea where is it from or why. So my thoughts are...

 

I believe "recv" returns the number of bytes received from the socket connection. Is there such a thing to show bytes that are left to receive or do you implement that yourself (with some headers of data to be sent and calculating with number of bytes returned by the "recv" against that?)  ?

 

Thanks.


#1RoundPotato

Posted 19 September 2013 - 10:19 AM

Hey guys.

 

This "getBytesLeft()" somehow appears in my mind, no idea where is it from or why ? So my thoughts are...

 

I believe "recv" returns the number of bytes received from the socket connection. Is there such a thing to show bytes that are left to receive or do you implement that yourself (with some headers of data to be sent and calculating with number of bytes returned by the "recv" against that?)  ?

 

Thanks.


PARTNERS