예제 #1
0
 /// <summary>
 /// Called when the connection is closed or dropped. Updates the connection status.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">A Client.CloseEventArgs object that contains the reason the connection was closed.</param>
 protected void ControlSocket_Closed(object sender, Client.CloseEventArgs e)
 {
     this._Connected = false;
 }
예제 #2
0
        /// <summary>
        /// Called when the connection to a Client instance in Server.ClientList is closed or dropped. Removes the Client instance from the client list.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        virtual protected void Client_Closed(object sender, Client.CloseEventArgs e)
        {
            T Client = (T)sender;

            ClientList.Remove(Client);
        }