Documentation
¶
Overview ¶
This package sets socket options per OS. Specifically:
- It allows SO_REUSEADDR so we can bind on a more specific address when's there's another socket binding to wildcard;
- It sets IP_PKTINFO on Linux/Windows, and IP_RECVDSTADDR on FreeBSD, so UDP protocols will get the DST IP (then becomes SRC IP) when sending a return datagram. (https://blog.powerdns.com/2012/10/08/on-binding-datagram-udp-sockets-to-the-any-addresses/)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.