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