Newbie question for you. I have the following code. I get an error because a object has to be passed to ClientRequest. But am unsure how pass the stream as a object.
TcpClient _client = _listener.AcceptTcpClient();
NetworkStream _clientStream = _client.GetStream();
ThreadPool.QueueUserWorkItem(ClientRequest, _clientStream);
Thanks
There’s nothing wrong with that code as long as ClientRequest is declared like so: