Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Dynamic ports (allocated by OS)

14 views
Skip to first unread message

Никита Т

unread,
Nov 1, 2024, 4:59:41 AM11/1/24
to libuv
Hi, all!

if i bind UDP socket using uv_udp_bind command with port == 0 then the OS chooses port randomly, right? But how can I obtain the choosen value?

Thanks for attention

Ben Noordhuis

unread,
Nov 1, 2024, 5:01:18 AM11/1/24
to li...@googlegroups.com
You can get it with uv_udp_getsockname(handle, ...).
Reply all
Reply to author
Forward
0 new messages