OpenZWave Library  1.6.848
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenZWave::Internal::Platform::TcpSocket Class Referenceabstract

a TCP Socket that can optionally be protected via SSLThis 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 More...

#include <HttpClient.h>

+ Inheritance diagram for OpenZWave::Internal::Platform::TcpSocket:
+ Collaboration diagram for OpenZWave::Internal::Platform::TcpSocket:

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TcpSocket()

OpenZWave::Internal::Platform::TcpSocket::TcpSocket ( )

◆ ~TcpSocket()

OpenZWave::Internal::Platform::TcpSocket::~TcpSocket ( )
virtual

Member Function Documentation

◆ _OnClose()

virtual void OpenZWave::Internal::Platform::TcpSocket::_OnClose ( )
inlineprotectedvirtual

◆ _OnCloseInternal()

void OpenZWave::Internal::Platform::TcpSocket::_OnCloseInternal ( )
protectedvirtual

◆ _OnData()

void OpenZWave::Internal::Platform::TcpSocket::_OnData ( )
protectedvirtual

◆ _OnOpen()

virtual void OpenZWave::Internal::Platform::TcpSocket::_OnOpen ( )
inlineprotectedvirtual

◆ _OnRecv()

virtual void OpenZWave::Internal::Platform::TcpSocket::_OnRecv ( void *  buf,
unsigned int  size 
)
protectedpure virtual

◆ _OnUpdate()

virtual bool OpenZWave::Internal::Platform::TcpSocket::_OnUpdate ( )
inlineprotectedvirtual

◆ _ShiftBuffer()

void OpenZWave::Internal::Platform::TcpSocket::_ShiftBuffer ( )
protected

◆ close()

void OpenZWave::Internal::Platform::TcpSocket::close ( )

◆ GetBufSize()

unsigned int OpenZWave::Internal::Platform::TcpSocket::GetBufSize ( )
inline

◆ GetHost()

const char* OpenZWave::Internal::Platform::TcpSocket::GetHost ( void  )
inline

◆ HasPendingTask()

virtual bool OpenZWave::Internal::Platform::TcpSocket::HasPendingTask ( ) const
inlinevirtual

◆ hasSSL()

bool OpenZWave::Internal::Platform::TcpSocket::hasSSL ( ) const
inline

◆ initSSL()

bool OpenZWave::Internal::Platform::TcpSocket::initSSL ( const char *  certs)

◆ isOpen()

bool OpenZWave::Internal::Platform::TcpSocket::isOpen ( void  )

◆ open()

bool OpenZWave::Internal::Platform::TcpSocket::open ( const char *  addr = NULL,
unsigned int  port = 0 
)

◆ SendBytes()

bool OpenZWave::Internal::Platform::TcpSocket::SendBytes ( const void *  buf,
unsigned int  len 
)

◆ SetBufsizeIn()

void OpenZWave::Internal::Platform::TcpSocket::SetBufsizeIn ( unsigned int  s)

◆ SetNonBlocking()

bool OpenZWave::Internal::Platform::TcpSocket::SetNonBlocking ( bool  nonblock)

◆ shutdownSSL()

void OpenZWave::Internal::Platform::TcpSocket::shutdownSSL ( )

◆ update()

bool OpenZWave::Internal::Platform::TcpSocket::update ( )

◆ verifySSL()

SSLResult OpenZWave::Internal::Platform::TcpSocket::verifySSL ( )

Member Data Documentation

◆ _host

std::string OpenZWave::Internal::Platform::TcpSocket::_host
protected

◆ _inbuf

char* OpenZWave::Internal::Platform::TcpSocket::_inbuf
protected

◆ _inbufSize

unsigned int OpenZWave::Internal::Platform::TcpSocket::_inbufSize
protected

◆ _lastport

unsigned int OpenZWave::Internal::Platform::TcpSocket::_lastport
protected

◆ _nonblocking

bool OpenZWave::Internal::Platform::TcpSocket::_nonblocking
protected

◆ _readptr

char* OpenZWave::Internal::Platform::TcpSocket::_readptr
protected

◆ _recvSize

unsigned int OpenZWave::Internal::Platform::TcpSocket::_recvSize
protected

◆ _s

long OpenZWave::Internal::Platform::TcpSocket::_s
protected

◆ _writeptr

char* OpenZWave::Internal::Platform::TcpSocket::_writeptr
protected

◆ _writeSize

unsigned int OpenZWave::Internal::Platform::TcpSocket::_writeSize
protected

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