• 0

[C#] Sockets and out of Order messages


Question

Hey guys, I just need to clarify how out of order a message can be when using Sockets.

I've read that say the message,

"This is a sample message"

Can come in dribs and drabs,

"This is"

"a sample"

"message"

Obviously in this case, the solution is just add a marker to point out the start and end of a message, however is it possible for messages to come in this order...

"message"

"This is"

"a sample"

? As that'd make the marker abit of a stupid solution.

Or another situation, say for example the server does,

.Send("My Message");

.Send("Another message straight after");

Could the two messages be jumbled up with each other as well as jumbled up amongst themselves? or will it always be one send then the other?

Link to comment
https://www.neowin.net/forum/topic/516511-c-sockets-and-out-of-order-messages/
Share on other sites

3 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.