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