Sign in to follow this  
c_olin

Cross-platform sockets...

Recommended Posts

c_olin    197
What would be a good library to use for cross-platform sockets? I'm writing an extremely simplistic multiplayer pong game in my own game framework to implement and better understand client-server communication and synchronization for my main game project I'm working on. Any tips/links regarding communication/synchronization between client/server of a FPS (or similar) game would be appreciated. What is a good cross-platform library? SDL_net? Thanks

Share this post


Link to post
Share on other sites
swiftcoder    18427
SDL_net is fine if you are already using SDL (it requires SDL), and if you just want to program with sockets (which you don't, unless this is just an exercise to learn sockets).

Why don't you take a look at enet, or even RakNet, which are considerably more than just platform-independent sockets, and are widely used in games.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this