![]() |
OpenZWave Library
1.6.1914
|
a TCP Socket that can optionally be protected via SSL More...
#include <HttpClient.h>
Public Member Functions | |
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 | _OnData () |
virtual void | _OnRecv (void *buf, unsigned int size)=0 |
virtual void | _OnClose () |
virtual void | _OnOpen () |
virtual bool | _OnUpdate () |
void | _ShiftBuffer () |
Protected Attributes | |
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 TCP Socket that can optionally be protected via SSL
This represents a TCP Socket that can be encrypted via SSL and is used to connect to a TCP Server (in this case, a HTTP(s) Server
OpenZWave::Internal::Platform::TcpSocket::TcpSocket | ( | ) |
|
virtual |
|
inlineprotectedvirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
protectedvirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
protectedvirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
inlineprotectedvirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
protectedpure virtual |
Implemented in OpenZWave::Internal::Platform::HttpSocket.
|
inlineprotectedvirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
protected |
void OpenZWave::Internal::Platform::TcpSocket::close | ( | ) |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in OpenZWave::Internal::Platform::HttpSocket.
|
inline |
bool OpenZWave::Internal::Platform::TcpSocket::initSSL | ( | const char * | certs | ) |
bool OpenZWave::Internal::Platform::TcpSocket::isOpen | ( | void | ) |
bool OpenZWave::Internal::Platform::TcpSocket::open | ( | const char * | addr = NULL , |
unsigned int | port = 0 |
||
) |
bool OpenZWave::Internal::Platform::TcpSocket::SendBytes | ( | const void * | buf, |
unsigned int | len | ||
) |
void OpenZWave::Internal::Platform::TcpSocket::SetBufsizeIn | ( | unsigned int | s | ) |
bool OpenZWave::Internal::Platform::TcpSocket::SetNonBlocking | ( | bool | nonblock | ) |
void OpenZWave::Internal::Platform::TcpSocket::shutdownSSL | ( | ) |
bool OpenZWave::Internal::Platform::TcpSocket::update | ( | ) |
SSLResult OpenZWave::Internal::Platform::TcpSocket::verifySSL | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |