public AsyncEventArgs(string msg, TCPClientState state) { this._msg = msg; this._state = state; IsHandled = false; }
private void RaiseOtherException(TCPClientState state) { RaiseOtherException(state, ""); }
public AsyncEventArgs(TCPClientState state) { this._state = state; IsHandled = false; }
/// <summary> /// 发送数据 /// </summary> /// <param name="state">接收数据的客户端会话</param> /// <param name="data">数据报文</param> public void Send(TCPClientState state, byte[] data) { RaisePrepareSend(state); Send(state.TcpClient, data); }