Async TcpClient events on data available c#

510 Views Asked by At

I faced with problem of monitoring incoming data of TcpClient. I need to make, mb, some event, which will be rised, when TcpClient.Available > 0. I need this, coz I want to use same socket(TcpClient) more than 1 time in both directions. But I dont want to make infinite loop to do this. Maybe there is some more better way to achieve that? And, my whole network is working asynchronously, so I dont need to call stream.Read() to block some thread.

0

There are 0 best solutions below