Creates a new address from hostname and port.
- Note
- Hostname will be resolved and reresolved when needed.
- Parameters
-
hostname | The hostname this should not be NULL, |
port | The port number. |
- Resource Management:
- This function allocates resources that must later be freed by calling DOFAddress_Destroy.
- Returns
- DOFAddress The address, or NULL if the address could not be created.