Agora  1.2.0
Agora project
network_utils.cc File Reference

Helper definations for networking. More...

#include "network_utils.h"
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <linux/if_link.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <stdexcept>
#include "logger.h"
Include dependency graph for network_utils.cc:

Namespaces

 agora_comm
 For addr info.
 

Functions

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

Variables

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

Detailed Description

Helper definations for networking.