U
user
Hello
I have a thread1 in which i am in infinite loop reading data from
socket. But sometimes i want to transmit data using that socket (thread2
decides about it).
Can i simply from thread2 call:
networkStream.Write();
where networkStream is associated with socket from thread1.
That socket is in that moment waiting on networkStream.Read() in thread1.
Will it work ?
How should i solve this problem ?
Thanx
I have a thread1 in which i am in infinite loop reading data from
socket. But sometimes i want to transmit data using that socket (thread2
decides about it).
Can i simply from thread2 call:
networkStream.Write();
where networkStream is associated with socket from thread1.
That socket is in that moment waiting on networkStream.Read() in thread1.
Will it work ?
How should i solve this problem ?
Thanx