]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
Merged from trunk (r13515).
[thirdparty/squid.git] / src / ipc / FdNotes.cc
1 /*
2 * DEBUG: section 54 Interprocess Communication
3 *
4 */
5
6 #include "squid.h"
7 #include "Debug.h"
8 #include "ipc/FdNotes.h"
9
10 const char *
11 Ipc::FdNote(int fdNoteId)
12 {
13 static const char *FdNotes[Ipc::fdnEnd] = {
14 "None", // fdnNone
15 "HTTP Socket", // fdnHttpSocket
16 "HTTPS Socket", // fdnHttpsSocket
17 "FTP Socket", // fdnFtpSocket
18 #if SQUID_SNMP
19 "Incoming SNMP Socket", // fdnInSnmpSocket
20 "Outgoing SNMP Socket", // fdnOutSnmpSocket
21 #endif
22 "Incoming ICP Socket", // fdnInIcpSocket
23 "Incoming HTCP Socket" // fdnInHtcpSocket
24 };
25
26 if (fdnNone < fdNoteId && fdNoteId < fdnEnd)
27 return FdNotes[fdNoteId];
28
29 debugs(54, DBG_IMPORTANT, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
30 return FdNotes[fdnNone];
31 }