libzypp  17.25.3
IOTools.h File Reference
#include <stdio.h>
#include <utility>
#include <string>
#include <zypp/base/Exception.h>
Include dependency graph for IOTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zypp::io::TimeoutException
 

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::io
 

Typedefs

using zypp::io::timeout_type = size_t
 

Enumerations

enum  zypp::io::BlockingMode { zypp::io::BlockingMode::FailedToSetMode = -1, zypp::io::BlockingMode::WasBlocking, zypp::io::BlockingMode::WasNonBlocking }
 
enum  zypp::io::ReceiveUpToResult { zypp::io::Success, zypp::io::Timeout, zypp::io::EndOfFile, zypp::io::Error }
 

Functions

BlockingMode zypp::io::setFILEBlocking (FILE *file, bool mode=true)
 Enables or disabled non blocking mode on a file descriptor. More...
 
std::pair< ReceiveUpToResult, std::string > zypp::io::receiveUpto (FILE *file, char c, timeout_type timeout, bool failOnUnblockError)
 

Variables

static const timeout_type zypp::io::no_timeout = static_cast<timeout_type>(-1)