summaryrefslogtreecommitdiff
path: root/src/command.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.hpp')
-rw-r--r--src/command.hpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/command.hpp b/src/command.hpp
index ecf2d93..8378369 100644
--- a/src/command.hpp
+++ b/src/command.hpp
@@ -27,12 +27,18 @@
namespace zmq
{
+ class object_t;
+ class own_t;
+ struct i_engine;
+ class pipe_t;
+ class socket_base_t;
+
// This structure defines the commands that can be sent between threads.
struct command_t
{
// Object to process the command.
- class object_t *destination;
+ zmq::object_t *destination;
enum type_t
{
@@ -67,7 +73,7 @@ namespace zmq
// Sent to socket to let it know about the newly created object.
struct {
- class own_t *object;
+ zmq::own_t *object;
} own;
// Attach the engine to the session. If engine is NULL, it informs
@@ -79,7 +85,7 @@ namespace zmq
// Sent from session to socket to establish pipe(s) between them.
// Caller have used inc_seqnum beforehand sending the command.
struct {
- class pipe_t *pipe;
+ zmq::pipe_t *pipe;
} bind;
// Sent by pipe writer to inform dormant pipe reader that there
@@ -112,7 +118,7 @@ namespace zmq
// Sent by I/O object ot the socket to request the shutdown of
// the I/O object.
struct {
- class own_t *object;
+ zmq::own_t *object;
} term_req;
// Sent by socket to I/O object to start its shutdown.
@@ -128,7 +134,7 @@ namespace zmq
// Transfers the ownership of the closed socket
// to the reaper thread.
struct {
- class socket_base_t *socket;
+ zmq::socket_base_t *socket;
} reap;
// Closed socket notifies the reaper that it's already deallocated.