You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am using this lib for linux, no prob works great! (i have several avahi linux devices)
for windows there are some things to change:
INADDR_BROADCAST (255.255.255.255) is for some reason not working, use Multicast address instead: inet_addr ("224.0.0.1"); or use the local broadcast address: e.g.: inet_addr("192.168.1.255)
if you want to compile it with mingw (e.g.: Qt Creator)
add target_link_libraries(basic_demo ws2_32 wsock32) in CMakeFile
add in the basic_demo/main.cpp
#define _WIN32_WINNT _WIN32_WINNT_WIN10
#include <Ws2tcpip.h>
#include <w32api.h>
maybe someone can explain to me why the 255.255.255.255 broadcast address is not working, but the local broadcast 192.168.1.255 or the multicast 224.0.0.1 is working?
The text was updated successfully, but these errors were encountered:
Hi, i am using this lib for linux, no prob works great! (i have several avahi linux devices)
for windows there are some things to change:
if you want to compile it with mingw (e.g.: Qt Creator)
#define _WIN32_WINNT _WIN32_WINNT_WIN10
#include <Ws2tcpip.h>
#include <w32api.h>
maybe someone can explain to me why the 255.255.255.255 broadcast address is not working, but the local broadcast 192.168.1.255 or the multicast 224.0.0.1 is working?
The text was updated successfully, but these errors were encountered: