[SDL] Developing Network Games with SDL Net
Marcin Konicki
ahwayakchih at neoni.net
Mon Dec 27 14:13:40 PST 2004
Hi,
> Hope you've having a nice Christmas (and for those that don't celebrate
> it, hope you're having a nice break!).
THX, and You too :)
> Is it possible to develop a game with SDL Net and have the server and
> client running on the same machine? Unless I'm going about it the wrong
> way I assume that both the client and server must be able to both send a
> receive messages.
I didn't develop anything SDL_net based yet, but i know it is possible
because i had Wesnoth server and Wesnoth game running at the same time
here (on BeOS). I connected fine and could play it (though i didn't play
it for long, just tested quickly).
So unless that's something platform-specific, or maybe it's a "long run"
bug, it works :)
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)?
Anyway look into Wesnoth sources, or if it's too big try SDL_net chat demo
- IIRC it could also be run on the same machine.
Regards
ahwayakchih
More information about the SDL
mailing list