![]() |
OpenZWave Library 1.6.0
|
a Socket that speaks HTTP protocol. More...
#include <HttpClient.h>
Inheritance diagram for OpenZWave::SimpleHTTPClient::HttpSocket: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 |
Public Member Functions inherited from OpenZWave::SimpleHTTPClient::TcpSocket | |
| TcpSocket () | |
| virtual | ~TcpSocket () |
| 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) |
Protected Member Functions inherited from OpenZWave::SimpleHTTPClient::TcpSocket | |
| 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 |
Protected Attributes inherited from OpenZWave::SimpleHTTPClient::TcpSocket | |
| 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::SimpleHTTPClient::HttpSocket::HttpSocket | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented from OpenZWave::SimpleHTTPClient::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::SimpleHTTPClient::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::SimpleHTTPClient::TcpSocket.
|
protectedvirtual |
Reimplemented from OpenZWave::SimpleHTTPClient::TcpSocket.
|
protectedvirtual |
Implements OpenZWave::SimpleHTTPClient::TcpSocket.
|
protected |
|
inlineprotectedvirtual |
|
protectedvirtual |
Reimplemented from OpenZWave::SimpleHTTPClient::TcpSocket.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
| bool OpenZWave::SimpleHTTPClient::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::SimpleHTTPClient::TcpSocket.
| const char * OpenZWave::SimpleHTTPClient::HttpSocket::Hdr | ( | const char * | h | ) | const |
| bool OpenZWave::SimpleHTTPClient::HttpSocket::IsRedirecting | ( | ) | const |
| bool OpenZWave::SimpleHTTPClient::HttpSocket::IsSuccess | ( | ) | const |
| bool OpenZWave::SimpleHTTPClient::HttpSocket::QueueRequest | ( | const std::string | what, |
| const char * | extraRequest = NULL, | ||
| void * | user = NULL ) |
| bool OpenZWave::SimpleHTTPClient::HttpSocket::SendRequest | ( | const std::string | what, |
| const char * | extraRequest = NULL, | ||
| void * | user = NULL ) |
| bool OpenZWave::SimpleHTTPClient::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 |