Function rmw_network_flow_endpoint_set_internet_address

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 if network_flow_endpoint is NULL, or

Returns:

RMW_RET_INVALID_ARGUMENT if internet_address is NULL, or

Returns:

RMW_RET_INVALID_ARGUMENT if size is not less than RMW_INET_ADDRSTRLEN, or

Returns:

RMW_RET_ERROR when an unspecified error occurs.