Пример #1
0
        public MonSender(TcpClient sock, LogWrite logwrite, Monitoring monObj)
        {
            this.sock     = sock;
            this.logwrite = logwrite;
            this.monObj   = monObj;

            this.writeStream = sock.GetStream();
            Encoding encode = System.Text.Encoding.GetEncoding("UTF-8");

            this.reader = new StreamReader(writeStream, encode);
        }
Пример #2
0
        public MonReceiver(TcpClient sock, LogWrite logwrite, Monitoring monObj)
        {
            this.sock     = sock;
            this.logwrite = logwrite;
            this.monObj   = monObj;

            this.writeStream = sock.GetStream();
            //Encoding encode = System.Text.Encoding.GetEncoding("UTF-8");
            //this.reader = new StreamReader(writeStream, encode);
            Encoding encode = Encoding.Default;

            this.reader      = new StreamReader(writeStream, encode);
            this.jsonHandler = new JsonHandler();
        }
Пример #3
0
 public AEMSClient(LogWrite logwrite, Monitoring monObj)
 {
     this.logwrite = logwrite;
     this.monObj   = monObj;
 }