OpenDOF Project
DOFAddress InetTransport_CreateAddress_Sockaddr ( const struct sockaddr *  addr,
uint32  addrSize 
)

Create a new address from an existing, standard sockaddr structure.

The platform will choose the most appropriate interface to use.

Parameters
addrThe standard, generic sockaddr structure. This should not be NULL.
addrSizeThe size of the sockaddr structure.
Returns
The new address, or NULL if one could not be created.
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