Jump to content

  • Log In with Google      Sign In   
  • Create Account


Sdlnet_tcp_send blocking reason


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Mr.L   Members   -  Reputation: 125

Like
0Likes
Like

Posted 06 May 2012 - 08:12 AM

i'm working on simple programm that is just repeatedly sending an reseving messages von the other endpoint.
Then i noticed that when block both a little with sdl_delay(40)(Client) and sdl_delay(30)(server)
then sdlnet_tcp_send isn't blocking if there's no time between the sendings, it sends a few times, then it blocks for about 30 seconds, sends a few time, blocks, and so on.

why does tcp_send block , when i don't use delay?

Sponsor:

#2 hplus0603   Moderators   -  Reputation: 4979

Like
0Likes
Like

Posted 07 May 2012 - 10:30 AM

You're probably trying to send too much data, so it has to block, waiting for the buffer to drain to the other end.
enum Bool { True, False, FileNotFound };

#3 Mr.L   Members   -  Reputation: 125

Like
0Likes
Like

Posted 07 May 2012 - 01:10 PM

i think not, im just sending 128 bytes, and it blocks after about 50 sends.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS