28 #include <boost/hana/functional/overload.hpp>
39 FaceEndpoint::print(std::ostream& os)
const
41 std::visit(boost::hana::overload(
42 [&] (std::monostate) {
45 [&] (
const ethernet::Address& ep) {
46 os <<
'(' <<
face.
getId() <<
", " << ep <<
')';
49 os <<
'(' <<
face.
getId() <<
", " << ep <<
')';
FaceEndpoint(Face &face, const EndpointId &endpoint={})
const EndpointId endpoint
Generalization of a network interface.
FaceId getId() const noexcept
Returns the face ID.
std::variant< std::monostate, ethernet::Address, udp::Endpoint > EndpointId
Identifies a remote endpoint on the link.
boost::asio::ip::udp::endpoint Endpoint