ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
CSSSListener Class Reference

#include <Csocket.h>

+ Inheritance diagram for CSSSListener:
+ Collaboration diagram for CSSSListener:

Public Member Functions

 CSSSListener (uint16_t iPort, const CS_STRING &sBindHost="")
 
void SetDetach (bool b)
 
bool GetDetach () const
 
uint16_t GetPort () const
 
const CS_STRINGGetSockName () const
 
const CS_STRINGGetBindHost () const
 
bool GetIsSSL () const
 
int GetMaxConns () const
 
uint32_t GetTimeout () const
 
CSSockAddr::EAFRequire GetAFRequire () const
 
const CS_STRINGGetCipher () const
 
const CS_STRINGGetDHParamLocation () const
 
const CS_STRINGGetKeyLocation () const
 
const CS_STRINGGetPemLocation () const
 
const CS_STRINGGetPemPass () const
 
uint32_t GetRequireClientCertFlags () const
 
void SetPort (uint16_t iPort)
 sets the port to listen on. Set to 0 to listen on a random port More...
 
void SetSockName (const CS_STRING &sSockName)
 sets the sock name for later reference (ie FindSockByName) More...
 
void SetBindHost (const CS_STRING &sBindHost)
 sets the host to bind to More...
 
void SetIsSSL (bool b)
 set to true to enable SSL More...
 
void SetMaxConns (int i)
 set max connections as called by accept() More...
 
void SetTimeout (uint32_t i)
 sets the listen timeout. The listener class will close after timeout has been reached if not 0 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 SetKeyLocation (const CS_STRING &s)
 set the location of the keyfile More...
 
void SetDHParamLocation (const CS_STRING &s)
 set the location of the dhparamfile More...
 
void SetPemPass (const CS_STRING &s)
 set the pemfile pass More...
 
void SetRequiresClientCert (bool b)
 set to true if require a client certificate (deprecated More...
 
void SetRequireClientCertFlags (unsigned int iRequireCertFlags)
 bitwise flags, 0 means don't require cert, SSL_VERIFY_PEER verifies peers, SSL_VERIFY_FAIL_IF_NO_PEER_CERT will cause the connection to fail if no cert More...
 

Constructor & Destructor Documentation

CSSSListener::CSSSListener ( uint16_t  iPort,
const CS_STRING sBindHost = "" 
)
inline

Member Function Documentation

CSSockAddr::EAFRequire CSListener::GetAFRequire ( ) const
inlineinherited
const CS_STRING& CSListener::GetBindHost ( ) const
inlineinherited
const CS_STRING& CSListener::GetCipher ( ) const
inlineinherited
bool CSListener::GetDetach ( ) const
inlineinherited
const CS_STRING& CSListener::GetDHParamLocation ( ) const
inlineinherited
bool CSListener::GetIsSSL ( ) const
inlineinherited
const CS_STRING& CSListener::GetKeyLocation ( ) const
inlineinherited
int CSListener::GetMaxConns ( ) const
inlineinherited
const CS_STRING& CSListener::GetPemLocation ( ) const
inlineinherited
const CS_STRING& CSListener::GetPemPass ( ) const
inlineinherited
uint16_t CSListener::GetPort ( ) const
inlineinherited
uint32_t CSListener::GetRequireClientCertFlags ( ) const
inlineinherited
const CS_STRING& CSListener::GetSockName ( ) const
inlineinherited
uint32_t CSListener::GetTimeout ( ) const
inlineinherited
void CSListener::SetAFRequire ( CSSockAddr::EAFRequire  iAFRequire)
inlineinherited

sets the AF family type required

Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().

void CSListener::SetBindHost ( const CS_STRING sBindHost)
inlineinherited

sets the host to bind to

void CSListener::SetCipher ( const CS_STRING s)
inlineinherited

set the cipher strength to use, default is HIGH

void CSListener::SetDetach ( bool  b)
inlineinherited
void CSListener::SetDHParamLocation ( const CS_STRING s)
inlineinherited

set the location of the dhparamfile

void CSListener::SetIsSSL ( bool  b)
inlineinherited

set to true to enable SSL

Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().

void CSListener::SetKeyLocation ( const CS_STRING s)
inlineinherited

set the location of the keyfile

void CSListener::SetMaxConns ( int  i)
inlineinherited

set max connections as called by accept()

Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().

void CSListener::SetPemLocation ( const CS_STRING s)
inlineinherited

set the location of the pemfile

void CSListener::SetPemPass ( const CS_STRING s)
inlineinherited

set the pemfile pass

void CSListener::SetPort ( uint16_t  iPort)
inlineinherited

sets the port to listen on. Set to 0 to listen on a random port

void CSListener::SetRequireClientCertFlags ( unsigned int  iRequireCertFlags)
inlineinherited

bitwise flags, 0 means don't require cert, SSL_VERIFY_PEER verifies peers, SSL_VERIFY_FAIL_IF_NO_PEER_CERT will cause the connection to fail if no cert

void CSListener::SetRequiresClientCert ( bool  b)
inlineinherited

set to true if require a client certificate (deprecated

See Also
SetRequireClientCertFlags)
void CSListener::SetSockName ( const CS_STRING sSockName)
inlineinherited

sets the sock name for later reference (ie FindSockByName)

Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().

void CSListener::SetTimeout ( uint32_t  i)
inlineinherited

sets the listen timeout. The listener class will close after timeout has been reached if not 0

Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().


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