otp_net.c
Include dependency graph for otp_net.c:
Defines
-
UNKNOWN_TABLE_VALUE
Functions
-
static term eai_errno_to_term(int err, GlobalContext *glb)
-
static term make_getaddrinfo_result(term *keys, int ai_protocol, int ai_socktype, term inner_addr, GlobalContext *global, Heap *heap)
-
void otp_net_init(GlobalContext *global)
Variables
-
static const AtomStringIntPair protocol_table[] = {{ATOM_STR("\x3", "tcp"), IPPROTO_TCP}, {ATOM_STR("\x3", "udp"), IPPROTO_UDP},}
-
static const AtomStringIntPair type_table[] = {{ATOM_STR("\x5", "dgram"), SOCK_DGRAM}, {ATOM_STR("\x6", "stream"), SOCK_STREAM},}
- static const struct Nif net_getaddrinfo_nif = {.base.type =NIFFunctionType,.nif_ptr = nif_net_getaddrinfo}