I have really simple TcpListener + TcpClient slient-server application. I accept incomming connections async. Then I read data from network stream.
I run this code in new thread. but I have to run new thread for each client...
while (true)
(MyCoreMessage)BinaryFormatter.Deserialize(TcpClient.GetStream())
Is there some (easy and simple) async way to desearialize object from networkstream? Not creating new thread per clent...
thanks for help