ZNC
trunk
|
options for creating a connection More...
#include <Csocket.h>
Public Member Functions | |
CSConnection (const CS_STRING &sHostname, uint16_t iPort, int iTimeout=60) | |
virtual | ~CSConnection () |
const CS_STRING & | GetHostname () const |
const CS_STRING & | GetSockName () const |
const CS_STRING & | GetBindHost () const |
uint16_t | GetPort () const |
int | GetTimeout () const |
bool | GetIsSSL () const |
CSSockAddr::EAFRequire | GetAFRequire () const |
const CS_STRING & | GetCipher () const |
const CS_STRING & | GetPemLocation () const |
const CS_STRING & | GetKeyLocation () const |
const CS_STRING & | GetDHParamLocation () const |
const CS_STRING & | GetPemPass () 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 |
options for creating a connection
|
inline |
sHostname | hostname to connect to |
iPort | port to connect to |
iTimeout | connection timeout |
References CSSockAddr::RAF_ANY.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
sets the AF family type required
|
inline |
sets the hostname to bind to (vhost support)
|
inline |
set the cipher strength to use, default is HIGH
|
inline |
sets the hostname to connect to
|
inline |
set to true to enable SSL
|
inline |
set the location of the pemfile
|
inline |
set the pemfile pass
|
inline |
sets the port to connect to
|
inline |
sets the name of the socket, used for reference, ie in FindSockByName()
|
inline |
sets the connection timeout
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |