]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
2 * DEBUG: section 54 Interprocess Communication
8 #include "ipc/FdNotes.h"
11 Ipc::FdNote(int fdNoteId
)
13 static const char *FdNotes
[Ipc::fdnEnd
] = {
15 "HTTP Socket", // fdnHttpSocket
16 "HTTPS Socket", // fdnHttpsSocket
18 "Incoming SNMP Socket", // fdnInSnmpSocket
19 "Outgoing SNMP Socket", // fdnOutSnmpSocket
21 "Incoming ICP Socket", // fdnInIcpSocket
22 "Incoming HTCP Socket" // fdnInHtcpSocket
25 if (fdnNone
< fdNoteId
&& fdNoteId
< fdnEnd
)
26 return FdNotes
[fdNoteId
];
28 debugs(54, DBG_IMPORTANT
, HERE
<< "salvaged bug: wrong fd_note ID: " << fdNoteId
);
29 return FdNotes
[fdnNone
];