Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL_net question

Started by Lazy Foo Oct 30, 2004 at 11:17 PM 3 replies 900+ views
Original Post
Lazy Foo
Lazy Foo
I made a poker game that allow online play. I know some guys willing to make Linux and OS X ports. just out of curiousity, will the windows version be able to interact with the Linux/OS X versions?
Learn to make games with my SDL 2 Tutorials
Lazy Foo
Lazy Foo
Quote:
Original post by Roboguy
ok, first of all, your post has nothing to do with SDL_net


because I didn't explicitly say that I was using it? It was implied .
Learn to make games with my SDL 2 Tutorials
oddbot
oddbot
What you will have to do is make sure you convert any binary data that you send over the network to network order when you send it and host order when you receive it.

For SDL_Net this means using the SDLNet_Write32 SDLNet_Read32 etc functions when working with your data.

Other than that the networking is pretty easy :)

-oddbot

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.