xgboost
Public Member Functions | List of all members
xgboost::collective::SockAddress Class Reference

Address for TCP socket, can be either IPv4 or IPv6. More...

#include <socket.h>

Collaboration diagram for xgboost::collective::SockAddress:
Collaboration graph

Public Member Functions

 SockAddress ()=default
 
 SockAddress (SockAddrV6 const &addr)
 
 SockAddress (SockAddrV4 const &addr)
 
auto Domain () const
 
bool IsV4 () const
 
bool IsV6 () const
 
auto const & V4 () const
 
auto const & V6 () const
 

Detailed Description

Address for TCP socket, can be either IPv4 or IPv6.

Constructor & Destructor Documentation

◆ SockAddress() [1/3]

xgboost::collective::SockAddress::SockAddress ( )
default

◆ SockAddress() [2/3]

xgboost::collective::SockAddress::SockAddress ( SockAddrV6 const &  addr)
inlineexplicit

◆ SockAddress() [3/3]

xgboost::collective::SockAddress::SockAddress ( SockAddrV4 const &  addr)
inlineexplicit

Member Function Documentation

◆ Domain()

auto xgboost::collective::SockAddress::Domain ( ) const
inline

◆ IsV4()

bool xgboost::collective::SockAddress::IsV4 ( ) const
inline

◆ IsV6()

bool xgboost::collective::SockAddress::IsV6 ( ) const
inline

◆ V4()

auto const& xgboost::collective::SockAddress::V4 ( ) const
inline

◆ V6()

auto const& xgboost::collective::SockAddress::V6 ( ) const
inline

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