public TSocket(TcpClient client) { this.client = client; if (IsOpen) { inputStream = client.GetStream(); outputStream = client.GetStream(); } }