]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/anyp/ProtocolType.h
1 #ifndef _SQUID_SRC_ANYP_PROTOCOLTYPE_H
2 #define _SQUID_SRC_ANYP_PROTOCOLTYPE_H
10 * List of all protocols known and supported.
11 * This is a combined list. It is used as type-codes where needed and
12 * the AnyP::ProtocolType_Str array of strings may be used for display
35 extern const char *ProtocolType_str
[];
37 /** Display the registered Protocol Type (in upper case).
38 * If the protocol is not a registered AnyP::ProtocolType nothing will be displayed.
39 * The caller is responsible for any alternative text.
42 operator <<(std::ostream
&os
, ProtocolType
const &p
)
44 if (PROTO_NONE
<= p
&& p
< PROTO_MAX
)
45 os
<< ProtocolType_str
[p
];
47 os
<< static_cast<int>(p
);
53 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */