Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HttpClient Class Reference

#include <HttpClient.h>

Inheritance diagram for HttpClient:
NetClient

List of all members.

Public Member Functions

 HttpClient (const NetAddr &server_addr)
virtual ~HttpClient ()
int operator== (const HttpClient &c) const
HttpResponseDoRequest (HttpRequest &request)
- Public Member Functions inherited from NetClient
 NetClient (const NetAddr &server_addr)
virtual ~NetClient ()
int operator== (const NetClient &c) const
NetAddr GetServerAddr () const
bool Send (Text msg)
Text Recv ()
Text SendRecv (Text msg)
int GetLastError () const
DWORD GetTime () const

Static Public Member Functions

static const char * TYPENAME ()

Protected Member Functions

void CombineCookies (List< HttpParam > &dst, List< HttpParam > &src)

Protected Attributes

List< HttpParamcookies
- Protected Attributes inherited from NetClient
NetAddr addr
NetSocksock
DWORD delta
DWORD time
int err

Additional Inherited Members

- Public Types inherited from NetClient
enum  ERRS {
  ERR_INTR = 10004, ERR_BADF = 10009, ERR_ACCES = 10013, ERR_FAULT = 10014,
  ERR_INVAL = 10022, ERR_MFILE = 10024, ERR_WOULDBLOCK = 10035, ERR_INPROGRESS = 10036,
  ERR_ALREADY = 10037, ERR_NOTSOCK = 10038, ERR_DESTADDRREQ = 10039, ERR_MSGSIZE = 10040,
  ERR_PROTOTYPE = 10041, ERR_NOPROTOOPT = 10042, ERR_PROTONOSUPPORT = 10043, ERR_SOCKTNOSUPPORT = 10044,
  ERR_OPNOTSUPP = 10045, ERR_PFNOSUPPORT = 10046, ERR_AFNOSUPPORT = 10047, ERR_ADDRINUSE = 10048,
  ERR_ADDRNOTAVAIL = 10049, ERR_NETDOWN = 10050, ERR_NETUNREACH = 10051, ERR_NETRESET = 10052,
  ERR_CONNABORTED = 10053, ERR_CONNRESET = 10054, ERR_NOBUFS = 10055, ERR_ISCONN = 10056,
  ERR_NOTCONN = 10057, ERR_SHUTDOWN = 10058, ERR_TOOMANYREFS = 10059, ERR_TIMEDOUT = 10060,
  ERR_CONNREFUSED = 10061, ERR_LOOP = 10062, ERR_NAMETOOLONG = 10063, ERR_HOSTDOWN = 10064,
  ERR_HOSTUNREACH = 10065, ERR_NOTEMPTY = 10066, ERR_PROCLIM = 10067, ERR_USERS = 10068,
  ERR_DQUOT = 10069, ERR_STALE = 10070, ERR_REMOTE = 10071
}

Detailed Description

Definition at line 24 of file HttpClient.h.


Constructor & Destructor Documentation

HttpClient::HttpClient ( const NetAddr server_addr)

Definition at line 24 of file HttpClient.cpp.

HttpClient::~HttpClient ( )
virtual

Definition at line 29 of file HttpClient.cpp.


Member Function Documentation

void HttpClient::CombineCookies ( List< HttpParam > &  dst,
List< HttpParam > &  src 
)
protected

Definition at line 53 of file HttpClient.cpp.

HttpResponse * HttpClient::DoRequest ( HttpRequest request)

Definition at line 35 of file HttpClient.cpp.

int HttpClient::operator== ( const HttpClient c) const
inline

Definition at line 32 of file HttpClient.h.

static const char* HttpClient::TYPENAME ( )
inlinestatic

Reimplemented from NetClient.

Definition at line 27 of file HttpClient.h.


Member Data Documentation

List<HttpParam> HttpClient::cookies
protected

Definition at line 39 of file HttpClient.h.


The documentation for this class was generated from the following files: