/// <summary>
        /// Link this client to the server Engine
        /// </summary>
        /// <param name="ip">
        /// The ip.
        /// </param>
        /// <param name="port">
        /// The port.
        /// </param>
        /// <param name="srv">
        /// The srv.
        /// </param>
        /// <returns>
        /// The link.
        /// </returns>
        public static bool Link(string ip, int port, ChatServer srv)
        {
            try
            {
                Client = new IscClient(ip, port, srv);
            }
            catch (Exception e)
            {
                Console.WriteLine("[ISComm] Failure: " + e);
                return false;
            }

            return true;
        }
Beispiel #2
0
        /// <summary>
        /// Link this client to the server Engine
        /// </summary>
        /// <param name="ip">
        /// The ip.
        /// </param>
        /// <param name="port">
        /// The port.
        /// </param>
        /// <param name="srv">
        /// The srv.
        /// </param>
        /// <returns>
        /// The link.
        /// </returns>
        public static bool Link(string ip, int port, ChatServer srv)
        {
            try
            {
                Client = new IscClient(ip, port, srv);
            }
            catch (Exception e)
            {
                Console.WriteLine("[ISComm] Failure: " + e);
                return(false);
            }

            return(true);
        }