]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
Removed CVS $ markers
[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 #if SQUID_SNMP
18 "Incoming SNMP Socket", // fdnInSnmpSocket
19 "Outgoing SNMP Socket", // fdnOutSnmpSocket
20 #endif
21 "Incoming ICP Socket", // fdnInIcpSocket
22 "Incoming HTCP Socket" // fdnInHtcpSocket
23 };
24
25 if (fdnNone < fdNoteId && fdNoteId < fdnEnd)
26 return FdNotes[fdNoteId];
27
28 debugs(54, DBG_IMPORTANT, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
29 return FdNotes[fdnNone];
30 }