summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-16 03:34:58 -0500
committerAdam <Adam@anope.org>2013-04-16 18:19:42 -0500
commit47332d6e9b990498dd35457090dd8983d8aae8d3 (patch)
tree5f298a5093f16ab7b349dd817d26ec9b98f67dac /include
parent1dfead3b2cc9e8c603f6ad6f7216576a2ce361fb (diff)
Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAEWOULDBLOCK
Diffstat (limited to 'include')
-rw-r--r--include/socketengine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index b790f6d77..293d27e43 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -489,6 +489,11 @@ public:
/** Get data transfer statistics, kilobits per second in and out and total.
*/
void GetStats(float &kbitpersec_in, float &kbitpersec_out, float &kbitpersec_total);
+
+ /** Should we ignore the error in errno?
+ * Checks EAGAIN and WSAEWOULDBLOCK
+ */
+ static bool IgnoreError();
};
SocketEngine* CreateSocketEngine();