]>
Commit | Line | Data |
---|---|---|
0d0bce6a AR |
1 | /* |
2 | * $Id$ | |
3 | * | |
4 | * DEBUG: section 54 Interprocess Communication | |
5 | * | |
6 | */ | |
7 | ||
f7f3304a | 8 | #include "squid.h" |
0d0bce6a AR |
9 | #include "Debug.h" |
10 | #include "ipc/FdNotes.h" | |
11 | ||
0d0bce6a AR |
12 | const char * |
13 | Ipc::FdNote(int fdNoteId) | |
14 | { | |
15 | static const char *FdNotes[Ipc::fdnEnd] = { | |
16 | "None", // fdnNone | |
00516be1 | 17 | "HTTP Socket", // fdnHttpSocket |
7b1e5eb4 | 18 | "HTTPS Socket", // fdnHttpsSocket |
f738d783 | 19 | #if SQUID_SNMP |
7b1e5eb4 | 20 | "Incoming SNMP Socket", // fdnInSnmpSocket |
013e320c | 21 | "Outgoing SNMP Socket", // fdnOutSnmpSocket |
f738d783 | 22 | #endif |
013e320c AR |
23 | "Incoming ICP Socket", // fdnInIcpSocket |
24 | "Incoming HTCP Socket" // fdnInHtcpSocket | |
0d0bce6a AR |
25 | }; |
26 | ||
27 | if (fdnNone < fdNoteId && fdNoteId < fdnEnd) | |
28 | return FdNotes[fdNoteId]; | |
29 | ||
e0236918 | 30 | debugs(54, DBG_IMPORTANT, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId); |
0d0bce6a AR |
31 | return FdNotes[fdnNone]; |
32 | } |