chttp_packet.c File Reference

#include <cybergarage/http/chttp.h>
#include <cybergarage/util/clog.h>
#include <cybergarage/net/cinterface.h>
#include <limits.h>

Defines

#define READBUF_LENGTH   1024

Functions

CgHttpPacketcg_http_packet_new ()
void cg_http_packet_delete (CgHttpPacket *httpPkt)
void cg_http_packet_init (CgHttpPacket *httpPkt)
void cg_http_packet_clean (CgHttpPacket *httpPkt)
void cg_http_packet_clear (CgHttpPacket *httpPkt)
void cg_http_packet_setheadervalue (CgHttpPacket *httpPkt, char *name, char *value)
void cg_http_packet_setheaderinteger (CgHttpPacket *httpPkt, char *name, int value)
void cg_http_packet_setheaderlong (CgHttpPacket *httpPkt, char *name, long value)
void cg_http_packet_setheaderlonglong (CgHttpPacket *httpPkt, char *name, long long value)
char * cg_http_packet_getheadervalue (CgHttpPacket *httpPkt, char *name)
int cg_http_packet_getheaderinteger (CgHttpPacket *httpPkt, char *name)
long cg_http_packet_getheaderlong (CgHttpPacket *httpPkt, char *name)
void cg_http_packet_sethost (CgHttpPacket *httpPkt, char *addr, int port)
void cg_http_packet_post (CgHttpPacket *httpPkt, CgSocket *sock)
void cg_http_packet_read_headers (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize)
long cg_http_packet_read_chunk (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize)
BOOL cg_http_packet_read_body (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize)
BOOL cg_http_packet_read (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize)
int cg_http_packet_getheadersize (CgHttpPacket *httpPkt)
void cg_http_packet_copy (CgHttpPacket *destHttpPkt, CgHttpPacket *srcHttpPkt)
void cg_http_packet_print (CgHttpPacket *httpPkt)

Define Documentation

#define READBUF_LENGTH   1024
 


Function Documentation

void cg_http_packet_clean CgHttpPacket httpPkt  ) 
 

void cg_http_packet_clear CgHttpPacket httpPkt  ) 
 

void cg_http_packet_copy CgHttpPacket destHttpPkt,
CgHttpPacket srcHttpPkt
 

void cg_http_packet_delete CgHttpPacket httpPkt  ) 
 

int cg_http_packet_getheaderinteger CgHttpPacket httpPkt,
char *  name
 

long cg_http_packet_getheaderlong CgHttpPacket httpPkt,
char *  name
 

int cg_http_packet_getheadersize CgHttpPacket httpPkt  ) 
 

char* cg_http_packet_getheadervalue CgHttpPacket httpPkt,
char *  name
 

void cg_http_packet_init CgHttpPacket httpPkt  ) 
 

CgHttpPacket* cg_http_packet_new  ) 
 

void cg_http_packet_post CgHttpPacket httpPkt,
CgSocket sock
 

void cg_http_packet_print CgHttpPacket httpPkt  ) 
 

BOOL cg_http_packet_read CgHttpPacket httpPkt,
CgSocket sock,
char *  lineBuf,
int  lineBufSize
 

BOOL cg_http_packet_read_body CgHttpPacket httpPkt,
CgSocket sock,
char *  lineBuf,
int  lineBufSize
 

long cg_http_packet_read_chunk CgHttpPacket httpPkt,
CgSocket sock,
char *  lineBuf,
int  lineBufSize
 

void cg_http_packet_read_headers CgHttpPacket httpPkt,
CgSocket sock,
char *  lineBuf,
int  lineBufSize
 

void cg_http_packet_setheaderinteger CgHttpPacket httpPkt,
char *  name,
int  value
 

void cg_http_packet_setheaderlong CgHttpPacket httpPkt,
char *  name,
long  value
 

void cg_http_packet_setheaderlonglong CgHttpPacket httpPkt,
char *  name,
long long  value
 

void cg_http_packet_setheadervalue CgHttpPacket httpPkt,
char *  name,
char *  value
 

void cg_http_packet_sethost CgHttpPacket httpPkt,
char *  addr,
int  port
 


Generated on Thu Jun 29 13:33:28 2006 for CyberLinkC by  doxygen 1.4.6