示例#1
0
文件: EAnpThread.cs 项目: tmbx/etkwm
 /// <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);
 }
示例#2
0
文件: EAnpThread.cs 项目: tmbx/etkwm
 /// <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);
 }