Logo Search packages:      
Sourcecode: znc version File versions

CSListener Class Reference

#include <Csocket.h>

List of all members.

Detailed Description

options container to create a listener

Definition at line 1081 of file Csocket.h.

Public Member Functions

 CSListener (u_short iPort, const CS_STRING &sBindHost="")
CSSockAddr::EAFRequire GetAFRequire () const
const CS_STRING & GetBindHost () const
bool GetIsSSL () const
int GetMaxConns () const
const u_short GetPort () const
const CS_STRING & GetSockName () const
u_int GetTimeout () const
void SetAFRequire (CSSockAddr::EAFRequire iAFRequire)
 sets the AF family type required
void SetBindHost (const CS_STRING &sBindHost)
 sets the host to bind to
void SetIsSSL (bool b)
 set to true to enable SSL
void SetMaxConns (int i)
 set max connections as called by accept()
void SetPort (u_short iPort)
 sets the port to listen on. Set to 0 to listen on a random port
void SetSockName (const CS_STRING &sSockName)
 sets the sock name for later reference (ie FindSockByName)
void SetTimeout (u_int i)
 sets the listen timeout. The listener class will close after timeout has been reached if not 0

Private Attributes

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

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

Generated by  Doxygen 1.6.0   Back to index