mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
feat(Socket): expose error()
This commit is contained in:
parent
1bb9ae69b3
commit
0ea527ed60
@ -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);
|
||||
|
@ -493,4 +493,10 @@ int Socket::lastError()
|
||||
}
|
||||
|
||||
|
||||
void Socket::error()
|
||||
{
|
||||
SocketImpl::error();
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Net
|
||||
|
Loading…
Reference in New Issue
Block a user