1 #ifndef __JNET__JSELECT__
2 #define __JNET__JSELECT__
5 #include <sys/select.h>
23 namespace JPP {
using namespace JNET; }
78 return this->
operator ()(static_cast<JTimeval*>(static_cast<void*>(&timeout)));
102 if (errno != EINTR) {
bool select(const Trk &trk, const Evt &evt)
Event selection.
Wrapper class for select call.
JFileDescriptorMask writerMask
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool operator()()
Infinite wait select call.
Exception for select call.
Auxiliary class for time values.
void reset(const bool option=true)
Reset mask.
int operator()(JTimeval *timeout)
Select call.
Wrapper class for select call.
int getNumberOfFileDescriptors() const
Get number of file descriptors.
bool operator()(JTimeval timeout)
Select call.
const timeval * get() const
Get pointer to time value.
JFileDescriptorMask readerMask
JSelect()
Default constructor.
Wrapper class for select call.