4 * DEBUG: section 54 Interprocess Communication
8 #ifndef SQUID_IPC_START_LISTENING_H
9 #define SQUID_IPC_START_LISTENING_H
12 #include "base/AsyncCall.h"
13 #include "base/Subscription.h"
14 #include "comm/forward.h"
15 #include "ip/forward.h"
16 #include "ipc/FdNotes.h"
25 /// common API for all StartListening() callbacks
26 class StartListeningCb
30 virtual ~StartListeningCb();
32 /// starts printing arguments, return os
33 std::ostream
&startPrint(std::ostream
&os
) const;
36 Comm::ConnectionPointer conn
; ///< opened listening socket
37 int errNo
; ///< errno value from the comm_open_listener() call
38 Subscription::Pointer handlerSubscription
; ///< The subscription we will pass on to the ConnAcceptor
41 /// Depending on whether SMP is on, either ask Coordinator to send us
42 /// the listening FD or start a connection acceptor directly.
43 extern void StartListening(int sock_type
, int proto
, const Comm::ConnectionPointer
&listenConn
,
44 FdNoteId fdNote
, AsyncCall::Pointer
&callback
, const Subscription::Pointer
&handlerSub
);
49 #endif /* SQUID_IPC_START_LISTENING_H */