listener.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_LISTENER_H
#define RUDIMENTS_LISTENER_H
#include <rudiments/private/listenerincludes.h>
typedef singlylinkedlistnode<filedescriptor *> listenerlistnode;
typedef singlylinkedlist<filedescriptor *> listenerlist;
class RUDIMENTS_DLLSPEC listener {
public:
listener();
virtual ~listener();
void addFileDescriptor(filedescriptor *fd);
void addReadFileDescriptor(filedescriptor *fd);
void addWriteFileDescriptor(filedescriptor *fd);
void removeFileDescriptor(filedescriptor *fd);
void removeAllFileDescriptors();
int32_t listen();
int32_t listen(int32_t sec, int32_t usec);
listenerlist *getReadReadyList();
listenerlist *getWriteReadyList();
void retryInterruptedWaits();
void dontRetryInterruptedWaits();
#include <rudiments/private/listener.h>
};
#endif
filedescriptor
Definition: filedescriptor.h:13
listener
Definition: listener.h:14
listener::listen
int32_t listen(int32_t sec, int32_t usec)
listener::getWriteReadyList
listenerlist * getWriteReadyList()
listener::addFileDescriptor
void addFileDescriptor(filedescriptor *fd)
listener::removeFileDescriptor
void removeFileDescriptor(filedescriptor *fd)
listener::listen
int32_t listen()
listener::addReadFileDescriptor
void addReadFileDescriptor(filedescriptor *fd)
listener::getReadReadyList
listenerlist * getReadReadyList()
listener::addWriteFileDescriptor
void addWriteFileDescriptor(filedescriptor *fd)
listener::~listener
virtual ~listener()
listener::removeAllFileDescriptors
void removeAllFileDescriptors()
listener::dontRetryInterruptedWaits
void dontRetryInterruptedWaits()
listener::listener
listener()
listener::retryInterruptedWaits
void retryInterruptedWaits()
singlylinkedlist
Definition: singlylinkedlist.h:64
singlylinkedlistnode
Definition: singlylinkedlist.h:12