Skip to content

unix arpa inet

IsaacShelton edited this page Nov 13, 2022 · 4 revisions

unix/arpa/inet

[unix/arpa/inet.adept](https://github.com/AdeptLanguage/AdeptImport/blob/2eb8b9e05864f782fc7b75b5e62346c5643b8b72/inet.h>`.

Functions

  • func htonl(x uint) uint
  • func ntohl(x uint) uint
  • func htons(x ushort) ushort
  • func ntohs(x ushort) ushort
  • func hton64(x ulong) ulong
  • func ntoh64(x ulong) ulong
  • foreign inet_addr(*ubyte) in_addr_t
  • foreign inet_ntoa(in_addr) *ubyte
  • foreign inet_ntop(int, ptr, *ubyte, socklen_t) *ubyte
  • foreign inet_pton(int, *ubyte, ptr) int

Extra MacOS Functions (arpa_inet_extras)

  • foreign ascii2addr(int, *ubyte, ptr) int
  • foreign addr2ascii(int, ptr, int, *ubyte) *ubyte
  • foreign inet_aton(*ubyte, *in_addr) int
  • foreign inet_lnaof(in_addr) in_addr_t
  • foreign inet_makeaddr(in_addr_t, in_addr_t) in_addr
  • foreign inet_netof(in_addr) in_addr_t
  • foreign inet_network(*ubyte) in_addr_t
  • foreign inet_net_ntop(int, ptr, int, *ubyte, usize) *ubyte
  • foreign inet_net_pton(int, *ubyte, ptr, usize) int
  • foreign inet_neta(in_addr_t, *ubyte, usize) *ubyte
  • foreign inet_nsap_addr(*ubyte, *ubyte, int) uint
  • foreign inet_nsap_ntoa(int, *ubyte, *ubyte) ubyte

Imported Files

import 'machine/endian.adept'
import 'unix/in_addr_t.adept'
import 'unix/socklen_t.adept'
import 'unix/netinet/in.adept'

Settings

#default arpa_inet_extras false
Clone this wiki locally