Пример #1
0
 /// <summary>
 /// 停止服务监听
 /// </summary>
 public void StopListen()
 {
     pub.Dispose(ref this.socket);
     fastCSharp.net.tcp.tcpRegister.client tcpRegisterClient = Interlocked.Exchange(ref this.tcpRegisterClient, null);
     if (tcpRegisterClient != null)
     {
         tcpRegisterClient.RemoveRegister(attribute);
     }
 }