mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +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:
@@ -37,7 +37,7 @@ namespace zmq
|
||||
// If 'delay' is true connecter first waits for a while, then starts
|
||||
// connection process.
|
||||
tcp_connecter_t (class io_thread_t *io_thread_,
|
||||
class session_t *session_, const options_t &options_,
|
||||
class session_base_t *session_, const options_t &options_,
|
||||
const char *address_, bool delay_);
|
||||
~tcp_connecter_t ();
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace zmq
|
||||
bool wait;
|
||||
|
||||
// Reference to the session we belong to.
|
||||
class session_t *session;
|
||||
class session_base_t *session;
|
||||
|
||||
// Current reconnect ivl, updated for backoff strategy
|
||||
int current_reconnect_ivl;
|
||||
|
||||
Reference in New Issue
Block a user