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(); }
private void DropSubscriptions() { Msg msg = new Msg(); msg.InitEmpty(); while (m_session.PullMsg(ref msg)) { msg.Close(); } }
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(); } }
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(); }
private void DropSubscriptions() { while (m_session.PullMsg() != null) { } }