Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the order of reliable messages #53

felipejfc opened this Issue Mar 1, 2019 · 1 comment


None yet
2 participants
Copy link

felipejfc commented Mar 1, 2019


It’s said in the documentation of the ReceiveMessages in connection and socket that it’s guaranteed that the messages will be received in the order they’re sent, but, is that still the case if retransmissions occurs?

Imagine this scenario:

Server send clients A, B, C

Client receives A and C but not B because it needed to be retransmited
Client calls receive messages on connection
Client receives B message
Client calls receive messages again

Will the lib hold the messages till B comes or will it deliver A C B?



This comment has been minimized.

Copy link

fletcherdvalve commented Mar 14, 2019

Sorry, just now saw this.

Yes, reliable messages guarantee delivery order (with respect to other reliable messages). Basically it is a TCP stream, but where the boundary between messages is relevant.

The order of delivery regarding unreliable messages is not guaranteed, with respect to either other unreliable messages, or reliable messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.