mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +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:
15
src/sub.hpp
15
src/sub.hpp
@@ -45,6 +45,21 @@ namespace zmq
|
||||
const sub_t &operator = (const sub_t&);
|
||||
};
|
||||
|
||||
class sub_session_t : public xsub_session_t
|
||||
{
|
||||
public:
|
||||
|
||||
sub_session_t (class io_thread_t *io_thread_, bool connect_,
|
||||
class socket_base_t *socket_, const options_t &options_,
|
||||
const char *protocol_, const char *address_);
|
||||
~sub_session_t ();
|
||||
|
||||
private:
|
||||
|
||||
sub_session_t (const sub_session_t&);
|
||||
const sub_session_t &operator = (const sub_session_t&);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user