gm_bromsock
gm_bromsock copied to clipboard
Add IPv6 support
I noticed that the socket is only using AF_NET which effectivly means IPv4 only. So I'd like to see an option or auto-detection for IPv6 as well (doing a DNS resolve to check for A and AAAA and give AAAA priority, not sure if the native socket has a method for this..., one might want to look at the boost library for advice here as I believe that it has such a detection)
This might impose the need for additional functions to detect if it's IPv4 or IPv6 as protocols differ depending on which is used sometimes (SOCK_RAW being a example, which could by used by passing IPPROTO_ICMP (1) as protocol, tough RAW might not work without special permissions on OS side)