Classes | |
| struct | SelectObject |
Typedefs | |
| typedef Array< SelectObject > | SelectObjectArray |
Functions | |
| int | selectRWEpoll (SelectObjectArray &selarray, UInt32 ms) |
| int | selectRWPoll (SelectObjectArray &selarray, UInt32 ms) |
| int | selectRWSelect (SelectObjectArray &selarray, UInt32 ms) |
| int | selectRW (SelectObjectArray &selarray, UInt32 ms=INFINITE_TIMEOUT) |
| Select returns as soon as input or output is available on any of the Select_t objects that are in given array or the timeout has passed. | |
| int | select (const SelectTypeArray &selarray, UInt32 ms=INFINITE_TIMEOUT) |
| Select returns as soon as input is available on any of Select_t objects that are in given array. | |
Variables | |
| const int | SELECT_TIMEOUT = -2 |
| The value returned from select when the timeout value has expired. | |
| const int | SELECT_ERROR = -1 |
| The value returned from select when any error occurs other than timeout. | |
| const int | SELECT_INTERRUPTED = -3 |
| The value returned from select when select is interrupted by a signal. | |
| const int | SELECT_NOT_IMPLEMENTED = -4 |
| Used internally, but listed here to prevent conflicts. | |
| const UInt32 | INFINITE_TIMEOUT = ~0U |
| Value that means infinite timeout. | |
|
|
Definition at line 112 of file Select.hpp. |
|
||||||||||||
|
Select returns as soon as input is available on any of Select_t objects that are in given array.
Definition at line 537 of file Select.cpp. References i, BLOCXX_NAMESPACE::Array< T >::push_back(), BLOCXX_NAMESPACE::Array< T >::reserve(), SELECT_ERROR, selectRW(), BLOCXX_NAMESPACE::Array< T >::size(), and BLOCXX_NAMESPACE::Select::SelectObject::waitForRead. Referenced by BLOCXX_NAMESPACE::SocketBaseImpl::connect(), BLOCXX_NAMESPACE::SelectEngine::go(), selectRWSelect(), and BLOCXX_NAMESPACE::ThreadImpl::sleep(). |
|
||||||||||||
|
Select returns as soon as input or output is available on any of the Select_t objects that are in given array or the timeout has passed.
Definition at line 514 of file Select.cpp. References BLOCXX_ASSERT, SELECT_NOT_IMPLEMENTED, selectRWEpoll(), selectRWPoll(), and selectRWSelect(). Referenced by BLOCXX_NAMESPACE::Exec::processInputOutput(), select(), and BLOCXX_NAMESPACE::SocketUtils::waitForIO(). |
|
||||||||||||
|
Definition at line 168 of file Select.cpp. References BLOCXX_ASSERT, BLOCXX_NAMESPACE::FileSystem::close(), i, INFINITE_TIMEOUT, SELECT_ERROR, SELECT_INTERRUPTED, SELECT_NOT_IMPLEMENTED, SELECT_TIMEOUT, BLOCXX_NAMESPACE::Array< T >::size(), and BLOCXX_NAMESPACE::ThreadImpl::testCancel(). Referenced by selectRW(). |
|
||||||||||||
|
Definition at line 276 of file Select.cpp. References BLOCXX_ASSERT, i, INFINITE_TIMEOUT, SELECT_ERROR, SELECT_INTERRUPTED, SELECT_NOT_IMPLEMENTED, SELECT_TIMEOUT, BLOCXX_NAMESPACE::Array< T >::size(), and BLOCXX_NAMESPACE::ThreadImpl::testCancel(). Referenced by selectRW(). |
|
||||||||||||
|
Definition at line 387 of file Select.cpp. References BLOCXX_ASSERT, i, INFINITE_TIMEOUT, select(), SELECT_ERROR, SELECT_INTERRUPTED, SELECT_NOT_IMPLEMENTED, SELECT_TIMEOUT, BLOCXX_NAMESPACE::Array< T >::size(), and BLOCXX_NAMESPACE::ThreadImpl::testCancel(). Referenced by selectRW(). |
|
|
Value that means infinite timeout.
Definition at line 71 of file Select.hpp. Referenced by selectRWEpoll(), selectRWPoll(), and selectRWSelect(). |
|
|
The value returned from select when any error occurs other than timeout.
Definition at line 59 of file Select.hpp. Referenced by BLOCXX_NAMESPACE::SelectEngine::go(), BLOCXX_NAMESPACE::Exec::processInputOutput(), select(), selectRWEpoll(), selectRWPoll(), and selectRWSelect(). |
|
|
The value returned from select when select is interrupted by a signal.
Definition at line 63 of file Select.hpp. Referenced by BLOCXX_NAMESPACE::SelectEngine::go(), BLOCXX_NAMESPACE::Exec::processInputOutput(), selectRWEpoll(), selectRWPoll(), and selectRWSelect(). |
|
|
Used internally, but listed here to prevent conflicts.
Definition at line 67 of file Select.hpp. Referenced by selectRW(), selectRWEpoll(), selectRWPoll(), and selectRWSelect(). |
|
|
The value returned from select when the timeout value has expired.
Definition at line 55 of file Select.hpp. Referenced by BLOCXX_NAMESPACE::SelectEngine::go(), BLOCXX_NAMESPACE::Exec::processInputOutput(), selectRWEpoll(), selectRWPoll(), selectRWSelect(), and BLOCXX_NAMESPACE::SocketUtils::waitForIO(). |
1.4.4