diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-08-24 11:19:22 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-08-25 15:39:21 +0200 |
commit | 9b8993efb48ccbe3df917338cc078129b5af495b (patch) | |
tree | c9234c0c67d26818cb5691951bbffd9c1cd015b0 /src/session.hpp | |
parent | 46d70555659c05a0c8d95c6d7aa8c7e0cc5ebc66 (diff) |
elementary fixes to the named session
Diffstat (limited to 'src/session.hpp')
-rw-r--r-- | src/session.hpp | 9 |
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; |