mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
2.07k stars 74 forks source link

Give access to source address with UDP socket #51

Closed Corendos closed 1 year ago

Corendos commented 1 year ago

Description

There was some TODO left in the code to give access to the source address with UDP socket. Since I needed it for a personal use case, I added the support for it.

Notes for reviewers

Since I don't have a MacOS available currently, I couldn't run the tests. However, cross-compilation to x86_64-macos seems to work fine.

mitchellh commented 1 year ago

Looks good thanks!