1 /*
2  * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 /* DEBUG: section 54    Interprocess Communication */
10 
11 #ifndef SQUID_IPC_FD_NOTES_H
12 #define SQUID_IPC_FD_NOTES_H
13 
14 namespace Ipc
15 {
16 
17 /// We cannot send char* FD notes to other processes. Pass int IDs and convert.
18 
19 /// fd_note() label ID
20 typedef enum { fdnNone, fdnHttpSocket, fdnHttpsSocket, fdnFtpSocket,
21 #if SQUID_SNMP
22                fdnInSnmpSocket, fdnOutSnmpSocket,
23 #endif
24                fdnInIcpSocket, fdnInHtcpSocket, fdnEnd
25              } FdNoteId;
26 
27 const char *FdNote(int fdNodeId); ///< converts FdNoteId into a string
28 
29 } // namespace Ipc;
30 
31 #endif /* SQUID_IPC_FD_NOTES_H */
32 
33