private void InstanciaWatchComm() { org.cesar.dmplight.watchComm.api.TCPComm tcpComm = new org.cesar.dmplight.watchComm.api.TCPComm(TerminalDados.IP, TerminalDados.Porta); tcpComm.SetTimeOut(15000); _watchComm = new org.cesar.dmplight.watchComm.impl.WatchComm(org.cesar.dmplight.watchComm.api.WatchProtocolType.MiniPrint, tcpComm, 1, "", org.cesar.dmplight.watchComm.api.WatchConnectionType.ConnectedMode, "01.00.0000"); }
private void InstanciaWatchComm() { string key = AbreArquivoChaveComunicacao(); AbreArquivoChaveRSA(); org.cesar.dmplight.watchComm.api.TCPComm tcpComm = new org.cesar.dmplight.watchComm.api.TCPComm(TerminalDados.IP, TerminalDados.Porta); tcpComm.SetTimeOut(15000); _watchComm = new org.cesar.dmplight.watchComm.impl.WatchComm(org.cesar.dmplight.watchComm.api.WatchProtocolType.PrintPointIII, tcpComm, 1, key, org.cesar.dmplight.watchComm.api.WatchConnectionType.ConnectedMode, "01.00.0000", _chavePublica_RSA, _expoente_RSA, TerminalDados.OperadorLogin, TerminalDados.OperadorSenha, TerminalDados.OperadorCpf); }
private void InstanciaWatchComm() { string key = ""; if (System.IO.File.Exists(this.CaminhoEXE() + "\\key.txt")) { System.IO.StreamReader streamReader = System.IO.File.OpenText(this.CaminhoEXE() + "\\key.txt"); key = streamReader.ReadLine(); streamReader.Close(); } org.cesar.dmplight.watchComm.api.TCPComm tcpComm = new org.cesar.dmplight.watchComm.api.TCPComm(this.txtIPRelogio.Text, 4370); tcpComm.SetTimeOut(15000); this._watchComm = new org.cesar.dmplight.watchComm.impl.WatchComm(org.cesar.dmplight.watchComm.api.WatchProtocolType.PrintPointLi, tcpComm, 1, key, org.cesar.dmplight.watchComm.api.WatchConnectionType.ConnectedMode, "01.00.0000"); }