04-17-2008 03:19 AM
04-17-2008 11:27 AM - edited 04-17-2008 11:31 AM
TCP guarantees reliable byte stream, not a reliable message stream.
Data should be queued until read. When any thread reads the port, the data is "consumed", though I think there's a way to "sniff" a TCP port without consuming the data.
If you want messages, then use named pipes in message mode, which runs on top of tcp on windows machines.
tcp library is thread safe.
are you sure the client is thread safe? No shared data or resources that are not protected?
Does each client thread have its own TCP connection, or are the threads sharing a connection?
menchar