ZNC
trunk
|
options container to create a listener More...
#include <Csocket.h>
Public Member Functions | |
CSListener (uint16_t iPort, const CS_STRING &sBindHost="", bool bDetach=false) | |
virtual | ~CSListener () |
void | SetDetach (bool b) |
bool | GetDetach () const |
uint16_t | GetPort () const |
const CS_STRING & | GetSockName () const |
const CS_STRING & | GetBindHost () const |
bool | GetIsSSL () const |
int | GetMaxConns () const |
uint32_t | GetTimeout () const |
CSSockAddr::EAFRequire | GetAFRequire () const |
const CS_STRING & | GetCipher () const |
const CS_STRING & | GetDHParamLocation () const |
const CS_STRING & | GetKeyLocation () const |
const CS_STRING & | GetPemLocation () const |
const CS_STRING & | GetPemPass () 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... | |
options container to create a listener
|
inline |
iPort | port to listen on. Set to 0 to listen on a random port |
sBindHost | host to bind to |
bDetach | don't block while waiting for the port to come up, instead detach and return immediately |
References CSSockAddr::RAF_ANY.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
sets the AF family type required
Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().
|
inline |
sets the host to bind to
|
inline |
set the cipher strength to use, default is HIGH
|
inline |
|
inline |
set the location of the dhparamfile
|
inline |
set to true to enable SSL
Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().
|
inline |
set the location of the keyfile
|
inline |
set max connections as called by accept()
Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().
|
inline |
set the location of the pemfile
|
inline |
set the pemfile pass
|
inline |
sets the port to listen on. Set to 0 to listen on a random port
|
inline |
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
|
inline |
set to true if require a client certificate (deprecated
|
inline |
sets the sock name for later reference (ie FindSockByName)
Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().
|
inline |
sets the listen timeout. The listener class will close after timeout has been reached if not 0
Referenced by CSockManager::ListenHost(), and CSockManager::ListenRand().