ProtocolType.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #ifndef _SQUID_SRC_ANYP_PROTOCOLTYPE_H
10 #define _SQUID_SRC_ANYP_PROTOCOLTYPE_H
11 
12 #include <ostream>
13 
14 namespace AnyP
15 {
16 
22 typedef enum {
33 #if USE_HTCP
35 #endif
44 } ProtocolType;
45 
46 extern const char *ProtocolType_str[];
47 
52 inline std::ostream &
53 operator <<(std::ostream &os, ProtocolType const &p)
54 {
55  if (PROTO_NONE <= p && p < PROTO_MAX)
56  os << ProtocolType_str[p];
57  else
58  os << static_cast<int>(p);
59  return os;
60 }
61 
62 } // namespace AnyP
63 
64 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */
65 
char * p
Definition: membanger.c:43
ProtocolType
Definition: ProtocolType.h:22
const char * ProtocolType_str[]
std::ostream & operator<<(std::ostream &os, ProtocolType const &p)
Definition: ProtocolType.h:53

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors