]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/anyp/ProtocolType.h
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _SQUID_SRC_ANYP_PROTOCOLTYPE_H
10 #define _SQUID_SRC_ANYP_PROTOCOLTYPE_H
18 * List of all protocols known and supported.
19 * This is a combined list. It is used as type-codes where needed and
20 * the AnyP::ProtocolType_Str array of strings may be used for display
46 extern const char *ProtocolType_str
[];
48 /** Display the registered Protocol Type (in upper case).
49 * If the protocol is not a registered AnyP::ProtocolType nothing will be displayed.
50 * The caller is responsible for any alternative text.
53 operator <<(std::ostream
&os
, ProtocolType
const &p
)
55 if (PROTO_NONE
<= p
&& p
< PROTO_MAX
)
56 os
<< ProtocolType_str
[p
];
58 os
<< static_cast<int>(p
);
64 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */