squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
ipc
FdNotes.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2023 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
#include "
squid.h
"
12
#include "
debug/Stream.h
"
13
#include "
ipc/FdNotes.h
"
14
15
const
char
*
16
Ipc::FdNote
(
int
fdNoteId)
17
{
18
static
const
char
*FdNotes[
Ipc::fdnEnd
] = {
19
"None"
,
// fdnNone
20
"HTTP Socket"
,
// fdnHttpSocket
21
"HTTPS Socket"
,
// fdnHttpsSocket
22
"FTP Socket"
,
// fdnFtpSocket
23
#if SQUID_SNMP
24
"Incoming SNMP Socket"
,
// fdnInSnmpSocket
25
"Outgoing SNMP Socket"
,
// fdnOutSnmpSocket
26
#endif
27
"Incoming ICP Socket"
,
// fdnInIcpSocket
28
"Incoming HTCP Socket"
// fdnInHtcpSocket
29
};
30
31
if
(
fdnNone
< fdNoteId && fdNoteId <
fdnEnd
)
32
return
FdNotes[fdNoteId];
33
34
debugs
(54,
DBG_IMPORTANT
,
"ERROR: Squid BUG: wrong fd_note ID: "
<< fdNoteId);
35
return
FdNotes[
fdnNone
];
36
}
37
FdNotes.h
Stream.h
DBG_IMPORTANT
#define DBG_IMPORTANT
Definition:
Stream.h:38
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition:
Stream.h:194
Ipc::fdnNone
@ fdnNone
Definition:
FdNotes.h:20
Ipc::fdnEnd
@ fdnEnd
Definition:
FdNotes.h:24
Ipc::FdNote
const char * FdNote(int fdNodeId)
converts FdNoteId into a string
Definition:
FdNotes.cc:16
squid.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive