code wiki / (root) / nx_quic_udp.nx

nx_quic_udp.nx

buildroot/runtime/nx_quic_udp.nx

1700 B34 linesdepth 3pulls 4 transitivereach 3 importersview sourcekind tooltopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_udp.nx -- RUNG 8c.1 of the sovereign QUIC transport: the UDP datagram endpoint. QUIC runs over UDP (not TCP) -- that is precisely what lets a lost packet be FEC-recovered instead of TCP-retransmitted (the resilience exceed). This is the sovereign socket layer the live relay's QUIC server stands on: bind a UDP socket, send a QUIC packet, receive one. Reuses the proven nx_sc_sockaddr (sockaddr_in byte-exact) from the IoT broadcast path. license_tier: ORIGINAL

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_iot_sc_broadcast.nx nx_quic_udp.nx nx_quic_pipe_test.nx nx_quic_udp_test.nx nx_vclient_loop_test.nx

imports: nx_syscalls.nxnx_iot_sc_broadcast.nx

imported by: nx_quic_pipe_test.nxnx_quic_udp_test.nxnx_vclient_loop_test.nx

structs

none

consts

none

functions

10func quic_udp_bind(port: i64) -> i64
19func quic_udp_socket() -> i64 { return sys_socket(AF_INET, SOCK_DGRAM, 0) }
called by 3: mainmainmain calls 1: sys_socket
21func quic_udp_sendto(fd: i64, port: i64, buf: *u8, len: i64) -> i64
27func quic_udp_recv(fd: i64, buf: *u8, cap: i64) -> i64
called by 3: mainmainmain calls 2: sys_mmapsys_recvfrom
34func main() -> i64 { return 0 }