Go to the documentation of this file. 1 #ifndef __JNET__JSELECTREADER__
2 #define __JNET__JSELECTREADER__
4 #include <sys/select.h>
19 namespace JPP {
using namespace JNET; }
107 nfds = ::select(nfds, &
readerMask, NULL, NULL, timeout);
112 if (errno != EINTR) {
Auxiliary class for time values.
int operator()(timeval *timeout=NULL)
Select call.
JFileDescriptorMask & getReaderMask()
Get reader mask.
bool has(const int file_descriptor) const
Has file descriptor.
The JAbstractFile class encapsulates the c-style file descriptor.
Interprocess communication.
Exception for select call.
Wrapper class for select call.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JSelectReader()
Default constructor.
int getNumberOfFileDescriptors() const
Get number of file descriptors.
bool hasReaderMask(const JAbstractFile &file) const
Has reader file.
JFileDescriptorMask readerMask
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Auxiliary class for method select.
void set(const int file_descriptor)
Set file descriptor.
void setReaderMask(const JAbstractFile &file)
Set reader mask.
void reset(const bool option=true)
Reset mask.
bool operator()(JTimeval timeout)
Select call.