Example #1
0
 protected virtual void OnKill(SocketBufferEventArgs pEventArgs)
 {
     if (this.Die != null)
     {
         this.Die(this, pEventArgs);
     }
 }
Example #2
0
 public void ClientDied(object pSender, SocketBufferEventArgs pEventArgs)
 {
     try
     {
         _ClientsConnected.Remove(pEventArgs);
         this.WriteToLog(string.Concat("Client Disconnected from [", pEventArgs.Client.Sock.RemoteEndPoint, "]"), 2);
     }
     catch
     {
     }
 }
Example #3
0
        public void Kill()
        {
            try
            {
                if (_SendingData)
                {
                    this._CleanUp = true;
                }
                else
                {
                    this._CleanUp = true;

                    SocketBufferEventArgs e = new SocketBufferEventArgs(this);

                    this.OnKill(e);

                    this.Sock.Close();
                }
            }
            catch
            {
            }
        }