summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-30 13:01:10 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-30 13:01:10 +0200
commit1031f333332cf1b09db4fd632f141143ee637c34 (patch)
tree3f2b3c08e9a743f19725da45f3879aa2bf54bfbf /include
parent7432fea968127b606fc029ae462e91d3f30df8a4 (diff)
parentd54eec6dd8d44cba3c1e935f72089dbe675e0820 (diff)
Merge insp20
Diffstat (limited to 'include')
-rw-r--r--include/base.h2
-rw-r--r--include/socketengine.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/include/base.h b/include/base.h
index 117ffab76..c6d361576 100644
--- a/include/base.h
+++ b/include/base.h
@@ -121,7 +121,7 @@ class CoreExport usecountbase
};
template <typename T>
-class CoreExport reference
+class reference
{
T* value;
public:
diff --git a/include/socketengine.h b/include/socketengine.h
index 8e4c3dfc9..d97c0ea9f 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -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()