예제 #1
0
        /// <summary>
        /// Ceases interaction with this client, removes it from the server
        /// </summary>
        public virtual void destroy()
        {       //No longer active
            _bDestroyed = true;

            //Allow handlers to trigger
            if (Destruct != null)
            {
                Destruct(this);
            }

            //Make sure we are taken out of the server's list
            if (_handler != null)
            {
                _handler.removeClient(this);
            }
        }