You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/service/protocol_type.cpp

19 lines
598 B
C++

#include "protocol_type.hpp"
namespace llarp::service
{
std::ostream&
operator<<(std::ostream& o, ProtocolType t)
{
return o
<< (t == ProtocolType::Control ? "Control"
: t == ProtocolType::TrafficV4 ? "TrafficV4"
: t == ProtocolType::TrafficV6 ? "TrafficV6"
: t == ProtocolType::Exit ? "Exit"
: t == ProtocolType::Auth ? "Auth"
: t == ProtocolType::QUIC ? "QUIC"
: "(unknown-protocol-type)");
}
} // namespace llarp::service