Disconnect() private method

Disconnect peer mailbox No more messages will be sent to peer until connected again
private Disconnect ( ) : void
return void
示例#1
0
 /// <summary>
 /// Delete peer for a given endpoint
 /// </summary>
 /// <param name="peer"></param>
 /// <param name="endpoint"></param>
 private void PurgePeer(ZyrePeer peer, string endpoint)
 {
     if (peer.Endpoint == endpoint)
     {
         peer.Disconnect();
     }
 }
示例#2
0
文件: ZyreNode.cs 项目: NetMQ/Zyre
 /// <summary>
 /// Delete peer for a given endpoint
 /// </summary>
 /// <param name="peer"></param>
 /// <param name="endpoint"></param>
 private void PurgePeer(ZyrePeer peer, string endpoint)
 {
     if (peer.Endpoint == endpoint)
     {
         peer.Disconnect();
     }
 }