Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
Poll.hpp File Reference

"<SaS/Common/Poll.hpp>" More...

#include <SaS/Common/osver.h>
#include <SaS/Common/instance.hpp>
#include <SaS/Common/Network.hpp>
#include <SaS/Common/File.hpp>
#include <poll.h>
#include <semaphore.h>
#include <deque>
#include <map>
#include <vector>
#include <pthread.h>
+ Include dependency graph for Poll.hpp:

Go to the source code of this file.

Classes

class  SoftwareAndServices::Library::Common::Poll
 An OS independent wrapper for polling I/O connections. More...
 
struct  SoftwareAndServices::Library::Common::Poll::CallBacks
 
struct  SoftwareAndServices::Library::Common::Poll::CallBacks::CbData
 The Callback user data. More...
 

Namespaces

 SoftwareAndServices
 Copyright Douglas Mark Royer Dougl.nosp@m.asRo.nosp@m.yer@g.nosp@m.mail.nosp@m..com.
 

Macros

#define POLL_ACCEPT_FD   0x1000
 A hack to overload poll bits. More...
 

Detailed Description

"<SaS/Common/Poll.hpp>"

SoftwareAndServices.png

A generic OS independent poll implementation.

Definition in file Poll.hpp.

Macro Definition Documentation

◆ POLL_ACCEPT_FD

#define POLL_ACCEPT_FD   0x1000

A hack to overload poll bits.

This is used as a set to add to 'events' and 'revents' (POLLIN, POLLOUT, ...) when setting up a callback handler. POLL_ACCEPT_FD signifies you are naming a callback handler that is to be called when the server accepts a new connection.

Definition at line 160 of file Poll.hpp.