Function rmw_network_flow_endpoint_set_internet_address
Defined in File network_flow_endpoint.h
Function Documentation
-
rmw_ret_t rmw_network_flow_endpoint_set_internet_address(rmw_network_flow_endpoint_t *network_flow_endpoint, const char *internet_address, size_t size)
Set internet address in the rmw_network_flow_endpoint_t struct.
- Parameters:
network_flow_endpoint – [in] network_flow_endpoint_t to be initialized
internet_address – [in] the internet address as C-style string
size – [in] size of internet_address excluding terminating null
- Returns:
RMW_RET_OK
on successfull initilization, or- Returns:
RMW_RET_INVALID_ARGUMENT
ifnetwork_flow_endpoint
is NULL, or- Returns:
RMW_RET_INVALID_ARGUMENT
ifinternet_address
is NULL, or- Returns:
RMW_RET_INVALID_ARGUMENT
ifsize
is not less than RMW_INET_ADDRSTRLEN, or- Returns:
RMW_RET_ERROR
when an unspecified error occurs.