NetMQ.Core.SessionBase.PullMsg C# (CSharp) Method

PullMsg() public method

Read a message from the pipe.
public PullMsg ( Msg &msg ) : bool
msg Msg a reference to a Msg to put the message into
return bool
        public virtual bool PullMsg(ref Msg msg)
        {
            // First message to send is identity
            if (!m_identitySent)
            {
                msg.InitPool(m_options.IdentitySize);
                msg.Put(m_options.Identity, 0, m_options.IdentitySize);
                m_identitySent = true;
                m_incompleteIn = false;

                return true;
            }

            if (m_pipe == null || !m_pipe.Read(ref msg))
            {
                return false;
            }
            m_incompleteIn = msg.HasMore;

            return true;
        }