/// <summary>
 /// the method to receive message from server.
 /// </summary>
 private void TcpClientReceiveLoopImp()
 {
     TcpReceiveLoopVisitor.Visit(this, this, this.stream, this.thread, this.socketConfig.BufferSize);
 }
 /// <summary>
 /// received data from client.
 /// </summary>
 private void TcpServerConnectionReceiveLoopImp()
 {
     TcpReceiveLoopVisitor.Visit(this, this.server, this.stream, this.thread, this.server.SocketConfig.BufferSize);
 }