/** * Read from the server and write to the console */ private void ThreadedReadRun() { while (IsAlive()) { try { ReadManager.Run(Stream); } catch (Exception) { return; } } }
/** * HandleRequest */ public void HandleRequest(NetworkStream networkStream, int clientId) { ReadManager.Run(networkStream, clientId); }