mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
zeromq: fix little bug because socket-types were swapped
This commit is contained in:
parent
98cd2938af
commit
9edd0fc68d
1 changed files with 3 additions and 5 deletions
|
@ -116,9 +116,7 @@ char * zeromq_print(struct node *n)
|
|||
int zeromq_init(struct super_node *sn)
|
||||
{
|
||||
context = zmq_ctx_new();
|
||||
|
||||
info("context is %p", context);
|
||||
|
||||
|
||||
return context == NULL;
|
||||
}
|
||||
|
||||
|
@ -134,8 +132,8 @@ int zeromq_start(struct node *n)
|
|||
|
||||
switch (z->pattern) {
|
||||
case ZEROMQ_PATTERN_RADIODISH:
|
||||
z->subscriber.socket = zmq_socket(context, ZMQ_RADIO);
|
||||
z->publisher.socket = zmq_socket(context, ZMQ_DISH);
|
||||
z->subscriber.socket = zmq_socket(context, ZMQ_DISH);
|
||||
z->publisher.socket = zmq_socket(context, ZMQ_RADIO);
|
||||
break;
|
||||
|
||||
case ZEROMQ_PATTERN_PUBSUB:
|
||||
|
|
Loading…
Add table
Reference in a new issue