ZNC  trunk
Public Types | Public Member Functions | Protected Attributes | List of all members
CListener Class Reference

#include <Listener.h>

+ Collaboration diagram for CListener:

Public Types

enum  EAcceptType { ACCEPT_IRC , ACCEPT_HTTP , ACCEPT_ALL }
 

Public Member Functions

 CListener (unsigned short uPort, const CString &sBindHost, const CString &sURIPrefix, bool bSSL, EAddrType eAddr, EAcceptType eAccept)
 
 ~CListener ()
 
 CListener (const CListener &)=delete
 
CListeneroperator= (const CListener &)=delete
 
bool IsSSL () const
 
EAddrType GetAddrType () const
 
unsigned short GetPort () const
 
const CStringGetBindHost () const
 
CRealListenerGetRealListener () const
 
const CStringGetURIPrefix () const
 
EAcceptType GetAcceptType () const
 
void SetAcceptType (EAcceptType eType)
 
bool Listen ()
 
void ResetRealListener ()
 

Protected Attributes

bool m_bSSL
 
EAddrType m_eAddr
 
unsigned short m_uPort
 
CString m_sBindHost
 
CString m_sURIPrefix
 
CRealListenerm_pListener
 
EAcceptType m_eAcceptType
 

Member Enumeration Documentation

◆ EAcceptType

Enumerator
ACCEPT_IRC 
ACCEPT_HTTP 
ACCEPT_ALL 

Constructor & Destructor Documentation

◆ CListener() [1/2]

CListener::CListener ( unsigned short  uPort,
const CString sBindHost,
const CString sURIPrefix,
bool  bSSL,
EAddrType  eAddr,
EAcceptType  eAccept 
)
inline

◆ ~CListener()

CListener::~CListener ( )

◆ CListener() [2/2]

CListener::CListener ( const CListener )
delete

Member Function Documentation

◆ GetAcceptType()

EAcceptType CListener::GetAcceptType ( ) const
inline

References m_eAcceptType.

◆ GetAddrType()

EAddrType CListener::GetAddrType ( ) const
inline

References m_eAddr.

◆ GetBindHost()

const CString& CListener::GetBindHost ( ) const
inline

References m_sBindHost.

◆ GetPort()

unsigned short CListener::GetPort ( ) const
inline

References m_uPort.

◆ GetRealListener()

CRealListener* CListener::GetRealListener ( ) const
inline

References m_pListener.

◆ GetURIPrefix()

const CString& CListener::GetURIPrefix ( ) const
inline

References m_sURIPrefix.

◆ IsSSL()

bool CListener::IsSSL ( ) const
inline

References m_bSSL.

◆ Listen()

bool CListener::Listen ( )

◆ operator=()

CListener& CListener::operator= ( const CListener )
delete

◆ ResetRealListener()

void CListener::ResetRealListener ( )

◆ SetAcceptType()

void CListener::SetAcceptType ( EAcceptType  eType)
inline

References m_eAcceptType.

Member Data Documentation

◆ m_bSSL

bool CListener::m_bSSL
protected

Referenced by IsSSL().

◆ m_eAcceptType

EAcceptType CListener::m_eAcceptType
protected

Referenced by GetAcceptType(), and SetAcceptType().

◆ m_eAddr

EAddrType CListener::m_eAddr
protected

Referenced by GetAddrType().

◆ m_pListener

CRealListener* CListener::m_pListener
protected

Referenced by GetRealListener().

◆ m_sBindHost

CString CListener::m_sBindHost
protected

Referenced by GetBindHost().

◆ m_sURIPrefix

CString CListener::m_sURIPrefix
protected

Referenced by GetURIPrefix().

◆ m_uPort

unsigned short CListener::m_uPort
protected

Referenced by GetPort().


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