Exemplo n.º 1
0
 protected override void CleanUp()
 {
     if (Channel != null)
     {
         Channel.Close();
         Channel = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when there is no channel before the call to select().
 /// </summary>
 private void BeforeSelectNoChannel(SelectSockets selectSockets)
 {
     // Try to connect.
     if (TryConnectFlag)
     {
         TryConnectFlag = false;
         Channel = new EAnpClientThreadChannel(this);
         Channel.BeforeSelect(selectSockets);
     }
 }
Exemplo n.º 3
0
 public override void RemoveChannel(UInt64 id)
 {
     if (Channel != null && id == Channel.ChannelID) Channel = null;
 }