Comments (4)
You are familiar with these docs, I assume? https://github.com/zeromq/libzmq/blob/master/doc/zmq_pgm.txt
from czmq.
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.
@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.
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)
- can use zsock_new_pub() api set ipv6 HOT 3
- Android / Java bindings/jni/ci_build.sh fails on Ubuntu 22.04 HOT 3
- zauth `zsock_bind()` fails when called for the second time from a different thread
- Lingering broken TCP connections when using zproxy
- czmq bindiing jni should be deployed to maven central jcenter is now read only. HOT 1
- Tests on OSX? HOT 1
- Ios Build Fails Please check the log on IOS sdk 16.2 HOT 2
- zsock_events() segfaults if called too often HOT 4
- How to get peer PID with czmq? HOT 1
- Saving certificate to memory?
- An error occurs when the zsock_set_tcp_keepalive function is executed
- ziflist crashes when there are 'alias' net devices HOT 1
- zpoller_wait() will fail if WiFi networks are switched or after Windows sleep and even rebuilding all sockets doesn't make it recover HOT 9
- No MSYS2 package HOT 2
- zloop allows calling start() again but timer removal fails then HOT 2
- Issue with libczmq-dev HOT 1
- Problem: czmq `make check` tests do not display properly in terminal HOT 1
- Problem: When zauth unable to load password file it uses zsys `info` instead of `warn`
- zloop: nonstop does not work as intended (EINTR breaks loop) HOT 2
- No QNX Compile Options for s_reload in ziflist.c HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from czmq.