uvlib
UDP accepts event callback function of the following type:
typedef void (*uv_udp_recv_cb)(uv_udp_t* handle,
ssize_t nread,
const uv_buf_t* buf,
const struct sockaddr* addr,
unsigned flags);
There is no info about target port and address like sent_to_addr
. Is there way to achieve it?
I need this to know on what interface packet received, or to know multicast group. Socket listens on 0.0.0.0:xxxx