Go to the source code of this file.
◆ RMW_INET_ADDRSTRLEN
#define RMW_INET_ADDRSTRLEN 48 |
Maximum length of internet address string including terminating null Inspired from linux/inet.h
◆ rmw_transport_protocol_t
Transport protocol types.
◆ rmw_internet_protocol_t
◆ rmw_network_flow_endpoint_t
Structure that describes network flow endpoint of a publisher or subscription.
◆ rmw_transport_protocol_t
Transport protocol types.
Enumerator |
---|
RMW_TRANSPORT_PROTOCOL_UNKNOWN | |
RMW_TRANSPORT_PROTOCOL_UDP | |
RMW_TRANSPORT_PROTOCOL_TCP | |
RMW_TRANSPORT_PROTOCOL_COUNT | |
◆ rmw_internet_protocol_t
Internet protocol types.
Enumerator |
---|
RMW_INTERNET_PROTOCOL_UNKNOWN | |
RMW_INTERNET_PROTOCOL_IPV4 | |
RMW_INTERNET_PROTOCOL_IPV6 | |
RMW_INTERNET_PROTOCOL_COUNT | |
◆ rmw_get_zero_initialized_network_flow_endpoint()
◆ rmw_network_flow_endpoint_get_transport_protocol_string()
const char* rmw_network_flow_endpoint_get_transport_protocol_string |
( |
const rmw_transport_protocol_t |
transport_protocol | ) |
|
Convert to string variant of transport protocol.
- Parameters
-
[in] | transport_protocol | transport_protocol_t to be converted |
◆ rmw_network_flow_endpoint_get_internet_protocol_string()
const char* rmw_network_flow_endpoint_get_internet_protocol_string |
( |
const rmw_internet_protocol_t |
internet_protocol | ) |
|
Convert to string variant of internet protocol.
- Parameters
-
[in] | internet_protocol | internet_protocol_t to be converted |
◆ rmw_network_flow_endpoint_set_internet_address()
Set internet address in the rmw_network_flow_endpoint_t struct.
- Parameters
-
[in] | network_flow_endpoint | network_flow_endpoint_t to be initialized |
[in] | internet_address | the internet address as C-style string |
[in] | size | size of internet_address excluding terminating null |
- Returns
RMW_RET_OK
on successfull initilization, or
-
RMW_RET_INVALID_ARGUMENT
if network_flow_endpoint
is NULL, or
-
RMW_RET_INVALID_ARGUMENT
if internet_address
is NULL, or
-
RMW_RET_INVALID_ARGUMENT
if size
is not less than RMW_INET_ADDRSTRLEN, or
-
RMW_RET_ERROR
when an unspecified error occurs.