From 62171c761c72f7bc515b20361d043bfd239f71c9 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 17 Jul 2026 01:31:38 +0200 Subject: net: wget - real HTTP over the link port via the gateway Grow the link-port demo from echo to actual network access. The Game Boy still only does SLIP framing + display; the host gateway does DNS/TCP/HTTP. - c/netlib.h: SLIP framing factored out (header-only, per-program copy). necho.c now uses it too. - c/wget.c: `wget URL` frames the URL, then prints the reply body. The gateway streams the body back as typed frames: 'D' ... 'E'. - tools/gateway.py: add --mode http (urlopen the frame as a URL, cap the body, chunk it) alongside --mode echo; --cmd runs any gbos command. Verified: `wget example.com` streams back the full Example Domain HTML onto the terminal; `wget sl0p.foo` fetches the real page. A Game Boy on the web, over the link cable. --- include/gbos.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/gbos.inc b/include/gbos.inc index 71d6fa0..7103f48 100644 --- a/include/gbos.inc +++ b/include/gbos.inc @@ -214,5 +214,6 @@ DEF PROG_MKDIR EQU 20 DEF PROG_COUNT EQU 21 DEF PROG_PTEST EQU 22 DEF PROG_NECHO EQU 23 +DEF PROG_WGET EQU 24 ENDC -- cgit v1.3.1-sl0p