コード例 #1
0
 //passive
 public void OnDisconnect()
 {
     Logger.InfoFormat("VNetworkChannel.OnDisconnect:{0}", Id);
     _isConnected = false;
     PassiveClosed();
     if (null != RealTimePeer)
     {
         RealTimePeer.OnDisconnect();
     }
 }
コード例 #2
0
 //initative
 public override void Disconnect()
 {
     Logger.InfoFormat("Call Socket Disconnect{0}", Id);
     _isConnected = false;
     if (null != RealiableConn)
     {
         RealiableConn.OnDisconnect();
     }
     if (null != RealTimePeer)
     {
         RealTimePeer.OnDisconnect();
     }
     PassiveClosed();
 }