Agora  1.2.0
Agora project
agora_comm Namespace Reference

For addr info. More...

Functions

int ListLocalInterfaces ()
 
std::string GetLocalAddressFromScope (size_t scope_id)
 
::addrinfo * GetAddressInfo (const std::string &address, const std::string &port)
 
void PrintAddressInfo (const ::addrinfo *print_info)
 

Variables

static constexpr bool kDebugPrint = false
 
static constexpr int kAllowedAiFamily = AF_UNSPEC
 Allow either - AF_INET6 | AF_INET. More...
 

Detailed Description

For addr info.

Function Documentation

◆ GetAddressInfo()

addrinfo * agora_comm::GetAddressInfo ( const std::string &  address,
const std::string &  port 
)

Set node to NULL for loopback or all interfaces

wildcard

Any protocol

Here is the caller graph for this function:

◆ GetLocalAddressFromScope()

std::string agora_comm::GetLocalAddressFromScope ( size_t  scope_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ListLocalInterfaces()

int agora_comm::ListLocalInterfaces ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintAddressInfo()

void agora_comm::PrintAddressInfo ( const ::addrinfo *  print_info)
Here is the caller graph for this function:

Variable Documentation

◆ kAllowedAiFamily

constexpr int agora_comm::kAllowedAiFamily = AF_UNSPEC
staticconstexpr

Allow either - AF_INET6 | AF_INET.

◆ kDebugPrint

constexpr bool agora_comm::kDebugPrint = false
staticconstexpr