private void Connect()
{
if (this.client != null && this.client.Connected)
{
return;
}
this.client = new TcpClient();
this.client.Connect(this.endpoint);
this.stream = this.client.GetStream();
this.writer = new BufferedStream(stream);
this.reader = new StreamReader(stream);
}