Sponge
CS144's user-space TCP library
|
#include "address.hh"
#include "util.hh"
#include <arpa/inet.h>
#include <cstring>
#include <memory>
#include <netdb.h>
#include <stdexcept>
#include <system_error>
Go to the source code of this file.
Classes | |
class | gai_error_category |
Error category for getaddrinfo and getnameinfo failures. More... | |
Functions | |
static addrinfo | make_hints (const int ai_flags, const int ai_family) |
Build a struct addrinfo containing hints for getaddrinfo(3). More... | |
|
inlinestatic |
Build a struct addrinfo
containing hints for getaddrinfo(3).
[in] | ai_flags | is the value of the ai_flags field in the struct addrinfo |
[in] | ai_family | is the value of the ai_family field in the struct addrinfo |
Definition at line 71 of file address.cc.