summaryrefslogtreecommitdiff
path: root/wait.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wait.cpp')
-rw-r--r--wait.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/wait.cpp b/wait.cpp
index 05d485b..dfcb60c 100644
--- a/wait.cpp
+++ b/wait.cpp
@@ -15,6 +15,15 @@
NAMESPACE_BEGIN(CryptoPP)
+unsigned int WaitObjectContainer::MaxWaitObjects()
+{
+#ifdef USE_WINDOWS_STYLE_SOCKETS
+ return MAXIMUM_WAIT_OBJECTS * (MAXIMUM_WAIT_OBJECTS-1);
+#else
+ return FD_SETSIZE;
+#endif
+}
+
WaitObjectContainer::WaitObjectContainer()
{
Clear();