Code Monkey home page Code Monkey logo

Comments (4)

sphaero avatar sphaero commented on June 19, 2024

You are familiar with these docs, I assume? https://github.com/zeromq/libzmq/blob/master/doc/zmq_pgm.txt

from czmq.

elockman avatar elockman commented on June 19, 2024

Yes, thank you for the response.

But again, this provides an example to connect, but not to bind.
rc = zmq_connect(socket, "epgm://eth0;239.192.1.1:5555");
zmq_bind is still relevant while using epgm, correct? If so, what should the format look like?

Secondly, I'd like to know if I can use ipv6 instead of ipv4 when using epgm?
I believe ff02::1 is an ipv6 multicast address (which, I've found I can ping other ipv6 devices with).
Would something like this be a valid zmq_connect function call?
rc = zmq_connect(publisher, "epgm://[ff02::1%mesh0]:5555");

from czmq.

elockman avatar elockman commented on June 19, 2024

@sphaero, thanks again for the response.

This is still an outstanding issue for me. I am getting the following error:

**********************
STARTING MESH RX TEST:
**********************
**********************
STARTING MESH TX TEST:
**********************
xsite_provision: xsite_provision.c:112: mesh_tx_test: Assertion `rc == 0' failed.
Aborted

When printed out, rc = -1.

Can anyone point me to a working epgm example?

from czmq.

sphaero avatar sphaero commented on June 19, 2024

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;
}

from czmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.