johan.philips at kuleuven.be
Mon Aug 4 16:26:19 CEST 2014
On 08/04/2014 04:22 PM, Johan Philips wrote:
> Am I misinterpreting the macro zsock_new_sub(e,s) or is the subscribing
> function not there?
> Basically I used it as follows: zsock_t* sub =
> zsock_new_sub(connection_spec_str, "A"); hoping to receive all messages
> starting with "A". However, I do not receive any messages unless I
> explicitly add zsock_set_subscribe(sub, "A"); as well.
> In the zsock.h file I find:
> # define zsock_new_sub(e,s) zsock_new_sub_((e), (s), __FILE__, __LINE__)
> // Create a SUB socket, and optionally subscribe to some prefix string.
> // action is connect.
> CZMQ_EXPORT zsock_t *
> zsock_new_sub_ (const char *endpoint, const char *subscribe, const
> char *filename, size_t line_nbr);
> Can someone tell me what I am doing wrong? :-)
Nevermind, I checked zsock.c and it just isn't implemented (yet).
More information about the zeromq-dev