OpenZWave Library  1.6.1914
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

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

Member Function Documentation

virtual void OpenZWave::Internal::Platform::TcpSocket::_OnClose ( )
inlineprotectedvirtual
void OpenZWave::Internal::Platform::TcpSocket::_OnCloseInternal ( )
protectedvirtual
void OpenZWave::Internal::Platform::TcpSocket::_OnData ( )
protectedvirtual
virtual void OpenZWave::Internal::Platform::TcpSocket::_OnOpen ( )
inlineprotectedvirtual
virtual void OpenZWave::Internal::Platform::TcpSocket::_OnRecv ( void *  buf,
unsigned int  size 
)
protectedpure virtual
virtual bool OpenZWave::Internal::Platform::TcpSocket::_OnUpdate ( )
inlineprotectedvirtual
void OpenZWave::Internal::Platform::TcpSocket::_ShiftBuffer ( )
protected
void OpenZWave::Internal::Platform::TcpSocket::close ( )
unsigned int OpenZWave::Internal::Platform::TcpSocket::GetBufSize ( )
inline
const char* OpenZWave::Internal::Platform::TcpSocket::GetHost ( void  )
inline
virtual bool OpenZWave::Internal::Platform::TcpSocket::HasPendingTask ( ) const
inlinevirtual
bool OpenZWave::Internal::Platform::TcpSocket::hasSSL ( ) const
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 ( )

Member Data Documentation

std::string OpenZWave::Internal::Platform::TcpSocket::_host
protected
char* OpenZWave::Internal::Platform::TcpSocket::_inbuf
protected
unsigned int OpenZWave::Internal::Platform::TcpSocket::_inbufSize
protected
unsigned int OpenZWave::Internal::Platform::TcpSocket::_lastport
protected
bool OpenZWave::Internal::Platform::TcpSocket::_nonblocking
protected
char* OpenZWave::Internal::Platform::TcpSocket::_readptr
protected
unsigned int OpenZWave::Internal::Platform::TcpSocket::_recvSize
protected
long OpenZWave::Internal::Platform::TcpSocket::_s
protected
char* OpenZWave::Internal::Platform::TcpSocket::_writeptr
protected
unsigned int OpenZWave::Internal::Platform::TcpSocket::_writeSize
protected

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