diff options
| author | user <user@clank> | 2026-09-22 21:54:13 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-09-22 21:54:13 +0200 |
| commit | 0a7ff09a910eaf5bcb0dc76d08dc5a6c9c239495 (patch) | |
| tree | 35d6e8713ed3ea638e5aaea04d9c726f8f2c2d49 /include | |
| parent | net: one socket per client - four-tuple demux, spawning accept, bounded close (diff) | |
| download | gbos-0a7ff09a910eaf5bcb0dc76d08dc5a6c9c239495.tar.gz gbos-0a7ff09a910eaf5bcb0dc76d08dc5a6c9c239495.tar.xz gbos-0a7ff09a910eaf5bcb0dc76d08dc5a6c9c239495.zip | |
usr: ircd - an IRC server running on the Game Boy
/# ircd &
host$ irssi -c 10.0.0.2 /join #gbos
other GB$ irc 10.0.0.2 gb2 /join #gbos
Implements the subset a real client needs to get in and talk: NICK, USER,
PING/PONG, JOIN, PART, PRIVMSG/NOTICE (to a channel or to a nick), NAMES and
QUIT, with the 001/004/375/372/376 numerics clients wait for on registration,
353/366 on join, and 421 for anything else. One channel per client keeps the
bookkeeping in fixed-size tables; this is a handheld with 8 KiB of task RAM.
MAXCL is 3, bounded by the kernel socket table (listener + client each take a
slot, the rest left for other programs). A fourth client is refused and the
daemon keeps serving - which is how the ~30s close() stall turned up.
Every event is logged to the LCD, so the Game Boy shows its own server
traffic: "+ alice", "alice joined", "<alice> hello".
Verified with real clients over the hub: two and three simultaneous hosts
registering, joining, channel relay (sender not echoed to itself), private
messages by nick, PING/PONG, unknown-command numerics, QUIT propagation, the
overflow refusal, and a second Game Boy running gbos's own irc(1) in the same
channel as a laptop client - messages crossing both ways between them.
Diffstat (limited to 'include')
| -rw-r--r-- | include/gbos.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gbos.inc b/include/gbos.inc index 7f4431b..eabdcec 100644 --- a/include/gbos.inc +++ b/include/gbos.inc @@ -306,5 +306,6 @@ DEF PROG_MORE EQU 34 DEF PROG_CP EQU 35 DEF PROG_NC EQU 36 DEF PROG_HTTPD EQU 37 +DEF PROG_IRCD EQU 38 ENDC |
