コード例 #1
0
ファイル: Push.cs プロジェクト: wbskyboy/netmq
        /// <summary>
        /// Register the pipe with this socket.
        /// </summary>
        /// <param name="pipe">the Pipe to attach</param>
        /// <param name="icanhasall">not used</param>
        protected override void XAttachPipe(Pipe pipe, bool icanhasall)
        {
            Debug.Assert(pipe != null);

            // Don't delay pipe termination as there is no one
            // to receive the delimiter.
            pipe.SetNoDelay();

            m_loadBalancer.Attach(pipe);
        }
コード例 #2
0
 /// <summary>
 /// Register the pipe with this socket.
 /// </summary>
 /// <param name="pipe">the Pipe to attach</param>
 /// <param name="icanhasall">not used</param>
 protected override void XAttachPipe(Pipe pipe, bool icanhasall)
 {
     Debug.Assert(pipe != null);
     m_fairQueueing.Attach(pipe);
     m_loadBalancer.Attach(pipe);
 }
コード例 #3
0
 /// <summary>
 /// Register the pipe with this socket.
 /// </summary>
 /// <param name="pipe">the Pipe to attach</param>
 /// <param name="icanhasall">not used</param>
 protected override void XAttachPipe(Pipe pipe, bool icanhasall)
 {
     Assumes.NotNull(pipe);
     m_fairQueueing.Attach(pipe);
     m_loadBalancer.Attach(pipe);
 }