]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/comm/Loops.h
1 #ifndef _SQUID_SRC_COMM_LOOPS_H
2 #define _SQUID_SRC_COMM_LOOPS_H
4 #include "comm_err_t.h"
6 /* Comm layer select loops API.
8 * These API functions must be implemented by all FD IO loops used by Squid.
9 * Defines are provided short-term for legacy code. These will disappear soon.
15 /// Initialize the module on Squid startup
16 extern void SelectLoopInit(void);
18 /// Mark an FD to be watched for its IO status.
19 extern void SetSelect(int, unsigned int, PF
*, void *, time_t);
21 /// reset/undo/unregister the watch for an FD which was set by Comm::SetSelect()
22 extern void ResetSelect(int);
24 /** Perform a select() or equivalent call.
25 * This is used by the main select loop engine to check for FD with IO available.
27 extern comm_err_t
DoSelect(int);
29 extern void QuickPollRequired(void);
33 #endif /* _SQUID_SRC_COMM_LOOPS_H */