OpenDOF Project
DOFAddress InetTransport_CreateAddress_Sockaddr_Interface ( const struct sockaddr *  addr,
uint32  addrSize,
const char *  iface 
)

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
addrThe standard, generic sockaddr structure. This should not be NULL.
addrSizeThe size of the sockaddr structure.
ifaceThe 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.
core-c-dof-inet-posix Version 2.0.2 Build 0
2017-04-26