summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 2fc3cdbfd..37b7d6373 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -494,6 +494,14 @@ public:
* Checks EAGAIN and WSAEWOULDBLOCK
*/
static bool IgnoreError();
+
+ /** Return the last socket related error. strrerror(errno) on *nix
+ */
+ static std::string LastError();
+
+ /** Returns the error for the given error num, strerror(errnum) on *nix
+ */
+ static std::string GetError(int errnum);
};
inline bool SocketEngine::IgnoreError()