5 #include <libutl/Stream.h> 67 #if UTL_HOST_OS != UTL_OS_MINGW 69 bool isSocket()
const;
82 virtual size_t read(
byte_t* array,
size_t maxBytes,
size_t minBytes =
size_t_max);
84 virtual void write(
const byte_t* array,
size_t num);
86 #if UTL_HOST_OS != UTL_OS_MINGW 91 return !getFlag(flg_nonBlocking);
95 void setBlockingIO(
bool v);
113 virtual void clear();
116 virtual void setModes();
void deInit()
De-initialize UTL++.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
unsigned char byte_t
Unsigned character.
const size_t size_t_max
Maximum size_t value.
unsigned int uint32_t
Unsigned 32-bit integer.
int fd() const
Get the associated file descriptor.
bool blockingIO() const
Is blocking I/O enabled on the file descriptor?
unsigned int uint_t
Unsigned integer.
#define UTL_CLASS_NO_COPY
Declare that a class cannot do copy().
Stream with file descriptor.
void detach()
Detach from the file.
void init()
Initialize UTL++.
Buffered stream with file descriptor.