12 #ifndef ZYPP_BASE_IOTOOLS_H
13 #define ZYPP_BASE_IOTOOLS_H
Base class for Exception.
TimeoutException(const std::string &msg_r)
Ctor taking message.
virtual ~TimeoutException() noexcept override
Dtor.
TimeoutException()
Ctor taking message.
BlockingMode setFILEBlocking(FILE *file, bool mode)
Enables or disabled non blocking mode on a file descriptor.
static const timeout_type no_timeout
std::pair< ReceiveUpToResult, std::string > receiveUpto(FILE *file, char c, timeout_type timeout, bool failOnUnblockError)
@ WasBlocking
FD was blocking before.
@ FailedToSetMode
Failed to block or unblock the fd.
@ WasNonBlocking
FD was non blocking before.