Ejemplo n.º 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);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 public AEMSClient(LogWrite logwrite, Monitoring monObj)
 {
     this.logwrite = logwrite;
     this.monObj   = monObj;
 }