public static String Envio_requerimiento(String IP, int Puerto, int timeout, String trama, int iGrabaLog, int iGrabaMsg) { try { Pos p = new Pos(IP, Puerto, timeout, trama, iGrabaLog, iGrabaMsg); return(p.EnvioRequerimiento()); } catch (Exception e) { throw new Exception(e.Message); } }
public String Envio_requerimiento(String IP, int Puerto, int timeout, string trama, int iGrabaLog, int iGrabaMsg) { try { if (String.IsNullOrEmpty(IP)) { return(Pinpad.SendPinpad(trama, Puerto, timeout, iGrabaLog, iGrabaMsg)); } else { Pos p = new Pos(IP, Puerto, timeout, trama, iGrabaLog, iGrabaMsg); return(p.EnvioRequerimiento()); } } catch (Exception e) { throw new Exception(e.Message); } }