Advertisement

SDL_net question

Started by October 30, 2004 11:17 PM
3 comments, last by Roboguy 20 years, 3 months ago
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

ok, first of all, your post has nothing to do with SDL_net, second, yes, there is no reason it shouldn't, as long as the protocol is the same on all the ports of the game(which it probably would be).
Advertisement
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

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
still, a more fitting topic name would have been "networking question" or something similar, this isn't library specific

This topic is closed to new replies.

Advertisement