OpenDOF Project
DOFAddress DOFAddress_Create ( uint32  addrSize,
const void *  addr,
DTLTransport  transport 
)

Create a DOFAddress from a transport address and the Transport.

Addresses are unique to a Transport, and should only be created by a Transport. They are opaque to the DOFAddress, and no assumptions can or should be made about their type or contents, except by their associated Transport.

Resource Management:
This function allocates resources that must later be freed by calling DOFAddress_Destroy.
Parameters
addrSizeSize of the address data.
addrThe address data. This may be NULL if addrSize is 0. This data is copied into and managed by the DOFAddress. If the address contains data requiring cleanup, the destroy function must be called.
transportThe transport associated with the address. This must not be NULL.
Returns
The DOFAddress, or NULL if one could not be created, or invalid parameters were used.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22