Exemplo n.º 1
0
 public void CloseNotCallback()
 {
     Connection    -= new ConnectionOk(OnTcpIPClientConnected);
     DataOn        -= new DataOn(OnTcpIPClientReceived);
     Disconnection -= new ExceptionDisconnection(OnTcpIPClientDisconnected);
     TcpIPMessageQueue.EnqueueRecv(S2C_Hint.Builder(S2CHintType.Intro, "[NetworkClose]:Nothing"));
     base.Close();
     mConnected = false;
 }
Exemplo n.º 2
0
 public override void Close()
 {
     //if (null != mSendMessageThread)
     //{
     //    mSendMessageThread.Abort();
     //    mSendMessageThread = null;
     //    while (TcpIPMessageQueue.DequeueSend() != null) ;
     //}
     TcpIPMessageQueue.EnqueueRecv(S2C_Hint.Builder(S2CHintType.Intro, "[NetworkClose]:Nothing"));
     base.Close();
     mConnected     = false;
     Connection    -= new ConnectionOk(OnTcpIPClientConnected);
     DataOn        -= new DataOn(OnTcpIPClientReceived);
     Disconnection -= new ExceptionDisconnection(OnTcpIPClientDisconnected);
 }
Exemplo n.º 3
0
 public TcpIPClient()
 {
     Connection    += new ConnectionOk(OnTcpIPClientConnected);
     DataOn        += new DataOn(OnTcpIPClientReceived);
     Disconnection += new ExceptionDisconnection(OnTcpIPClientDisconnected);
 }