2
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\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\$
    – Philipp
    Commented Apr 23, 2015 at 10:53

3 Answers 3

1
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ Have SDL downloaded now. Will try it. \$\endgroup\$
    – Ciaran
    Commented Jan 2, 2012 at 23:25
2
\$\begingroup\$

You could try http://enet.bespin.org/.

\$\endgroup\$
1
  • \$\begingroup\$ Will do. Have heard about enet so its worth a look. \$\endgroup\$
    – Ciaran
    Commented Jan 2, 2012 at 23:26
0
\$\begingroup\$

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.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .