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