public static ConnectionTag CreateNewConnection(SSHTerminalParam param, HostKeyCheckCallback keycheck) { SilentClient s = new SilentClient(); SocketWithTimeout swt = StartNewConnection(s, param, param.Passphrase, keycheck); if(swt==null) return null; else return s.Wait(swt); }
public static ConnectionTag CreateNewConnection(TerminalParam param) { if(param is SerialTerminalParam) return CreateNewSerialConnection(GEnv.Frame, (SerialTerminalParam)param); else if(param is LocalShellTerminalParam) return CreateNewLocalShellConnection(GEnv.Frame, (LocalShellTerminalParam)param); else { SilentClient s = new SilentClient(); SocketWithTimeout swt = StartNewConnection(s, (TCPTerminalParam)param, null, null); if(swt==null) return null; else return s.Wait(swt); } }
public static ConnectionTag CreateNewConnection(SSHTerminalParam param, HostKeyCheckCallback keycheck) { SilentClient s = new SilentClient(); SocketWithTimeout swt = StartNewConnection(s, param, param.Passphrase, keycheck); if (swt == null) { return(null); } else { return(s.Wait(swt)); } }
public static ConnectionTag CreateNewConnection(TerminalParam param) { if (param is SerialTerminalParam) { return(CreateNewSerialConnection(GEnv.Frame, (SerialTerminalParam)param)); } else if (param is LocalShellTerminalParam) { return(CreateNewLocalShellConnection(GEnv.Frame, (LocalShellTerminalParam)param)); } else { SilentClient s = new SilentClient(); SocketWithTimeout swt = StartNewConnection(s, (TCPTerminalParam)param, null, null); if (swt == null) { return(null); } else { return(s.Wait(swt)); } } }