From a801b6d8b37557ccfb53030dca22f89a3f99b59c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 20 Aug 2009 11:32:23 +0200 Subject: couple of bugs in shutdown mechanism fixed --- src/object.hpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/object.hpp') diff --git a/src/object.hpp b/src/object.hpp index 7357549..02a071a 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -49,20 +49,25 @@ namespace zmq // Derived object can use these functions to send commands // to other objects. void send_stop (); - void send_plug (object_t *destination_); - void send_own (object_t *destination_, object_t *object_); + void send_plug (class owned_t *destination_); + void send_own (class socket_base_t *destination_, + class owned_t *object_); + void send_attach (class session_t *destination_, + class zmq_engine_t *engine_); void send_bind (object_t *destination_); - void send_term_req (object_t *destination_, object_t *object_); - void send_term (object_t *destination_); - void send_term_ack (object_t *destination_); + void send_term_req (class socket_base_t *destination_, + class owned_t *object_); + void send_term (class owned_t *destination_); + void send_term_ack (class socket_base_t *destination_); // These handlers can be overloaded by the derived objects. They are // called when command arrives from another thread. virtual void process_stop (); virtual void process_plug (); - virtual void process_own (object_t *object_); + virtual void process_own (class owned_t *object_); + virtual void process_attach (class zmq_engine_t *engine_); virtual void process_bind (); - virtual void process_term_req (object_t *object_); + virtual void process_term_req (class owned_t *object_); virtual void process_term (); virtual void process_term_ack (); -- cgit v1.2.3