Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#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