Create a new address from an existing, standard sockaddr structure and an interface index.
The interface index will only be used to force a multicast server to listen on a specific interface; it is ignored for all other address types and uses.
- Parameters
-
addr | The standard, generic sockaddr structure. This should not be NULL. |
addrSize | The size of the sockaddr structure. |
iface | The interface name over which a multicast address is valid. |
- Returns
- The new address, or NULL if one could not be created. If the SO_BINDTODEVICE socket option is not supported this function will return NULL.
- Resource Management:
- This function allocates resources that must later be freed by calling DOFAddress_Destroy.