Esempio n. 1
0
 /// <summary>
 /// 关闭一个与客户端之间的会话
 /// </summary>
 /// <param name="state">需要关闭的客户端会话对象</param>
 public void Close(UDPState state)
 {
     if (state != null)
     {
         //_clients.Remove(state);
         //_clientCount--;
         //TODO 触发关闭事件
     }
 }
Esempio n. 2
0
 public UDPEventArgs(string msg, UDPState state)
 {
     this._msg   = msg;
     this._state = state;
     IsHandled   = false;
 }
Esempio n. 3
0
 public UDPEventArgs(UDPState state)
 {
     this._state = state;
     IsHandled   = false;
 }
Esempio n. 4
0
 private void RaiseOtherException(UDPState state)
 {
     RaiseOtherException(state, "");
 }