Agora
1.2.0
Agora project
|
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"
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... | |
Helper definations for networking.