Esempio n. 1
0
 public AsyncEventArgs(string msg, TCPClientState state)
 {
     this._msg   = msg;
     this._state = state;
     IsHandled   = false;
 }
Esempio n. 2
0
 private void RaiseOtherException(TCPClientState state)
 {
     RaiseOtherException(state, "");
 }
Esempio n. 3
0
 public AsyncEventArgs(TCPClientState state)
 {
     this._state = state;
     IsHandled   = false;
 }
Esempio n. 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);
 }