![]() |
OpenZWave Library 1.6.1914
|
a Socket that speaks HTTP protocol. More...
#include <HttpClient.h>
Public Member Functions | |
HttpSocket () | |
virtual | ~HttpSocket () |
virtual bool | HasPendingTask () const |
void | SetKeepAlive (unsigned int secs) |
void | SetUserAgent (const std::string &s) |
void | SetAcceptEncoding (const std::string &s) |
void | SetFollowRedirect (bool follow) |
void | SetAlwaysHandle (bool h) |
void | SetDownloadFile (std::string filename) |
bool | Download (const std::string &url, const char *extraRequest=NULL, void *user=NULL, const POST *post=NULL) |
bool | SendRequest (Request &what, bool enqueue) |
bool | SendRequest (const std::string what, const char *extraRequest=NULL, void *user=NULL) |
bool | QueueRequest (const std::string what, const char *extraRequest=NULL, void *user=NULL) |
unsigned int | GetRemaining () const |
unsigned int | GetStatusCode () const |
unsigned int | GetContentLen () const |
bool | ChunkedTransfer () const |
bool | ExpectMoreData () const |
const Request & | GetCurrentRequest () const |
const char * | Hdr (const char *h) const |
bool | IsRedirecting () const |
bool | IsSuccess () const |
![]() | |
TcpSocket () | |
virtual | ~TcpSocket () |
virtual bool | HasPendingTask () const |
bool | open (const char *addr=NULL, unsigned int port=0) |
void | close () |
bool | update () |
bool | isOpen (void) |
void | SetBufsizeIn (unsigned int s) |
bool | SetNonBlocking (bool nonblock) |
unsigned int | GetBufSize () |
const char * | GetHost (void) |
bool | SendBytes (const void *buf, unsigned int len) |
bool | initSSL (const char *certs) |
bool | hasSSL () const |
void | shutdownSSL () |
SSLResult | verifySSL () |
Protected Member Functions | |
virtual void | _OnCloseInternal () |
virtual void | _OnClose () |
virtual void | _OnData () |
virtual void | _OnRecv (void *buf, unsigned int size) |
virtual void | _OnOpen () |
virtual bool | _OnUpdate () |
virtual void | _OnRequestDone () |
bool | _Redirect (std::string loc, bool forceGET) |
void | _ProcessChunk () |
bool | _EnqueueOrSend (const Request &req, bool forceQueue=false) |
void | _DequeueMore () |
bool | _OpenRequest (const Request &req) |
void | _ParseHeader () |
void | _ParseHeaderFields (const char *s, size_t size) |
bool | _HandleStatus () |
void | _FinishRequest () |
void | _OnRecvInternal (void *buf, unsigned int size) |
![]() | |
virtual void | _OnCloseInternal () |
virtual void | _OnData () |
virtual void | _OnRecv (void *buf, unsigned int size)=0 |
virtual void | _OnClose () |
virtual void | _OnOpen () |
virtual bool | _OnUpdate () |
void | _ShiftBuffer () |
Protected Attributes | |
std::string | _user_agent |
std::string | _accept_encoding |
std::string | _tmpHdr |
unsigned int | _keep_alive |
unsigned int | _remaining |
unsigned int | _contentLen |
unsigned int | _status |
std::queue< Request > | _requestQ |
std::map< std::string, std::string > | _hdrs |
Request | _curRequest |
bool | _inProgress |
bool | _chunkedTransfer |
bool | _mustClose |
bool | _followRedir |
bool | _alwaysHandle |
std::string | _filename |
FILE * | _pFile |
![]() | |
char * | _inbuf |
char * | _readptr |
char * | _writeptr |
unsigned int | _inbufSize |
unsigned int | _writeSize |
unsigned int | _recvSize |
unsigned int | _lastport |
bool | _nonblocking |
long | _s |
std::string | _host |
a Socket that speaks HTTP protocol.
Talk to a HTTP(s) server
OpenZWave::Internal::Platform::HttpSocket::HttpSocket | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
|
protectedvirtual |
Implements OpenZWave::Internal::Platform::TcpSocket.
|
protected |
|
inlineprotectedvirtual |
|
protectedvirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
bool OpenZWave::Internal::Platform::HttpSocket::Download | ( | const std::string & | url, |
const char * | extraRequest = NULL , |
||
void * | user = NULL , |
||
const POST * | post = NULL |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from OpenZWave::Internal::Platform::TcpSocket.
const char * OpenZWave::Internal::Platform::HttpSocket::Hdr | ( | const char * | h | ) | const |
bool OpenZWave::Internal::Platform::HttpSocket::IsRedirecting | ( | ) | const |
bool OpenZWave::Internal::Platform::HttpSocket::IsSuccess | ( | ) | const |
bool OpenZWave::Internal::Platform::HttpSocket::QueueRequest | ( | const std::string | what, |
const char * | extraRequest = NULL , |
||
void * | user = NULL |
||
) |
bool OpenZWave::Internal::Platform::HttpSocket::SendRequest | ( | const std::string | what, |
const char * | extraRequest = NULL , |
||
void * | user = NULL |
||
) |
bool OpenZWave::Internal::Platform::HttpSocket::SendRequest | ( | Request & | what, |
bool | enqueue | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |