public static TCPRcon ActivateRcon(string Host, int port, string password) { var r = new TCPRcon(Host, port, password); r.StartComms(); return(r); }
/// <summary> /// Clones the current connection allowing another session to the rcon server. /// </summary> /// <returns>Return TCPRcon with the same host,port, and password.</returns> public TCPRcon CopyConnection() { TCPRcon r = new TCPRcon(RConHost, RConPort, RConPass); if (r.StartComms() == false) { return(null); } return(r); }