Example #1
0
        private void Raise_Closed(CloseArgs cA)
        {
            if (Closed == null)
            {
                return;
            }

            Closed(this, cA);
            Closed = null;
        }
Example #2
0
        private void Socket_Closed(object sender, CloseArgs args)
        {
            Connection Sender = (Connection)sender;

            if (Disconnected != null)
            {
                Disconnected(Sender, args);
            }

            Remove(Sender, args.Reason, args.Retry);
        }
Example #3
0
 void Server_Disconnected(object sender, CloseArgs e)
 {
     Logout((Connection)sender, e.Reason, e.Retry);
 }
Example #4
0
        private void Raw_Closed(object sender, TextArgs e)
        {
            CloseArgs cA = new CloseArgs(e.Message, true);

            Raise_Closed(cA);
        }
Example #5
0
 public void Closed(object sender, CloseArgs Args)
 {
     Logout((Connection)sender, Args.Reason, Args.Retry);
 }