Loops.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 #ifndef _SQUID_SRC_COMM_LOOPS_H
10 #define _SQUID_SRC_COMM_LOOPS_H
11 
12 #include "comm/Flag.h"
13 #include "comm/forward.h"
14 
15 /* Comm layer select loops API.
16  *
17  * These API functions must be implemented by all FD IO loops used by Squid.
18  * Defines are provided short-term for legacy code. These will disappear soon.
19  */
20 
21 namespace Comm
22 {
23 
25 void SelectLoopInit(void);
26 
28 void ResetSelect(int);
29 
33 Comm::Flag DoSelect(int);
34 
35 void QuickPollRequired(void);
36 
42 #if _SQUID_WINDOWS_
43 #define INCOMING_UDP_MAX 1
44 #else
45 #define INCOMING_UDP_MAX 15
46 #endif
47 
51 #if _SQUID_WINDOWS_
52 #define INCOMING_DNS_MAX 1
53 #else
54 #define INCOMING_DNS_MAX 15
55 #endif
56 
61 #if _SQUID_WINDOWS_
62 #define INCOMING_TCP_MAX 1
63 #else
64 #define INCOMING_TCP_MAX 10
65 #endif
66 #define INCOMING_TOTAL_MAX (INCOMING_TCP_MAX+INCOMING_UDP_MAX+INCOMING_DNS_MAX)
67 
68 } // namespace Comm
69 
70 #endif /* _SQUID_SRC_COMM_LOOPS_H */
71 
void ResetSelect(int)
reset/undo/unregister the watch for an FD which was set by Comm::SetSelect()
Definition: ModDevPoll.cc:304
void SelectLoopInit(void)
Initialize the module on Squid startup.
Definition: ModDevPoll.cc:178
Comm::Flag DoSelect(int)
Do poll and trigger callback functions as appropriate.
Definition: ModDevPoll.cc:324
Flag
Definition: Flag.h:15
void QuickPollRequired(void)
Definition: ModDevPoll.cc:444

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors