/// <summary> /// This method should be called when the channel has been opened. /// </summary> public void HandleChannelOpened() { Transport = new AnpTransport(Sock); Status = EAnpThreadChannelStatus.Open; Worker.NotifyChannelOpened(ChannelID); }
/// <summary> /// Clean up the resources used by this channel and unlink it from the /// thread. /// </summary> public void Close() { Status = EAnpThreadChannelStatus.Closed; KSocket.Dispose(ref Sock); Worker.RemoveChannel(ChannelID); }