protected override void XAttachPipe(Pipe pipe, bool icanhasall) { Debug.Assert(pipe != null); m_fq.Attach(pipe); m_dist.Attach(pipe); // Send all the cached subscriptions to the new upstream peer. m_subscriptions.Apply(s_sendSubscription, pipe); pipe.Flush(); }
protected override void XAttachPipe(Pipe pipe, bool icanhasall) { Debug.Assert(pipe != null); m_dist.Attach(pipe); // If icanhasall_ is specified, the caller would like to subscribe // to all data on this pipe, implicitly. if (icanhasall) { m_subscriptions.Add(null, pipe); } // The pipe is active when attached. Let's read the subscriptions from // it, if any. XReadActivated(pipe); }