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

Crossplatform socket library

Started by MrMark Jan 10, 2008 at 12:16 AM 3 replies 3.1k views
Original Post
MrMark
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.
upRedSun
upRedSun
POCO is a good choice and auto protocol builder is a good choice too.
Best,Kevin Johttp://www.upredsun.comEasily and automatically build tcp-based or udp-based network protocol source code
Kylotan
Kylotan
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.
Antheus
Antheus
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.

Topic Locked

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

Sign in to reply to this topic.