From 9b8993efb48ccbe3df917338cc078129b5af495b Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 24 Aug 2010 11:19:22 +0200 Subject: elementary fixes to the named session --- src/session.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/session.hpp') 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; -- cgit v1.2.3