本文整理汇总了C#中NetMQ.zmq.Pipe.Terminate方法的典型用法代码示例。如果您正苦于以下问题:C# Pipe.Terminate方法的具体用法?C# Pipe.Terminate怎么用?C# Pipe.Terminate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetMQ.zmq.Pipe
的用法示例。
在下文中一共展示了Pipe.Terminate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: XAttachPipe
protected override void XAttachPipe(Pipe pipe, bool icanhasall)
{
Debug.Assert(pipe != null);
// ZMQ_PAIR socket can only be connected to a single peer.
// The socket rejects any further connection requests.
if (m_pipe == null)
m_pipe = pipe;
else
pipe.Terminate (false);
}
示例2: Hiccuped
public void Hiccuped(Pipe pipe)
{
if (m_options.DelayAttachOnConnect)
pipe.Terminate(false);
else
// Notify derived sockets of the hiccup
XHiccuped(pipe);
}
示例3: AttachPipe
private void AttachPipe(Pipe pipe, bool icanhasall)
{
// First, register the pipe so that we can terminate it later on.
pipe.SetEventSink(this);
m_pipes.Add(pipe);
// Let the derived socket type know about new pipe.
XAttachPipe(pipe, icanhasall);
// If the socket is already being closed, ask any new pipes to terminate
// straight away.
if (IsTerminating)
{
RegisterTermAcks(1);
pipe.Terminate(false);
}
}