Closed
Description
Hi,
In a UDP server running on a host with multiple addresses, it is necessary to use the address on which a request was received in order to send the reply. This can be done either by binding a socket to each address of the local host, and monitoring the coming and going of addresses (which I find tedious and errorprone), or by using IP(V6)_PKTINFO
in both recvmsg
and sendmsg
(which I prefer).
It looks like net.UDPConn
does not expose the PKTINFO
information. Please?