abyss_conn.h File Reference

#include <xmlrpc-c/abyss.h>
#include "abyss_socket.h"
#include "abyss_file.h"

Include dependency graph for abyss_conn.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _TConn

Defines

#define BUFFER_SIZE   4096

Typedefs

typedef struct _TConn TConn

Functions

TConnConnAlloc (void)
void ConnCreate (TConn **const connectionPP, TServer *const serverP, TSocket *const connectedSocketP, TThreadProc *const job, TThreadDoneFn *const done, enum abyss_foreback const foregroundBackground, abyss_bool const useSigchld, const char **const errorP)
void ConnFree (TConn *const connectionP)
abyss_bool ConnKill (TConn *const connectionP)
abyss_bool ConnProcess (TConn *const connectionP)
abyss_bool ConnRead (TConn *const c, uint32_t const timems)
abyss_bool ConnReadHeader (TConn *const connectionP, char **const headerP)
void ConnReadInit (TConn *const connectionP)
TServerConnServer (TConn *const connectionP)
void ConnWaitAndRelease (TConn *const connectionP)
abyss_bool ConnWrite (TConn *const connectionP, const void *const buffer, uint32_t const size)
abyss_bool ConnWriteFromFile (TConn *const connectionP, TFile *const file, uint64_t const start, uint64_t const end, void *const buffer, uint32_t const buffersize, uint32_t const rate)


Define Documentation

#define BUFFER_SIZE   4096

Definition at line 8 of file abyss_conn.h.


Typedef Documentation

typedef struct _TConn TConn

Definition at line 45 of file abyss_conn.h.


Function Documentation

TConn* ConnAlloc ( void   ) 

void ConnCreate ( TConn **const   connectionPP,
TServer *const   serverP,
TSocket *const   connectedSocketP,
TThreadProc *const   job,
TThreadDoneFn *const   done,
enum abyss_foreback const   foregroundBackground,
abyss_bool const   useSigchld,
const char **const   errorP 
)

void ConnFree ( TConn *const   connectionP  ) 

abyss_bool ConnKill ( TConn *const   connectionP  ) 

Definition at line 211 of file abyss_conn.c.

References _TConn::finished, ThreadKill(), _TConn::threadP, and TRUE.

abyss_bool ConnProcess ( TConn *const   connectionP  ) 

Definition at line 171 of file abyss_conn.c.

References connDone(), _TConn::hasOwnThread, _TConn::job, _TConn::threadP, ThreadRun(), and TRUE.

abyss_bool ConnRead ( TConn *const   c,
uint32_t const   timems 
)

abyss_bool ConnReadHeader ( TConn *const   connectionP,
char **const   headerP 
)

void ConnReadInit ( TConn *const   connectionP  ) 

TServer* ConnServer ( TConn *const   connectionP  ) 

Definition at line 591 of file abyss_conn.c.

References _TConn::server.

Referenced by ResponseWriteStart(), and ServerDefaultHandlerFunc().

void ConnWaitAndRelease ( TConn *const   connectionP  ) 

Definition at line 201 of file abyss_conn.c.

References _TConn::hasOwnThread, _TConn::threadP, and ThreadWaitAndRelease().

Referenced by freeFinishedConns(), and serverRunConn().

abyss_bool ConnWrite ( TConn *const   connectionP,
const void *const   buffer,
uint32_t const   size 
)

Definition at line 359 of file abyss_conn.c.

References _TConn::outbytes, _TConn::socketP, SocketWrite(), and traceSocketWrite().

abyss_bool ConnWriteFromFile ( TConn *const   connectionP,
TFile *const   file,
uint64_t const   start,
uint64_t const   end,
void *const   buffer,
uint32_t const   buffersize,
uint32_t const   rate 
)

Definition at line 378 of file abyss_conn.c.

References ConnWrite(), FALSE, FileRead(), FileSeek(), MIN, and xmlrpc_millisecond_sleep().


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6