public TCPConnection(TcpClient client, AbstractMessageParser parser) { this.client = client; this.stream = client.GetStream(); this.writer = new StreamWriter(stream); this.reader = new StreamReader(stream); this.parser = parser; this.localEndPoint = client.Client.LocalEndPoint; this.remoteEndPoint = client.Client.RemoteEndPoint; }