Beispiel #1
0
 protected void OnStateChange(SocketStateChangeEventArgs e)
 {
     if (StateChange != null)
     {
         Invoke(StateChange, this, e);
     }
 }
Beispiel #2
0
 protected void UpdateState(SocketState state)
 {
     if (State != state)
     {
         SocketStateChangeEventArgs e =
             new SocketStateChangeEventArgs(State, state);
         State = state;
         OnStateChange(e);
     }
 }