]>
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
36 extern const char *ProtocolType_str
[];
38 /** Display the registered Protocol Type (in upper case).
39 * If the protocol is not a registered AnyP::ProtocolType nothing will be displayed.
40 * The caller is responsible for any alternative text.
43 operator <<(std::ostream
&os
, ProtocolType
const &p
)
45 if (PROTO_NONE
<= p
&& p
< PROTO_MAX
)
46 os
<< ProtocolType_str
[p
];
48 os
<< static_cast<int>(p
);
54 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */