Function eprosima::fastrtps::rtps::operator<<(std::ostream&, const Locator_t&)

Function Documentation

inline std::ostream &eprosima::fastrtps::rtps::operator<<(std::ostream &output, const Locator_t &loc)

Insertion operator: serialize a locator The serialization format is kind:[address]:port kind must be one of the following:

  • UDPv4

  • UDPv6

  • TCPv4

  • TCPv6

  • SHM address IP address unless kind is SHM port number

Parameters:
  • output – Output stream where the serialized locator is appended.

  • loc – Locator to be serialized/inserted.

Returns:

std::ostream& Reference to the output stream with the serialized locator appended.