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) {
 
JFileDescriptorMask writerMask
 
then set_variable PMT_FILE set_variable DAQ_FILE set_variable OUTPUT_FILE set_variable DETECTOR else fatal Wrong number of arguments fi set_variable RUNBYRUN file
 
bool has(const int file_descriptor) const 
Has file descriptor. 
 
void set(const int file_descriptor)
Set file descriptor. 
 
JFileDescriptorMask & getWriterMask()
Get writer mask. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
void setWriterMask(const JAbstractFile &file)
Set writer mask. 
 
JSelectWriter()
Default constructor. 
 
int operator()(JTimeval timeout)
Select call. 
 
Exception for select call. 
 
Auxiliary class for time values. 
 
void reset(const bool option=true)
Reset mask. 
 
Auxiliary class for method select. 
 
The JAbstractFile class encapsulates the c-style file descriptor. 
 
int getNumberOfFileDescriptors() const 
Get number of file descriptors. 
 
int operator()(timeval *timeout=NULL)
Select call. 
 
bool hasWriterMask(const JAbstractFile &file) const 
Has writer file. 
 
Wrapper class for select call.