Jump to content
  • Advertisement
Sign in to follow this  

Questions about ENet

This topic is 3017 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm in the process of making an action oriented online game and was wondering if I should use ENet, and what kind of reliability does it use? Would using the reliable options of ENet be better than using TCP? Or is ENets reliability modes similar to TCP?

Share this post


Link to post
Share on other sites
Advertisement
It's similar in that it will resend packets that fail, but it doesn't employ the Nagle algorithm so packets are never delayed before being sent. The big advantage of ENet over TCP is that the relability is optional. That is, you can send some packets as "reliable" and some as "unreliable". The unreliable ones may get dropped, but they'll never hold up reliable ones from being delivered.

It's also got a "channels" feature so that you can send reliable packets without caring about the relative order. For example, you can send chat messages over one "channel" and "cast spell" packets over another, since it doesn't really matter that those packets arrive at the other side in the same order they were sent.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!