Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Sdlnet_tcp_send blocking reason

4: Adsense

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   

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?

#2 hplus0603   Moderators   

11129
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   

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.