Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Networking Framework for C++ (UDP or TCP)? [closed]

I'm writing a threaded cross-platform application (Linux/Windows) using SDL and OpenGL, and to do networking I was considering SDL Net2 because it sits on top of SDL_Net.

However, I've never done networking in C/C++ before, so I'm unfamiliar with any available cross-platform technologies. Is there anyone with experience with SDL_Net or Net2 who would suggest a different library?

like image 395
Coltin Avatar asked Feb 27 '09 14:02

Coltin


2 Answers

boost::asio is your friend. It is cross platform async io library. Good for network. With a lot of samples on the boost site. http://www.boost.org/

like image 172
Mykola Golubyev Avatar answered Sep 22 '22 01:09

Mykola Golubyev


Try Boost.Asio perhaps.

like image 28
Edwin Jarvis Avatar answered Sep 19 '22 01:09

Edwin Jarvis