My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Enumerations
webserver.h File Reference
#include <sys/epoll.h>

Go to the source code of this file.

Macros

#define WS_COMPLETE   ((int)0x01)
 
#define WS_INCOMPLETE_READ   ((int)0x02)
 
#define WS_INCOMPLETE_WRITE   ((int)0x04)
 
#define WS_ERROR   ((int)0x08)
 
#define RTN_TO_EVT(rtn__)
 

Enumerations

enum  webserver_status {
  NIL, CON_ERROR, NO_CONNECTION, CON_ACCEPTED,
  CON_SSL_CONNECTING, CON_READING, CON_DB_REQUEST, CON_WRITING
}
 

Macro Definition Documentation

#define RTN_TO_EVT (   rtn__)
Value:
(rtn__ & WS_INCOMPLETE_READ ? EPOLLIN : 0) | \
(rtn__ & WS_INCOMPLETE_WRITE ? EPOLLOUT : 0)
#define WS_INCOMPLETE_READ
Definition: webserver.h:25
#define WS_INCOMPLETE_WRITE
Definition: webserver.h:26

Definition at line 40 of file webserver.h.

#define WS_COMPLETE   ((int)0x01)

Definition at line 24 of file webserver.h.

#define WS_ERROR   ((int)0x08)

Definition at line 27 of file webserver.h.

#define WS_INCOMPLETE_READ   ((int)0x02)

Definition at line 25 of file webserver.h.

#define WS_INCOMPLETE_WRITE   ((int)0x04)

Definition at line 26 of file webserver.h.

Enumeration Type Documentation

Enumerator
NIL 
CON_ERROR 
NO_CONNECTION 
CON_ACCEPTED 
CON_SSL_CONNECTING 
CON_READING 
CON_DB_REQUEST 
CON_WRITING 

Definition at line 29 of file webserver.h.