-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with EPGM/multicast pub/sub #2227
Comments
You are familiar with these docs, I assume? https://github.com/zeromq/libzmq/blob/master/doc/zmq_pgm.txt |
Yes, thank you for the response. But again, this provides an example to connect, but not to bind. Secondly, I'd like to know if I can use ipv6 instead of ipv4 when using epgm? |
@sphaero, thanks again for the response. This is still an outstanding issue for me. I am getting the following error:
When printed out, rc = -1. Can anyone point me to a working epgm example? |
I don't know if it's any help but I've been testing multicast through dgram sockets. Here's an example to send: #include "czmq.h"
int main() {
// mimick natnet actor
zsock_t *data_socket = zsock_new(ZMQ_DGRAM);
assert(data_socket);
//int rc = zsock_connect(data_socket, "udp://239.0.0.1:5555");
int rc = zsock_bind(data_socket, "udp://*:*");
assert(rc == 0);
int i = 0;
while (i<10)
{
zstr_sendm(data_socket, "239.0.0.1:5555");
zstr_send(data_socket, "hello");
zsys_warning("hello %i", i);
i++;
zclock_sleep(1000);
}
zsock_destroy(&data_socket);
return 0;
} |
Issue description
I have a sub/pub program working over tcp on separate nodes.
I am having trouble with the epgm protocol similar to thread (https://lists.zeromq.org/mailman/private/zeromq-dev/2013-July/021878.html), but the thread does not show the solution.
I'm currently working with 2 nodes and my ip addresses are 10.1.100.10 and 10.1.100.20.
Examples show something similar to this endpoint for zmq_connect
rc = zmq_connect(socket, "epgm://mesh0;239.192.1.1:5555");
assert (rc == 0);
I am not seeing any examples of binding with epgm for zmq_bind
Can someone provide an example, or point me to one?
Finally, I also have ipv6 addresses configured on the nodes.
I would like to avoid a dhcp server on my mesh network.
Is it possible to use ipv6 addresses with epgm in zmq?
Environment
*Nodes are embedded linux nodes
with USB wireless modules configured in mesh-point (see https://mjuenema.github.io/80211s_wireless_mesh/)
Minimal test code / Steps to reproduce the issue
Full test code provided below.
Note: You may need to change the ipv4 or ipv6 address in the code below.
Protocol can be changed via the #def.
What's the actual result? (include assertion message & call stack if applicable)
Unicast versions (TEST_IPV4 and TEST_IPV6) work, but the multicast versions do not. Only the TX debug is yielded.
What's the expected result?
Expect both TX and RX debug, not just the TX debug.
The text was updated successfully, but these errors were encountered: