Jump to content
  • Advertisement
Sign in to follow this  
MrMark

Crossplatform socket library

This topic is 3816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anyone recommend a good, lightweight cross platform sockets library that provides a common iterface to winsock and Berkeley sockets, and isn't GPL? I've found boost ASIO (Async IO, not the music interface) that looks promising, but it's still in development and hasn't been included into boost yet. I'm building a simple web server as a educational exercise, so libraries like Enet are out since they are UDP only.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by MrMark
Can anyone recommend a good, lightweight cross platform sockets library that provides a common interface to winsock and Berkeley sockets, and isn't GPL?


It only takes a handful of #defines to turn Winsock into Berkeley sockets, if all you're doing is using very simple client/server apps.

Share this post


Link to post
Share on other sites
Quote:
Original post by MrMark
Can anyone recommend a good, lightweight cross platform sockets library that provides a common iterface to winsock and Berkeley sockets, and isn't GPL? I've found boost ASIO (Async IO, not the music interface) that looks promising, but it's still in development and hasn't been included into boost yet. I'm building a simple web server as a educational exercise, so libraries like Enet are out since they are UDP only.


Boost ASIO has been accepted into Boost almost 2 years ago.

It's also not a Berkeley socket wrapper, but binds to the platform's most modern networking interface. It may only fall back to basic sockets under rare circumstances.

And something still being in development is better than an abandoned project.

It's not lightweight however, since it's a toolkit for asynchronous programming, not just a socket wrapper, although the resulting code is optimal.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!