ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Enumerator
RAF_ANY 
RAF_INET6 
RAF_INET 

Constructor & Destructor Documentation

CSSockAddr::CSSockAddr ( )
inline
virtual CSSockAddr::~CSSockAddr ( )
inlinevirtual

Member Function Documentation

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

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