mirror of https://github.com/oxen-io/lokinet
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.
19 lines
598 B
C++
19 lines
598 B
C++
3 years ago
|
#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
|