|
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 | |
| void | SetSockName (const CS_STRING &s) |
| sets the name of the socket, used for reference, ie in FindSockByName() | |
| void | SetBindHost (const CS_STRING &s) |
| sets the hostname to bind to (vhost support) | |
| void | SetPort (uint16_t i) |
| sets the port to connect to | |
| void | SetTimeout (int i) |
| sets the connection timeout | |
| void | SetIsSSL (bool b) |
| set to true to enable SSL | |
| void | SetAFRequire (CSSockAddr::EAFRequire iAFRequire) |
| sets the AF family type required | |
| void | SetCipher (const CS_STRING &s) |
| set the cipher strength to use, default is HIGH | |
| void | SetPemLocation (const CS_STRING &s) |
| set the location of the pemfile | |
| void | SetPemPass (const CS_STRING &s) |
| set the pemfile pass | |
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 CS_STRING, m_bIsSSL, m_iAFrequire, m_iPort, m_iTimeout, m_sCipher, m_sHostname, and CSSockAddr::RAF_ANY.
Referenced by CSSSLConnection::CSSSLConnection().
|
inlinevirtual |
|
inline |
References m_iAFrequire.
|
inline |
References CS_STRING, and m_sBindHost.
|
inline |
References CS_STRING, and m_sDHParamLocation.
|
inline |
References CS_STRING, and m_sHostname.
|
inline |
References m_bIsSSL.
|
inline |
References CS_STRING, and m_sKeyLocation.
|
inline |
References CS_STRING, and m_sPemLocation.
|
inline |
References CS_STRING, and m_sPemPass.
|
inline |
References m_iPort.
|
inline |
References CS_STRING, and m_sSockName.
|
inline |
References m_iTimeout.
|
inline |
sets the AF family type required
References m_iAFrequire.
|
inline |
sets the hostname to bind to (vhost support)
References CS_STRING, and m_sBindHost.
|
inline |
|
inline |
sets the hostname to connect to
References CS_STRING, and m_sHostname.
|
inline |
|
inline |
set the location of the pemfile
References CS_STRING, and m_sPemLocation.
|
inline |
set the pemfile pass
References CS_STRING, and m_sPemPass.
|
inline |
sets the port to connect to
References m_iPort.
|
inline |
sets the name of the socket, used for reference, ie in FindSockByName()
References CS_STRING, and m_sSockName.
|
inline |
sets the connection timeout
References m_iTimeout.
|
protected |
Referenced by CSConnection(), GetIsSSL(), and SetIsSSL().
|
protected |
Referenced by CSConnection(), GetAFRequire(), and SetAFRequire().
|
protected |
Referenced by CSConnection(), GetPort(), and SetPort().
|
protected |
Referenced by CSConnection(), GetTimeout(), and SetTimeout().
|
protected |
Referenced by GetBindHost(), and SetBindHost().
|
protected |
Referenced by CSConnection(), GetCipher(), and SetCipher().
|
protected |
Referenced by GetDHParamLocation().
|
protected |
Referenced by CSConnection(), GetHostname(), and SetHostname().
|
protected |
Referenced by GetKeyLocation().
|
protected |
Referenced by GetPemLocation(), and SetPemLocation().
|
protected |
Referenced by GetPemPass(), and SetPemPass().
|
protected |
Referenced by GetSockName(), and SetSockName().