mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
feat(SecureSocketImpl): how to set the socket of SecureSocketImpl to no-blocking? #2352
This commit is contained in:
@@ -311,6 +311,22 @@ void SecureSocketImpl::close()
|
||||
}
|
||||
|
||||
|
||||
void SecureSocketImpl::setBlocking(bool flag)
|
||||
{
|
||||
poco_check_ptr (_pSocket);
|
||||
|
||||
_pSocket->setBlocking(flag);
|
||||
}
|
||||
|
||||
|
||||
bool SecureSocketImpl::getBlocking() const
|
||||
{
|
||||
poco_check_ptr (_pSocket);
|
||||
|
||||
return _pSocket->getBlocking();
|
||||
}
|
||||
|
||||
|
||||
int SecureSocketImpl::sendBytes(const void* buffer, int length, int flags)
|
||||
{
|
||||
poco_assert (_pSocket->initialized());
|
||||
|
||||
Reference in New Issue
Block a user