#include "common.h"
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "conn_handler.h"
#include "xmalloc.h"
#include "buffer.h"
#include "conftable.h"
#include "logger.h"
#include "http.h"
Include dependency graph for conn_handler.c:
Go to the source code of this file.
Data Structures | |
struct | ConnHandler |
holds a connections handler's internal state. More... | |
Defines | |
#define | MSG_NOSIGNAL 0 |
Solaris does not know about MSG_NOSIGNAL so define it if needed. | |
Functions | |
int | chModulePreInit () |
initialise module (calculate constant values and allocate common buffers). More... | |
int | chModuleTerminate () |
free all ressources allocated by the module. More... | |
ConnHandler | chInit (int server_socket) |
creates and returns a new CHData connection handler object. More... | |
int | chGetSocket (const ConnHandler this) |
returns a file descriptor to the connection handler's communication socket. More... | |
time_t | chGetStamp (const ConnHandler this) |
get a ConnectionHandler's transmit timestamp. More... | |
int | readData (ConnHandler this) |
reads a block of pending data from the communication socket. | |
int | chReceive (ConnHandler this) |
handles a request pending at the connection handlers socket. More... | |
int | byteInQueue (const ConnHandler this) |
returns amount of data in send queue. | |
int | chIsDataPending (const ConnHandler this) |
returns true if there is pending data. More... | |
int | forwardSendToProtHandler (ConnHandler this) |
issue a "send"-request to the active protocol handler. | |
int | chSend (ConnHandler this) |
send some of the data currently in queue. More... | |
int | chProcess (ConnHandler this) |
do additional data processing. More... | |
int | chGetError (const ConnHandler this) |
return the connection handler's current error status. More... | |
int | chTerminate (ConnHandler this) |
terminate the connection handler. More... |
Definition in file conn_handler.c.
|
return the connection handler's current error status.
Definition at line 309 of file conn_handler.c. |
|
returns a file descriptor to the connection handler's communication socket.
Definition at line 154 of file conn_handler.c. |
|
get a ConnectionHandler's transmit timestamp.
returns the time the ConnectionHandler ch made its last transmission from or to the remote end
Definition at line 160 of file conn_handler.c. |
|
creates and returns a new CHData connection handler object.
Definition at line 110 of file conn_handler.c. |
|
returns true if there is pending data.
Definition at line 227 of file conn_handler.c. |
|
initialise module (calculate constant values and allocate common buffers).
Definition at line 94 of file conn_handler.c. |
|
free all ressources allocated by the module.
Definition at line 102 of file conn_handler.c. |
|
do additional data processing.
Definition at line 299 of file conn_handler.c. |
|
handles a request pending at the connection handlers socket.
Definition at line 197 of file conn_handler.c. |
|
send some of the data currently in queue.
Definition at line 253 of file conn_handler.c. |
|
terminate the connection handler.
Definition at line 315 of file conn_handler.c. |