Has anyone got time to help me with SDLnet?

Hi

I’m planning to do a multiplayer game (server/client) using SDL.

The problem is… I don’t know anything about network programming.
I have looked at the chat program using SDLnet, but I’m not sure
if I can use that code to do a game.

I don’t really know where to begin.

So I was hoping that someone would have some simple server/client
game code that he would like to share, just so I can learn the basics.
No advanced stuff, simple is nice.

It’s an old amiga game, so why make things complicated.

/Pontus

PONTUS FOLKESSON wrote:

Hi

I’m planning to do a multiplayer game (server/client) using SDL.

The problem is… I don’t know anything about network programming.
I have looked at the chat program using SDLnet, but I’m not sure
if I can use that code to do a game.

I don’t really know where to begin.

So I was hoping that someone would have some simple server/client
game code that he would like to share, just so I can learn the basics.
No advanced stuff, simple is nice.

I haven't used SDLnet myself, but if you want a basic primer on

networking/sockets, I recommend "Beej’s network programming guide."
It’s straightforward, written in plain english, and exceedingly useful.
It’s also not very darn long, which makes it that much better. TCP and
UDP are covered (connection/stream and connectionless/datagram), example
code included. I can’t remember the URL offhand, but you can search for
it, or go to www.linuxos.org and look under the programming section.

Or if you really want SDLnet code, you can wait a couple of months

until I hack it into my current project…but I can promise neither
elegance nor simplicity. :wink:

Nathan Yawn
@Nathan_A_Yawn