mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 11:06:52 +01:00
Session class separated into socket-type-specific sessions
This is a preliminary patch allowing for socket-type-specific functionality in the I/O thread. For example, message format can be checked asynchronously and misbehaved connections dropped straight away. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "decoder.hpp"
|
||||
#include "session.hpp"
|
||||
#include "session_base.hpp"
|
||||
#include "wire.hpp"
|
||||
#include "err.hpp"
|
||||
|
||||
@@ -44,7 +44,7 @@ zmq::decoder_t::~decoder_t ()
|
||||
errno_assert (rc == 0);
|
||||
}
|
||||
|
||||
void zmq::decoder_t::set_session (session_t *session_)
|
||||
void zmq::decoder_t::set_session (session_base_t *session_)
|
||||
{
|
||||
session = session_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user