]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine.h
Merge pull request #685 from SaberUK/master+gnutls-rng
[user/henk/code/inspircd.git] / include / socketengine.h
index 8e4c3dfc9e3dbf5dca98ae2a86b276b63c15502e..d97c0ea9f9b9bd6c139abd09575e459e6a9d5ebc 100644 (file)
@@ -493,6 +493,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()