From 088a2db6746488c1ce4a73c357caaece50bbdf60 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 23 Sep 2009 10:22:54 +0200 Subject: ZMQII-16: Change "struct zmq_msg_t" to "zmq_msg_t" in C binding --- src/socket_base.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/socket_base.hpp') diff --git a/src/socket_base.hpp b/src/socket_base.hpp index bba27c3..c54efae 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -25,6 +25,8 @@ #include #include +#include "../bindings/c/zmq.h" + #include "i_endpoint.hpp" #include "object.hpp" #include "yarray_item.hpp" @@ -47,9 +49,9 @@ namespace zmq size_t optvallen_); int bind (const char *addr_); int connect (const char *addr_); - int send (struct zmq_msg_t *msg_, int flags_); + int send (zmq_msg_t *msg_, int flags_); int flush (); - int recv (struct zmq_msg_t *msg_, int flags_); + int recv (zmq_msg_t *msg_, int flags_); int close (); // The list of sessions cannot be accessed via inter-thread @@ -83,9 +85,9 @@ namespace zmq // Actual algorithms are to be defined by individual socket types. virtual int xsetsockopt (int option_, const void *optval_, size_t optvallen_) = 0; - virtual int xsend (struct zmq_msg_t *msg_, int options_) = 0; + virtual int xsend (zmq_msg_t *msg_, int options_) = 0; virtual int xflush () = 0; - virtual int xrecv (struct zmq_msg_t *msg_, int options_) = 0; + virtual int xrecv (zmq_msg_t *msg_, int options_) = 0; // Socket options. options_t options; -- cgit v1.2.3