feat(Socket): expose error()

This commit is contained in:
Alex Fabijanic 2021-07-05 09:27:33 +02:00
parent 1bb9ae69b3
commit 0ea527ed60
2 changed files with 10 additions and 1 deletions

View File

@ -355,7 +355,10 @@ public:
/// into buffers).
static int lastError();
/// Returns the last socket error.
/// Returns the last error code.
static void error();
/// Throws an appropriate exception for the last error.
protected:
Socket(SocketImpl* pImpl);

View File

@ -493,4 +493,10 @@ int Socket::lastError()
}
void Socket::error()
{
SocketImpl::error();
}
} } // namespace Poco::Net