summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/session.hpp b/src/session.hpp
index e009a90..38cf317 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -72,6 +72,10 @@ namespace zmq
virtual void attached (const blob_t &peer_identity_);
virtual void detached ();
+ // Allows derives session types to (un)register session names.
+ bool register_session (const blob_t &name_, class session_t *session_);
+ void unregister_session (const blob_t &name_);
+
~session_t ();
// Remove any half processed messages. Flush unflushed messages.
@@ -85,7 +89,6 @@ namespace zmq
// Handlers for incoming commands.
void process_plug ();
- void process_unplug ();
void process_attach (struct i_engine *engine_,
const blob_t &peer_identity_);
void process_term ();
@@ -110,10 +113,6 @@ namespace zmq
// The protocol I/O engine connected to the session.
struct i_engine *engine;
- // Identity of the peer (say the component on the other side
- // of TCP connection).
- blob_t peer_identity;
-
// The socket the session belongs to.
class socket_base_t *socket;