Squid Web Cache
master
Loading...
Searching...
No Matches
StartListening.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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_SRC_IPC_STARTLISTENING_H
12
#define SQUID_SRC_IPC_STARTLISTENING_H
13
14
#include "
base/AsyncCall.h
"
15
#include "
base/forward.h
"
16
#include "
base/Subscription.h
"
17
#include "
comm/forward.h
"
18
#include "
ip/forward.h
"
19
#include "
ipc/FdNotes.h
"
20
21
#include <iosfwd>
22
23
namespace
Ipc
24
{
25
27
class
StartListeningAnswer
28
{
29
public
:
30
Comm::ConnectionPointer
conn
;
31
int
errNo
= 0;
32
};
33
34
using
StartListeningCallback
=
AsyncCallback<StartListeningAnswer>
;
35
38
void
StartListening
(
int
sock_type,
int
proto,
const
Comm::ConnectionPointer
&listenConn,
39
FdNoteId
,
StartListeningCallback
&);
40
41
std::ostream &
operator <<
(std::ostream &,
const
StartListeningAnswer
&);
42
43
}
// namespace Ipc;
44
45
#endif
/* SQUID_SRC_IPC_STARTLISTENING_H */
46
AsyncCall.h
FdNotes.h
Subscription.h
forward.h
AsyncCallback< StartListeningAnswer >
Ipc::StartListeningAnswer
StartListening() result.
Definition
StartListening.h:28
Ipc::StartListeningAnswer::errNo
int errNo
errno value from the comm_open_listener() call
Definition
StartListening.h:31
Ipc::StartListeningAnswer::conn
Comm::ConnectionPointer conn
opened listening socket
Definition
StartListening.h:30
RefCount< Comm::Connection >
forward.h
forward.h
Ipc
Definition
IpcIoFile.h:24
Ipc::FdNoteId
FdNoteId
We cannot send char* FD notes to other processes. Pass int IDs and convert.
Definition
FdNotes.h:20
Ipc::StartListening
void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &listenConn, FdNoteId, StartListeningCallback &)
Definition
StartListening.cc:32
Ipc::operator<<
std::ostream & operator<<(std::ostream &os, const QuestionerId &qid)
Definition
QuestionerId.h:63
squid
src
ipc
StartListening.h
Generated by
1.9.8