StartListening.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_START_LISTENING_H
12 #define SQUID_IPC_START_LISTENING_H
13 
14 #include "base/AsyncCall.h"
15 #include "base/Subscription.h"
16 #include "comm/forward.h"
17 #include "ip/forward.h"
18 #include "ipc/FdNotes.h"
19 
20 #include <iosfwd>
21 
22 namespace Ipc
23 {
24 
27 {
28 public:
30  virtual ~StartListeningCb();
31 
33  std::ostream &startPrint(std::ostream &os) const;
34 
35 public:
37  int errNo;
39 };
40 
43 void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &listenConn,
45 
46 } // namespace Ipc;
47 
48 #endif /* SQUID_IPC_START_LISTENING_H */
49 
void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &listenConn, FdNoteId fdNote, AsyncCall::Pointer &callback)
void const char HLPCB * callback
Definition: stub_helper.cc:16
std::ostream & startPrint(std::ostream &os) const
starts printing arguments, return os
Subscription::Pointer handlerSubscription
The subscription we will pass on to the ConnAcceptor.
FdNoteId
We cannot send char* FD notes to other processes. Pass int IDs and convert.
Definition: FdNotes.h:20
common API for all StartListening() callbacks
Comm::ConnectionPointer conn
opened listening socket
int errNo
errno value from the comm_open_listener() call

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors