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
-
addrSize | Size of the address data. |
addr | The 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. |
transport | The 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.