The qDecoder Project

_Q_HTTPCLIENT Struct Reference

Structure for http client. More...


Data Fields

int socket
sockaddr_in addr
char * hostname
int port
int timeoutms
bool keepalive
char * useragent
void(* setTimeout )(Q_HTTPCLIENT *client, int timeoutms)
void(* setKeepalive )(Q_HTTPCLIENT *client, bool keepalive)
void(* setUseragent )(Q_HTTPCLIENT *client, const char *useragent)
bool(* open )(Q_HTTPCLIENT *client)
bool(* sendRequest )(Q_HTTPCLIENT *client, const char *method, const char *uri, Q_ENTRY *reqheaders)
int(* readResponse )(Q_HTTPCLIENT *client, Q_ENTRY *resheaders)
bool(* get )(Q_HTTPCLIENT *client, const char *uri, int fd, off_t *savesize, int *rescode, Q_ENTRY *reqheaders, Q_ENTRY *resheaders, bool(*callback)(void *userdata, off_t recvbytes), void *userdata)
bool(* put )(Q_HTTPCLIENT *client, const char *uri, int fd, off_t length, int *retcode, Q_ENTRY *userheaders, Q_ENTRY *resheaders, bool(*callback)(void *userdata, off_t sentbytes), void *userdata)
void *(* cmd )(Q_HTTPCLIENT *client, const char *method, const char *uri, int *rescode, size_t *contentslength, Q_ENTRY *reqheaders, Q_ENTRY *resheaders)
bool(* close )(Q_HTTPCLIENT *client)
void(* free )(Q_HTTPCLIENT *client)


Detailed Description

Structure for http client.


Field Documentation

int _Q_HTTPCLIENT::socket

socket descriptor


The documentation for this struct was generated from the following file:

Copyright (c) 2000-2010 The qDecoder Project