]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
c8407295 AJ |
9 | #ifndef _SQUID_SRC_COMM_FLAG_H |
10 | #define _SQUID_SRC_COMM_FLAG_H | |
11 | ||
12 | namespace Comm | |
13 | { | |
14 | ||
15 | typedef enum { | |
16 | OK = 0, | |
4ee57cbe | 17 | COMM_ERROR = -1, |
c8407295 AJ |
18 | NOMESSAGE = -3, |
19 | TIMEOUT = -4, | |
20 | SHUTDOWN = -5, | |
21 | IDLE = -6, /* there are no active fds and no pending callbacks. */ | |
22 | INPROGRESS = -7, | |
23 | ERR_CONNECT = -8, | |
24 | ERR_DNS = -9, | |
25 | ERR_CLOSING = -10, | |
26 | ERR_PROTOCOL = -11, /* IPv4 or IPv6 cannot be used on the fd socket */ | |
27 | ENDFILE = -12, /**< read(2) returned success, but with 0 bytes */ | |
28 | ERR__END__ = -999999 /* Dummy entry to make syntax valid (comma on line above), do not use. New entries added above */ | |
29 | } Flag; | |
30 | ||
31 | } // namespace Comm | |
32 | ||
33 | #endif /* _SQUID_SRC_COMM_FLAG_H */ | |
f53969cc | 34 |