Example #1
0
 protected override void CleanUp()
 {
     if (Channel != null)
     {
         Channel.Close();
         Channel = null;
     }
 }
Example #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);
     }
 }
Example #3
0
 public override void RemoveChannel(UInt64 id)
 {
     if (Channel != null && id == Channel.ChannelID) Channel = null;
 }