mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 03:20:13 +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:
@@ -270,5 +270,15 @@ bool zmq::router_t::xhas_out ()
|
||||
return true;
|
||||
}
|
||||
|
||||
zmq::router_session_t::router_session_t (io_thread_t *io_thread_, bool connect_,
|
||||
socket_base_t *socket_, const options_t &options_,
|
||||
const char *protocol_, const char *address_) :
|
||||
session_base_t (io_thread_, connect_, socket_, options_, protocol_,
|
||||
address_)
|
||||
{
|
||||
}
|
||||
|
||||
zmq::router_session_t::~router_session_t ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user