ZNC  trunk
Public Types | Public Member Functions | List of all members
CSSockAddr Class Reference

sockaddr wrapper. More...

#include <Csocket.h>

Public Types

enum  EAFRequire { RAF_ANY = PF_UNSPEC , RAF_INET6 = AF_INET6 , RAF_INET = AF_INET }
 

Public Member Functions

 CSSockAddr ()
 
virtual ~CSSockAddr ()
 
void SinFamily ()
 
void SinPort (uint16_t iPort)
 
void SetIPv6 (bool b)
 
bool GetIPv6 () const
 
socklen_t GetSockAddrLen ()
 
sockaddr_in * GetSockAddr ()
 
in_addr * GetAddr ()
 
socklen_t GetSockAddrLen6 ()
 
sockaddr_in6 * GetSockAddr6 ()
 
in6_addr * GetAddr6 ()
 
void SetAFRequire (EAFRequire iWhich)
 
EAFRequire GetAFRequire () const
 

Detailed Description

sockaddr wrapper.

Member Enumeration Documentation

◆ EAFRequire

Enumerator
RAF_ANY 
RAF_INET6 
RAF_INET 

Constructor & Destructor Documentation

◆ CSSockAddr()

CSSockAddr::CSSockAddr ( )
inline

◆ ~CSSockAddr()

virtual CSSockAddr::~CSSockAddr ( )
inlinevirtual

Member Function Documentation

◆ GetAddr()

in_addr* CSSockAddr::GetAddr ( )
inline

◆ GetAddr6()

in6_addr* CSSockAddr::GetAddr6 ( )
inline

◆ GetAFRequire()

EAFRequire CSSockAddr::GetAFRequire ( ) const
inline

◆ GetIPv6()

bool CSSockAddr::GetIPv6 ( ) const
inline

◆ GetSockAddr()

sockaddr_in* CSSockAddr::GetSockAddr ( )
inline

◆ GetSockAddr6()

sockaddr_in6* CSSockAddr::GetSockAddr6 ( )
inline

◆ GetSockAddrLen()

socklen_t CSSockAddr::GetSockAddrLen ( )
inline

◆ GetSockAddrLen6()

socklen_t CSSockAddr::GetSockAddrLen6 ( )
inline

◆ SetAFRequire()

void CSSockAddr::SetAFRequire ( EAFRequire  iWhich)
inline

◆ SetIPv6()

void CSSockAddr::SetIPv6 ( bool  b)

◆ SinFamily()

void CSSockAddr::SinFamily ( )

◆ SinPort()

void CSSockAddr::SinPort ( uint16_t  iPort)

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