summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-22 03:10:48 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-22 19:45:05 +0100
commit63e300ed082b82530ad5ae0949f45686746b7c9b (patch)
tree652448c5c2bd134df654b49b3aec7d82899abf64 /include/socketengine.h
parentb1098712771ab823042fcf8614a706c76c2ff401 (diff)
Deduplicate error handling in the socket engines.
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 34dd306ba..0187a043e 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -283,6 +283,9 @@ class CoreExport SocketEngine
/** Look up the fd limit using rlimit. */
static void LookupMaxFds();
+ /** Terminates the program when the socket engine fails to initialize. */
+ static void InitError();
+
static void OnSetEvent(EventHandler* eh, int old_mask, int new_mask);
/** Add an event handler to the base socket engine. AddFd(EventHandler*, int) should call this.