diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-09-15 10:00:23 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-09-15 10:00:23 +0200 |
commit | f78d9b6bfca13e298c29fadabbbc870b37a0a573 (patch) | |
tree | 89b110d56183ef2958b894c26dfe2e5fea980537 /src/decoder.hpp | |
parent | 78b02d142e82015a2146b7d40f7e0a729ad0e89b (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/decoder.hpp')
-rw-r--r-- | src/decoder.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder.hpp b/src/decoder.hpp index 3ac4f7c..01021c4 100644 --- a/src/decoder.hpp +++ b/src/decoder.hpp @@ -184,7 +184,7 @@ namespace zmq decoder_t (size_t bufsize_, int64_t maxmsgsize_); ~decoder_t (); - void set_session (class session_t *session_); + void set_session (class session_base_t *session_); private: @@ -193,7 +193,7 @@ namespace zmq bool flags_ready (); bool message_ready (); - class session_t *session; + class session_base_t *session; unsigned char tmpbuf [8]; msg_t in_progress; |