Pc_Madness
Nov 27th, 2006, 03:39 AM
Hey guys, I just need to clarify how out of order can a message 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 a fairly trivial solution. :\
Or another situation, say for example the server does,
.Send("My Message");
.Send("Another message straight after");
Could they be jumbled up with each other as well as jumbled up amongst themselves? or will it always be one send then the other?
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 a fairly trivial solution. :\
Or another situation, say for example the server does,
.Send("My Message");
.Send("Another message straight after");
Could they be jumbled up with each other as well as jumbled up amongst themselves? or will it always be one send then the other?