Go to the documentation of this file. 1 #ifndef __JNET__JSELECTWRITER__
2 #define __JNET__JSELECTWRITER__
4 #include <sys/select.h>
19 namespace JPP {
using namespace JNET; }
107 nfds = ::select(nfds, NULL, &
writerMask, NULL, timeout);
112 if (errno != EINTR) {
Auxiliary class for time values.
int operator()(timeval *timeout=NULL)
Select call.
int operator()(JTimeval timeout)
Select call.
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int getNumberOfFileDescriptors() const
Get number of file descriptors.
bool hasWriterMask(const JAbstractFile &file) const
Has writer file.
#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.
Wrapper class for select call.
void setWriterMask(const JAbstractFile &file)
Set writer mask.
JSelectWriter()
Default constructor.
JFileDescriptorMask writerMask
JFileDescriptorMask & getWriterMask()
Get writer mask.
void reset(const bool option=true)
Reset mask.