Can somebody recommend a free C++ open source library which I will use to build a networked game using UDP. Must be available for Windows/Linux/Mac. As lightweight as possible please.
-
\$\begingroup\$ What exactly is the problem you want the library to solve? When "lightweight" is your only requirement, the correct answer would be "no library - use plain sockets". But obviously there is some other requirement you want to have fulfilled. What is it? \$\endgroup\$– PhilippApr 23, 2015 at 10:53
3 Answers
There are some libraries which may do even more than what you need, not very light weight but completely reliable I think you can even use the Net portion of the library instead using them as a whole:
you can also take a look at this question.
-
\$\begingroup\$ Will do. Have heard about enet so its worth a look. \$\endgroup\$– CiaranJan 2, 2012 at 23:26
I highly recommend RakNet; it's relatively lightweight and implements a virtual connection over UDP for you (you don't have to manually send acks). I've had great success in using it across multiple projects.