[SDL] Developing Network Games with SDL Net
stephen.sweeney at parallelrealities.co.uk
Wed Dec 29 10:56:38 PST 2004
On Tuesday 28 Dec 2004 10:28, Benjamin Deutsch wrote:
> > Maybe those lockups You had were because socket was not set to
> > non-blocking mode (it should be, but maybe on Your platform something
> > doesn't work right)?
> The sockets are set to blocking mode for the actual TCP connection, only
> the "server socket" ist non-blocking. So you should either use Select
> (which will still not completely help you with Send, since it still
> potentially blocks, but this should rarely really happen), or do
> networking in its own thread(s).
Ah, it's cool guys, I've got it working now, SDLNet_TCP_Recv() was blocking on
the client (didn't know it that this). I just changed the timeout :)
More information about the SDL