]>
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
17 "FTP Socket", // fdnFtpSocket
19 "Incoming SNMP Socket", // fdnInSnmpSocket
20 "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, DBG_IMPORTANT
, HERE
<< "salvaged bug: wrong fd_note ID: " << fdNoteId
);
30 return FdNotes
[fdnNone
];