We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
run libzmq with openpgm in win10,but abort with error·。
Error: Join multicast group { .gr_interface = 0, .gr_group = "224.0.22.1" } failed: Invalid argument.(10022) Invalid argument (G:\dev\2021\daspnetsrv2\testPGM\lib\src\zeromq-4.3.3\src\session_base.cpp:734)
`#include <string.h> #include <windows.h> #include <zmq.h> int main() { int index = 0; int count = -1; char buf[128]; void* context = zmq_ctx_new(); void* socket = zmq_socket(context, ZMQ_SUB); zmq_setsockopt(socket, ZMQ_SUBSCRIBE, "", 0); int rc = zmq_connect(socket, "epgm://224.0.22.1:9210"); if (rc != 0) { printf("zmq_errno() is %d,:%s\n", zmq_errno(),zmq_strerror(zmq_errno())); return -1; }
while (1) { sprintf_s(buf, sizeof(buf),"%d -- SERVER MSG!", index++); count = zmq_send(socket, buf, strlen(buf), 0); printf("%s (%d)\r\n", buf, count); Sleep(1000); }
zmq_close(socket); zmq_ctx_destroy(context); return 0; } `
No error.
The text was updated successfully, but these errors were encountered:
I found reason,because openPGM use setsockopt with SOL_IP option.That indicate Invaild parameter。You must use IPPROTO_IP. But I dont understand.
Sorry, something went wrong.
Awesome, your solution save me at least 2 days.
it matters.
No branches or pull requests
Issue description
run libzmq with openpgm in win10,but abort with error·。
Error: Join multicast group { .gr_interface = 0, .gr_group = "224.0.22.1" } failed: Invalid argument.(10022)
Invalid argument (G:\dev\2021\daspnetsrv2\testPGM\lib\src\zeromq-4.3.3\src\session_base.cpp:734)
Environment
Minimal test code / Steps to reproduce the issue
`#include <string.h>
#include <windows.h>
#include <zmq.h>
int main()
{
int index = 0;
int count = -1;
char buf[128];
void* context = zmq_ctx_new();
void* socket = zmq_socket(context, ZMQ_SUB);
zmq_setsockopt(socket, ZMQ_SUBSCRIBE, "", 0);
int rc = zmq_connect(socket, "epgm://224.0.22.1:9210");
if (rc != 0)
{
printf("zmq_errno() is %d,:%s\n", zmq_errno(),zmq_strerror(zmq_errno()));
return -1;
}
while (1) {
sprintf_s(buf, sizeof(buf),"%d -- SERVER MSG!", index++);
count = zmq_send(socket, buf, strlen(buf), 0);
printf("%s (%d)\r\n", buf, count);
Sleep(1000);
}
zmq_close(socket);
zmq_ctx_destroy(context);
return 0;
}
`
What's the actual result? (include assertion message & call stack if applicable)
Error: Join multicast group { .gr_interface = 0, .gr_group = "224.0.22.1" } failed: Invalid argument.(10022)
Invalid argument (G:\dev\2021\daspnetsrv2\testPGM\lib\src\zeromq-4.3.3\src\session_base.cpp:734)
What's the expected result?
No error.
The text was updated successfully, but these errors were encountered: