public RConClient(Socket socket, string addr) : base("RCWT", new StreamWriter(new NetworkStream(socket)))
 {
     remoteAddress  = addr;
     Id             = addr;
     this.socket    = socket;
     stream         = (NetworkStream)((StreamWriter)writer).BaseStream;
     passExceptions = true;
     ((StreamWriter)writer).AutoFlush = true;
     ((StreamWriter)writer).NewLine   = "\r\n";
     readBuffer  = new byte [1024];
     this.sender = new RConSender(this);
     state       = State.GREETING;
     retries     = 0;
     Name        = "";
     ProgramLog.AddTarget(this);
 }