Sign in to follow this  
Butabee

Questions about ENet

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this