Comments (2)
Try calling uv_udp_bind()
before uv_udp_set_broadcast()
. Replacing uv_udp_init()
with uv_udp_init_ex(AF_INET)
should work as well.
Plain uv_udp_init()
doesn't create the socket until first bind/send/receive. The uv_udp_set_broadcast()
documentation gets that wrong; I'll open a pull request for that.
from libuv.
Try calling
uv_udp_bind()
beforeuv_udp_set_broadcast()
. Replacinguv_udp_init()
withuv_udp_init_ex(AF_INET)
should work as well.Plain
uv_udp_init()
doesn't create the socket until first bind/send/receive. Theuv_udp_set_broadcast()
documentation gets that wrong; I'll open a pull request for that.
It works.
from libuv.
Related Issues (20)
- doc: improve example docs/code/progress/main.c HOT 1
- win: use WinDNS family of functions for DNS resolving HOT 5
- Improper Validation of Certificate Trust in certifi and dependent packages HOT 4
- 测试在Windows XP系统上运行时遇到RegGetValueW无法定位于ADVAPI32.dll的问题 HOT 4
- uv_tty_reset_mode doesn't work as advertised if original handle is closed HOT 5
- Provide an OS independent way to set/get UV_THREADPOOL_SIZE HOT 8
- Build currently failing on AIX and OS/400 (IBM i) HOT 7
- about test udp_multicast_join | udp_multicast_join6 not ok | not ok 180 - metrics_pool_events HOT 3
- uv_tcp_close_reset() needs to handle some additional errno other than EINVAL on NetBSD HOT 2
- setuid() does not drop all privileges due to io_uring (CVE-2024-22017) HOT 5
- android and Debian: uv_fs_event stops working when file is deleted HOT 3
- unit test watcher_cross_stop fail in wsl2 HOT 1
- build fail HOT 6
- If you attempt to send a UDP packet to an IPv4 address using an IPv6 socket, sendto() will report the WSAEFAULT error. HOT 10
- Missing symbols in the library file compared to the headers HOT 4
- Issue with GetSystemTimePreciseAsFileTime on Windows Server 2008 in libuv 1.48.0 and Suggested Fix HOT 1
- CMake build fails with FetchContent HOT 2
- the child process (forked from parent process which use libuv) crash with abort() called HOT 4
- UV_UDP_LINUX_RECVERR make loop busy HOT 1
- How can I use libuv raw socket in windows? 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 libuv.