]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
4 * DEBUG: section 54 Interprocess Communication
10 #include "ipc/FdNotes.h"
14 Ipc::FdNote(int fdNoteId
)
16 static const char *FdNotes
[Ipc::fdnEnd
] = {
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
26 if (fdnNone
< fdNoteId
&& fdNoteId
< fdnEnd
)
27 return FdNotes
[fdNoteId
];
29 debugs(54, 1, HERE
<< "salvaged bug: wrong fd_note ID: " << fdNoteId
);
30 return FdNotes
[fdnNone
];