Logo Search packages:      
Sourcecode: znc version File versions

CSConnection Class Reference

#include <Csocket.h>

Inherited by CSSSLConnection.

List of all members.

Detailed Description

options for creating a connection

Definition at line 996 of file Csocket.h.

Public Member Functions

 CSConnection (const CS_STRING &sHostname, u_short iPort, int iTimeout=60)
CSSockAddr::EAFRequire GetAFRequire () const
const CS_STRING & GetBindHost () const
const CS_STRING & GetHostname () const
bool GetIsSSL () const
u_short GetPort () const
const CS_STRING & GetSockName () const
int GetTimeout () const
void SetAFRequire (CSSockAddr::EAFRequire iAFRequire)
 sets the AF family type required
void SetBindHost (const CS_STRING &s)
 sets the hostname to bind to (vhost support)
void SetHostname (const CS_STRING &s)
 sets the hostname to connect to
void SetIsSSL (bool b)
 set to true to enable SSL
void SetPort (u_short i)
 sets the port to connect to
void SetSockName (const CS_STRING &s)
 sets the name of the socket, used for reference, ie in FindSockByName()
void SetTimeout (int i)
 sets the connection timeout

Protected Attributes

bool m_bIsSSL
CSSockAddr::EAFRequire m_iAFrequire
u_short m_iPort
int m_iTimeout
CS_STRING m_sBindHost
CS_STRING m_sHostname
CS_STRING m_sSockName

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

Generated by  Doxygen 1.6.0   Back to index