mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-17 11:05:06 +02: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:
@@ -44,7 +44,8 @@ namespace zmq
|
||||
~stream_engine_t ();
|
||||
|
||||
// i_engine interface implementation.
|
||||
void plug (class io_thread_t *io_thread_, class session_t *session_);
|
||||
void plug (class io_thread_t *io_thread_,
|
||||
class session_base_t *session_);
|
||||
void unplug ();
|
||||
void terminate ();
|
||||
void activate_in ();
|
||||
@@ -84,10 +85,10 @@ namespace zmq
|
||||
encoder_t encoder;
|
||||
|
||||
// The session this engine is attached to.
|
||||
class session_t *session;
|
||||
class session_base_t *session;
|
||||
|
||||
// Detached transient session.
|
||||
class session_t *leftover_session;
|
||||
class session_base_t *leftover_session;
|
||||
|
||||
options_t options;
|
||||
|
||||
|
Reference in New Issue
Block a user