mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +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/pub.hpp
15
src/pub.hpp
@@ -43,6 +43,21 @@ namespace zmq
|
||||
const pub_t &operator = (const pub_t&);
|
||||
};
|
||||
|
||||
class pub_session_t : public xpub_session_t
|
||||
{
|
||||
public:
|
||||
|
||||
pub_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_);
|
||||
~pub_session_t ();
|
||||
|
||||
private:
|
||||
|
||||
pub_session_t (const pub_session_t&);
|
||||
const pub_session_t &operator = (const pub_session_t&);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user