diff options
| author | user <user@clank> | 2026-07-17 01:31:38 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-07-17 01:31:38 +0200 |
| commit | 62171c761c72f7bc515b20361d043bfd239f71c9 (patch) | |
| tree | 4a3f1046403cd58177c4d9fa64d4af8ca066cac2 /Makefile | |
| parent | net: SLIP framing over the link port + a host gateway (echo round-trip) (diff) | |
| download | gbos-62171c761c72f7bc515b20361d043bfd239f71c9.tar.gz gbos-62171c761c72f7bc515b20361d043bfd239f71c9.tar.xz gbos-62171c761c72f7bc515b20361d043bfd239f71c9.zip | |
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'<chunk> ... '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.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ $(BUILD)/%.o: src/%.asm | $(BUILD) # C programs: compiled with SDCC into ROM-bank blobs and INCBIN'd by programs.asm CBLOBS := c/chello.bin c/echo.bin c/true.bin c/false.bin c/uname.bin \ c/pid.bin c/cat.bin c/wc.bin c/head.bin c/args.bin \ - c/ls.bin c/save.bin c/rm.bin c/sh.bin c/ps.bin c/kill.bin c/spin.bin c/blk.bin c/mkdir.bin c/count.bin c/ptest.bin c/necho.bin + c/ls.bin c/save.bin c/rm.bin c/sh.bin c/ps.bin c/kill.bin c/spin.bin c/blk.bin c/mkdir.bin c/count.bin c/ptest.bin c/necho.bin c/wget.bin $(BUILD)/programs.o: $(CBLOBS) # C programs also depend on the shared libc sources |
