Skip to content
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

Enable multicast output #261

Open
sphaero opened this issue Sep 21, 2022 · 8 comments
Open

Enable multicast output #261

sphaero opened this issue Sep 21, 2022 · 8 comments

Comments

@sphaero
Copy link
Collaborator

sphaero commented Sep 21, 2022

It is already builtin we need to expose it

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 21, 2022

simple czmq output test:

#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://239.0.0.1:5555");
    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;
}

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 21, 2022

receive through socat (tested on OSX):

socat UDP4-RECVFROM:5555,ip-add-membership=239.0.0.1:0.0.0.0,fork - |cat

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 21, 2022

It just works on Linux. Tested sending from linux(gazebosc) to linux(socat) and from linux(gazebosc) to osx(socat)

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 22, 2022

recv does not work although there's no reason not to

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 28, 2022

@sphaero
Copy link
Collaborator Author

sphaero commented Sep 28, 2022

enabled igmp snooping and disabled wifi legacy rates, it's better now

@sphaero
Copy link
Collaborator Author

sphaero commented Oct 5, 2022

Some related bug in libzmq: zeromq/libzmq#4434

@sphaero
Copy link
Collaborator Author

sphaero commented Feb 10, 2023

Bug in libzmq is fixed. So this might help us! Wait for new build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant