]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/comm/ListenStateData.h
1 #ifndef SQUID_LISTENERSTATEDATA_H
2 #define SQUID_LISTENERSTATEDATA_H
5 #include "base/AsyncCall.h"
11 class ConnectionDetail
;
20 ListenStateData(int fd
, AsyncCall::Pointer
&call
, bool accept_many
);
21 ListenStateData(const ListenStateData
&r
); // not implemented.
24 void subscribe(AsyncCall::Pointer
&call
);
26 void notify(int newfd
, comm_err_t
, int xerrno
, const ConnectionDetail
&);
30 /// errno code if any happened so far.
33 /// whether this socket is delayed and on the AcceptLimiter queue.
37 /// Method to test if there are enough file escriptors to open a new client connection
38 /// if not the accept() will be postponed
39 static bool okToAccept();
41 /// Method callback for whenever an FD is ready to accept a client connection.
42 static void doAccept(int fd
, void *data
);
45 int oldAccept(ConnectionDetail
&details
);
47 AsyncCall::Pointer theCallback
;
55 #endif /* SQUID_LISTENERSTATEDATA_H */