C
craigkenisston
I'm creating a TcpClient instance in an object which is created in a
thread.
I have a loop that goes about 6-7 cycles, creating the container object
in each cycle and each object contains a TcpClient instance.
If I run this loop without threading everything goes find. But if I do
it within the thread, invariable on of the threads will fail to
connect.
So, I was wondering whether TcpClient is safe to be used in this way ?
thread.
I have a loop that goes about 6-7 cycles, creating the container object
in each cycle and each object contains a TcpClient instance.
If I run this loop without threading everything goes find. But if I do
it within the thread, invariable on of the threads will fail to
connect.
So, I was wondering whether TcpClient is safe to be used in this way ?