Advertisement

[c++] ENet

Started by October 24, 2016 12:21 AM
4 comments, last by hplus0603 8 years, 1 month ago

Hi,

I'm looking for a good, efficient, reliable and cross-platform network library.

The only good one I know is Raknet but now it's not supported anymore, surely it's not the best choice anymore.

I heard of ENet not far ago and that looks to be a good lib.

Is it a good choice ?

Thanks

Both RakNet and ENet have pretty quiet commit logs these days because they're mature/stable products that don't need to be tinkered with further.

https://github.com/OculusVR/RakNet/commits/master

https://github.com/lsalzman/enet/commits/master

There's this branch though which contains community updates to RakNet:

https://github.com/larku/RakNet/commits/master

Advertisement

ENet is heavily lightweight compared to Raknet, if both are stable and mature, does that make him a better choice ?

ENet is heavily lightweight compared to Raknet, if both are stable and mature, does that make him a better choice ?

I was using raknet, but since I found it bloated, so I tried switching to enet, but I found several features missing that games would really like to have: Timestamping, and some other security stuff, so I aborted the attempt. If you don't have the time/resources to implement such features, then use raknet for now.

I forgot to mention libyojimbo before. It's only very new, but written by a games networking veteran so worth checking out:
https://github.com/networkprotocol/libyojimbo
http://gafferongames.com/2016/07/21/launch-of-libyojimbo/
"Why is this library so heavy?"
(switches to ligher-weight library)
"Why doesn't this library have all the features?"
:-)

Note that yojimbo depends on libsodium, which is not necessarily bad, but should be taken into account.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement