ZNC  trunk
Public Member Functions | Protected Attributes | List of all members
CSSSLConnection Class Reference

#include <Csocket.h>

+ Inheritance diagram for CSSSLConnection:
+ Collaboration diagram for CSSSLConnection:

Public Member Functions

 CSSSLConnection (const CS_STRING &sHostname, uint16_t iPort, int iTimeout=60)
 
const CS_STRINGGetHostname () const
 
const CS_STRINGGetSockName () const
 
const CS_STRINGGetBindHost () const
 
uint16_t GetPort () const
 
int GetTimeout () const
 
bool GetIsSSL () const
 
CSSockAddr::EAFRequire GetAFRequire () const
 
const CS_STRINGGetCipher () const
 
const CS_STRINGGetPemLocation () const
 
const CS_STRINGGetKeyLocation () const
 
const CS_STRINGGetDHParamLocation () const
 
const CS_STRINGGetPemPass () const
 
void SetHostname (const CS_STRING &s)
 sets the hostname to connect to More...
 
void SetSockName (const CS_STRING &s)
 sets the name of the socket, used for reference, ie in FindSockByName() More...
 
void SetBindHost (const CS_STRING &s)
 sets the hostname to bind to (vhost support) More...
 
void SetPort (uint16_t i)
 sets the port to connect to More...
 
void SetTimeout (int i)
 sets the connection timeout More...
 
void SetIsSSL (bool b)
 set to true to enable SSL More...
 
void SetAFRequire (CSSockAddr::EAFRequire iAFRequire)
 sets the AF family type required More...
 
void SetCipher (const CS_STRING &s)
 set the cipher strength to use, default is HIGH More...
 
void SetPemLocation (const CS_STRING &s)
 set the location of the pemfile More...
 
void SetPemPass (const CS_STRING &s)
 set the pemfile pass More...
 

Protected Attributes

CS_STRING m_sHostname
 
CS_STRING m_sSockName
 
CS_STRING m_sBindHost
 
uint16_t m_iPort
 
int m_iTimeout
 
bool m_bIsSSL
 
CSSockAddr::EAFRequire m_iAFrequire
 
CS_STRING m_sDHParamLocation
 
CS_STRING m_sKeyLocation
 
CS_STRING m_sPemLocation
 
CS_STRING m_sPemPass
 
CS_STRING m_sCipher
 

Constructor & Destructor Documentation

◆ CSSSLConnection()

CSSSLConnection::CSSSLConnection ( const CS_STRING sHostname,
uint16_t  iPort,
int  iTimeout = 60 
)
inline

Member Function Documentation

◆ GetAFRequire()

CSSockAddr::EAFRequire CSConnection::GetAFRequire ( ) const
inlineinherited

◆ GetBindHost()

const CS_STRING& CSConnection::GetBindHost ( ) const
inlineinherited

◆ GetCipher()

const CS_STRING& CSConnection::GetCipher ( ) const
inlineinherited

◆ GetDHParamLocation()

const CS_STRING& CSConnection::GetDHParamLocation ( ) const
inlineinherited

◆ GetHostname()

const CS_STRING& CSConnection::GetHostname ( ) const
inlineinherited

◆ GetIsSSL()

bool CSConnection::GetIsSSL ( ) const
inlineinherited

◆ GetKeyLocation()

const CS_STRING& CSConnection::GetKeyLocation ( ) const
inlineinherited

◆ GetPemLocation()

const CS_STRING& CSConnection::GetPemLocation ( ) const
inlineinherited

◆ GetPemPass()

const CS_STRING& CSConnection::GetPemPass ( ) const
inlineinherited

◆ GetPort()

uint16_t CSConnection::GetPort ( ) const
inlineinherited

◆ GetSockName()

const CS_STRING& CSConnection::GetSockName ( ) const
inlineinherited

◆ GetTimeout()

int CSConnection::GetTimeout ( ) const
inlineinherited

◆ SetAFRequire()

void CSConnection::SetAFRequire ( CSSockAddr::EAFRequire  iAFRequire)
inlineinherited

sets the AF family type required

◆ SetBindHost()

void CSConnection::SetBindHost ( const CS_STRING s)
inlineinherited

sets the hostname to bind to (vhost support)

◆ SetCipher()

void CSConnection::SetCipher ( const CS_STRING s)
inlineinherited

set the cipher strength to use, default is HIGH

◆ SetHostname()

void CSConnection::SetHostname ( const CS_STRING s)
inlineinherited

sets the hostname to connect to

◆ SetIsSSL()

void CSConnection::SetIsSSL ( bool  b)
inlineinherited

set to true to enable SSL

◆ SetPemLocation()

void CSConnection::SetPemLocation ( const CS_STRING s)
inlineinherited

set the location of the pemfile

◆ SetPemPass()

void CSConnection::SetPemPass ( const CS_STRING s)
inlineinherited

set the pemfile pass

◆ SetPort()

void CSConnection::SetPort ( uint16_t  i)
inlineinherited

sets the port to connect to

◆ SetSockName()

void CSConnection::SetSockName ( const CS_STRING s)
inlineinherited

sets the name of the socket, used for reference, ie in FindSockByName()

◆ SetTimeout()

void CSConnection::SetTimeout ( int  i)
inlineinherited

sets the connection timeout

Member Data Documentation

◆ m_bIsSSL

bool CSConnection::m_bIsSSL
protectedinherited

◆ m_iAFrequire

CSSockAddr::EAFRequire CSConnection::m_iAFrequire
protectedinherited

◆ m_iPort

uint16_t CSConnection::m_iPort
protectedinherited

◆ m_iTimeout

int CSConnection::m_iTimeout
protectedinherited

◆ m_sBindHost

CS_STRING CSConnection::m_sBindHost
protectedinherited

◆ m_sCipher

CS_STRING CSConnection::m_sCipher
protectedinherited

◆ m_sDHParamLocation

CS_STRING CSConnection::m_sDHParamLocation
protectedinherited

◆ m_sHostname

CS_STRING CSConnection::m_sHostname
protectedinherited

◆ m_sKeyLocation

CS_STRING CSConnection::m_sKeyLocation
protectedinherited

◆ m_sPemLocation

CS_STRING CSConnection::m_sPemLocation
protectedinherited

◆ m_sPemPass

CS_STRING CSConnection::m_sPemPass
protectedinherited

◆ m_sSockName

CS_STRING CSConnection::m_sSockName
protectedinherited

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