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