nx_inet_pton.nx
buildroot/runtime/nx_inet_pton.nx
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
imports: syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 26 | func nx_inet_dec(buf: *u8, off: i64, v: i64) -> i64 called by 1: nx_inet_ntop_v4 |
| 58 | func nx_inet_ntop_v4(addr_be: i64, buf: *u8) -> i64 |
| 78 | func nx_inet_pton_v4(s: *u8) -> i64 called by 1: main |
| 111 | func main() -> i64 |