code wiki / (root) / nx_inet_pton.nx

nx_inet_pton.nx

buildroot/runtime/nx_inet_pton.nx

5096 B151 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic inet
docsdependenciesstructsconstsfunctions

about

nx_inet_pton.nx -- IPv4 / IPv6 address text <-> binary conversions. Companion to nx_socket (which has nx_sock_inet_aton for IPv4 parse). This module rounds out the conversions: pton: text -> binary (parse) ntop: binary -> text (format) IPv4 only in this commit; IPv6 lands when we have a real DNS / AAAA-record consumer. Used by: - HTTP server (Host header logging in dotted-quad) - DNS resolver result formatting - Sovereign curl-equivalent CLI - Network debug logs

dependencies 1 imports · 0 importers

syscalls.nx nx_inet_pton.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_inet_ntop_v4 nx_inet_dec nx_inet_pton_v4

structs

none

consts

none

functions

26func nx_inet_dec(buf: *u8, off: i64, v: i64) -> i64
called by 1: nx_inet_ntop_v4
58func nx_inet_ntop_v4(addr_be: i64, buf: *u8) -> i64
called by 1: main calls 1: nx_inet_dec
78func nx_inet_pton_v4(s: *u8) -> i64
called by 1: main
111func main() -> i64