Hi all,
Sorry if this is the incorrect group but I couldn't see anything
directly relevant.
Can someone confirm for me what happens when two network streams are
sent to an application at the same time.
My scenario is a small server application that listens on a particular
TCP port. I am sending streams of data to it via a client app. Inside
these streams I am using a \n character to delimit certain data. My
question is. Are streams coordinated in some way. For example, If I
flush a StreamWriter to send a stream to the server at the same time
that another client does this, can I guarantee hat the StreamReader
wont receive data that is mixed together? In other words does the
protocol line up all the data in one stream first and then attach the
next stream to the end of the first one? I hope this makes sense.
Please let me know if any further info is required.
Actually one further question. Does a stream have a terminator on the
end. In other words does the Stream Reader know that one stream has
finished before the next one begins.
Sorry if this is a bit vague, but I'm not very hot on the details of
the protocol or the Frameworks support for it.
Many thanks in advance.
Simon