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
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.
then usage $script< string identifier >< detectorfile > input file(toashort file)+" "\nNote that the input files and toashort files should be one-to-one related." fi if (( $
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.