summaryrefslogtreecommitdiff
path: root/src/xreq.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-09-15 10:00:23 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-09-15 10:00:23 +0200
commitf78d9b6bfca13e298c29fadabbbc870b37a0a573 (patch)
tree89b110d56183ef2958b894c26dfe2e5fea980537 /src/xreq.cpp
parent78b02d142e82015a2146b7d40f7e0a729ad0e89b (diff)
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>
Diffstat (limited to 'src/xreq.cpp')
-rw-r--r--src/xreq.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xreq.cpp b/src/xreq.cpp
index 7b66137..79b3b94 100644
--- a/src/xreq.cpp
+++ b/src/xreq.cpp
@@ -79,3 +79,15 @@ void zmq::xreq_t::xterminated (pipe_t *pipe_)
lb.terminated (pipe_);
}
+zmq::xreq_session_t::xreq_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::xreq_session_t::~xreq_session_t ()
+{
+}
+