]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 54 Interprocess Communication */
13 #include "ipc/FdNotes.h"
16 Ipc::FdNote(int fdNoteId
)
18 static const char *FdNotes
[Ipc::fdnEnd
] = {
20 "HTTP Socket", // fdnHttpSocket
21 "HTTPS Socket", // fdnHttpsSocket
22 "FTP Socket", // fdnFtpSocket
24 "Incoming SNMP Socket", // fdnInSnmpSocket
25 "Outgoing SNMP Socket", // fdnOutSnmpSocket
27 "Incoming ICP Socket", // fdnInIcpSocket
28 "Incoming HTCP Socket" // fdnInHtcpSocket
31 if (fdnNone
< fdNoteId
&& fdNoteId
< fdnEnd
)
32 return FdNotes
[fdNoteId
];
34 debugs(54, DBG_IMPORTANT
, HERE
<< "salvaged bug: wrong fd_note ID: " << fdNoteId
);
35 return FdNotes
[fdnNone
];