39#ifndef BLOCXX_SELECT_HPP_
40#define BLOCXX_SELECT_HPP_
41#include "blocxx/BLOCXX_config.h"
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
A timeout can be absolute, which means that it will happen at the specified DateTime.
const UInt32 INFINITE_TIMEOUT BLOCXX_DEPRECATED
Value that means infinite timeout.
Array< SelectObject > SelectObjectArray
int select(const SelectTypeArray &selarray, UInt32 ms)
Select returns as soon as input is available on any of Select_t objects that are in given array.
const int SELECT_TIMEOUT
The value returned from select when the timeout value has expired.
const int SELECT_NOT_IMPLEMENTED
Used internally, but listed here to prevent conflicts.
int selectRW(SelectObjectArray &selarray, UInt32 ms)
const int SELECT_ERROR
The value returned from select when any error occurs other than timeout.
Array< Select_t > SelectTypeArray
bool wasError
Ouput parameter. Will be set to true to indicate that s has an error.
bool waitForRead
Input parameter. Set it to true to indicate that waiting for read availability on s is desired.
bool writeAvailable
Ouput parameter. Will be set to true to indicate that s has become available for writing.
bool waitForWrite
Input parameter. Set it to true to indicate that waiting for write availability on s is desired.
SelectObject(Select_t s_)
bool readAvailable
Ouput parameter. Will be set to true to indicate that s has become available for reading.