]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/StartListening.h
4 * DEBUG: section 54 Interprocess Communication
8 #ifndef SQUID_IPC_START_LISTENING_H
9 #define SQUID_IPC_START_LISTENING_H
12 #include "ip/forward.h"
13 #include "ipc/FdNotes.h"
14 #include "base/AsyncCall.h"
23 /// common API for all StartListening() callbacks
24 class StartListeningCb
28 virtual ~StartListeningCb();
30 /// starts printing arguments, return os
31 std::ostream
&startPrint(std::ostream
&os
) const;
34 int fd
; ///< opened listening socket or -1
35 int errNo
; ///< errno value from the comm_open_listener() call
38 /// Depending on whether SMP is on, either ask Coordinator to send us
39 /// the listening FD or call comm_open_listener() directly.
40 extern void StartListening(int sock_type
, int proto
, Ip::Address
&addr
,
41 int flags
, FdNoteId fdNote
, AsyncCall::Pointer
&callback
);
46 #endif /* SQUID_IPC_START_LISTENING_H */