Пример #1
0
        public void Plug(IOThread ioThread, SessionBase session)
        {
            m_encoder.SetMsgSource(session);

            AddFd(m_socket);
            SetPollout(m_socket);

            // get the first message from the session because we don't want to send identities
            session.PullMsg();
        }
Пример #2
0
        private void DropSubscriptions()
        {
            Msg msg = new Msg();

            msg.InitEmpty();

            while (m_session.PullMsg(ref msg))
            {
                msg.Close();
            }
        }
Пример #3
0
        public void Plug(IOThread ioThread, SessionBase session)
        {
            m_encoder.SetMsgSource(session);

            AddFd(m_socket);
            SetPollout(m_socket);

            // get the first message from the session because we don't want to send identities

            Msg msg = new Msg();

            msg.InitEmpty();

            bool ok = session.PullMsg(ref msg);

            if (ok)
            {
                msg.Close();
            }
        }
Пример #4
0
        public void Plug(IOThread ioThread, SessionBase session)
        {
            m_encoder.SetMsgSource(session);

            AddFd(m_socket);
            SetPollout(m_socket);

            // get the first message from the session because we don't want to send identities
            session.PullMsg();
        }
Пример #5
0
 private void DropSubscriptions()
 {
     while (m_session.PullMsg() != null)
     {
     }
 }