Ejemplo n.º 1
0
        public static TCPRcon ActivateRcon(string Host, int port, string password)
        {
            var r = new TCPRcon(Host, port, password);

            r.StartComms();
            return(r);
        }
Ejemplo n.º 2
0
        /// <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);
        }