]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
Merge from trunk
[thirdparty/squid.git] / src / ipc / FdNotes.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 54 Interprocess Communication
5 *
6 */
7
8 #include "config.h"
9 #include "Debug.h"
10 #include "ipc/FdNotes.h"
11
12
13 const char *
14 Ipc::FdNote(int fdNoteId)
15 {
16 static const char *FdNotes[Ipc::fdnEnd] = {
17 "None", // fdnNone
18 "HTTP Socket", // fdnHttpSocket
19 "HTTPS Socket", // fdnHttpsSocket
20 "Incoming SNMP Socket", // fdnInSnmpSocket
21 "Outgoing SNMP Socket", // fdnOutSnmpSocket
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, 1, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
30 return FdNotes[fdnNone];
31 }