We need to port IPv4 sockets to both IPv4 & IPv6. I would like to create a server IPv6 socket that will be bind in6addr_any. I understand that it can process IPv4 requests but my problem is that we provide an several bind options, one of them for example is bind to address.
We would like to be able to process IPv4 and IPv6 requests and this can be done by using only 1 socket.
Is it going to change when will need to bind the socket to ipv4 address? do we need to open new ipv4 socket?
any suggestion how to support it?
I hope that my question makes some sense. Feel free to ask for more details