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