mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
feat(Socket): expose lastError()
This commit is contained in:
parent
9f177f7e5a
commit
ac0233b367
@ -354,6 +354,9 @@ public:
|
|||||||
/// of buffers used for writing (ie. reading from socket
|
/// of buffers used for writing (ie. reading from socket
|
||||||
/// into buffers).
|
/// into buffers).
|
||||||
|
|
||||||
|
static int lastError();
|
||||||
|
/// Returns the last socket error.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Socket(SocketImpl* pImpl);
|
Socket(SocketImpl* pImpl);
|
||||||
/// Creates the Socket and attaches the given SocketImpl.
|
/// Creates the Socket and attaches the given SocketImpl.
|
||||||
|
@ -487,4 +487,10 @@ SocketBufVec Socket::makeBufVec(const std::vector<std::string>& vec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int Socket::lastError()
|
||||||
|
{
|
||||||
|
return SocketImpl::lastError();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} } // namespace Poco::Net
|
} } // namespace Poco::Net
|
||||||
|
Loading…
Reference in New Issue
Block a user