C# Programming
11-24-2009, 09:40 PM
my server implements a reading thread that blocks until data is received.
what I'd like to do is have a designated thread that only writes as data becomes available (an event would be created that contains the TcpClient in the event argument).
Therefore the question: is it possible to use TcpClient.GetStream() twice for the same TcpClient ?
what I'd like to do is have a designated thread that only writes as data becomes available (an event would be created that contains the TcpClient in the event argument).
Therefore the question: is it possible to use TcpClient.GetStream() twice for the same TcpClient ?