code wiki / (root) / nx_crawl_https.nx

nx_crawl_https.nx

buildroot/runtime/nx_crawl_https.nx

6660 B138 linesdepth 21pulls 139 transitivereach 0 importersview sourcekind tooltopic crawl
docsdependenciesstructsconstsfunctions

about

nx_crawl_https.nx -- the hardened crawler on the REAL VALIDATED HTTPS web. Governed (ISP-safe) + robots-respecting + content-deduped + indexed + persisted, every fetch a VALIDATED TLS 1.3 session (nx_https_get + bits-up CA store). The deployable pipeline, end-to-end, against the live HTTPS internet.

dependencies 12 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_csprng.nx nx_x509_trust_store.nx nx_pem_loader.nx nx_https_get.nx nx_html_to_text.nx nx_simhash.nx nx_bm25.nx nx_robots.nx nx_crawl_https.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_str.nxnx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_pem_loader.nxnx_https_get.nxnx_html_to_text.nxnx_simhash.nxnx_bm25.nxnx_robots.nxnx_net_governor.nxnx_docstore.nx

imported by: nobody (leaf or entry point)

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

main nx_puts sys_write nx_str_len trust_store_alloc sys_mmap nx_pem_trust_load_file sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_pem_trust_load nx_str_len ↻ _pem_find nx_str_len ↻ sys_mmap ↻ b64_decode b64_grab b64_dec_char x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ trust_store_add nx_pi nx_putc

structs

none

consts

17const K_MAGIC_2097152: i64 = 2097152
18const K_MAGIC_131072: i64 = 131072
19const K_MAGIC_262144: i64 = 262144

functions

21func nx_putc(c: i64) -> i64 { let b: *u8 = sys_mmap(1); b[0] = c; sys_write(1, b, 1); return 0 }
called by 2: nx_pimain calls 2: sys_mmapsys_write
22func nx_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 2: sys_writenx_str_len
23func nx_pi(n: i64) -> i64
called by 1: main calls 3: nx_putcsys_mmapsys_write
31func nx_body_off(resp: *u8, n: i64) -> i64
called by 1: main
37func nx_pathof(url: *u8, out: *u8, cap: i64) -> i64
called by 1: main calls 1: nx_str_len
54func main() -> i64