GO DEFAULT (TERMINAL, PROFILE's first choice) is CompuServe's terminal
settings and service options: TERMINAL SETTINGS/SERVICE OPTIONS, then
PERMANENT SETTINGS' Logon/Service, Display, Terminal and Transfer
groups, each setting's screen, and CHANGE PERMANENT SETTINGS Confirm/
Cancel on the way out, laid out as TAPCIS 5.4's PARAMS.SCR transcript.
The settings are kept as cis-* prefs (bbs.RegisterPref lets a front end
add its own).
PAGED, BRIEF, WIDTH and LINES take effect at each logon (not with
;TTY); Mail waiting can go straight to Mail; the online editor sets
Mail's numbering; the protocol preference skips the protocol menu. The
rest are kept and shown.
TestCompuServeDefault replays PARAMS.SCR's sends and waits.
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Co-authored-by: Claude <noreply@anthropic.com>
Chat: CJ (People Connection) takes the client into the BBS's main room,
opened in the client's own room window (32-117; 4.0's 43-22783) with
the people there. The room's lines come to it as AB (name, text), its
comings and goings as CA and CB, by slots the window numbers; Aa is a
line said (/me an action); CL leaves. The same room as callers on every
other route.
IMs: iS (4.0: is) is a BBS private message to a user, wherever they
are on, kept for one away and the sender told; a private message to the
client opens its own IM window (32-223; 4.0's 32-6736), one for each
partner, the sender's own lines in it too. iO says whether someone is
on. Kept messages are given at sign-on. Screen names are compared
without their spaces.
p3.Link.NoCRC tells 4.0 (it sends "**" for CRCs) from 3.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
internal/aol serves AOL's own clients over P3: each token the client
sends is handled, and the host answers with atom streams compiled from
FDO91 source.
- Dd, the Welcome form's screen name and password (its two de_data),
is a BBS login (Authenticate, throttled and logged as any); the client
becomes a node, is taken online (async_online, its main window 32-296)
and shown the BBS's Welcome window. A failed one gets an alert and
async_force_off; "New User" is told to join by telnet or the web.
- pE (Sign Off) is answered with XS, the host's sign-off.
- Other tokens are answered with uni_wait_off, so the client doesn't
wait on them, and are logged; before sign-on they're ignored.
- Streams go as aT in one packet, or at pieces with one 4-byte id when
long; a stream the client spreads over packets (4.0) is put together.
[aol] turns it on, at :5190 by default. When [oscar] listens there too
the two share the port: OSCAR hands over connections that begin as P3.
Tested with a scripted client (sign-on, refusals, sign-off, long
streams both ways) and through OSCAR's port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
internal/aol/p3 is P3, the link layer under the AOL 3.0/4.0 client:
- Packets: Append writes them (length, CRC-16/ARC), Reader reads them,
passing over what isn't P3, telling a bad CRC or length apart so it can
be NAKed, and taking AOL 4.0's "**" in place of a CRC.
- Link, started by Serve on a connection: waits for the client's INIT and
acknowledges it (byte for byte as hosts that serve live clients do),
then DATA in order in and out, tx/rx 0x10-0x7F round the ring, a window
of 16, an ACK every 8 DATA or 200ms after a lone one unless a packet of
ours carries it, a NAK once for each gap or bad CRC, go-back-N resends
on NAK, heartbeats after 12 seconds unacknowledged and the link down
after 10, a new INIT starting the link over.
- ParseInit reads what the client says of itself; Sniff tells a P3
client's first packet; Token splits a DATA's token from its data.
Tested against a client scripted over a pipe (windows, NAKs, resends,
heartbeats, wrapping round the sequence numbers), under -race.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
MSN Messenger 1.0 to 4.7 and Windows Messenger 4.x sign in with BBS
names and passwords on port 1863. The contact list is the friends list,
the block list a new blocked list shared by every route (chat's /block
and /unblock, MSN's Block); private messages to and from IRC, AIM and
terminal users pass through switchboards, and kept messages are rung in
at sign-in.
- internal/msn: notification server and switchboards on one port
- store: msn_keys (MD5 digests kept like AIM's) and blocks tables
- bbs: blocks refused in TellUser and Message; /block, /unblock
- oscar: IMs to a user who blocks the sender are refused
- [msn] config section, docs/wiki/MSN-Messenger.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTgFq9vbzTWgK3XYQL
WinCIM asks for forums and mail with ordinary page requests (CIS:FORUMS,
HOM:MAILHMI, as 24high/CompuServe-Emulator measured), so they are pages
now: the forum list, a forum's sections and libraries, a section's
messages newest first, each message as an article (it then counts as
read), a library's file list, the mailbox (unread marked *) and each
letter (marked read when read). Pages are made afresh on each request.
Sending mail, posting, downloads and CB in CIM need transactions not yet
recovered; the docs say so.
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Co-authored-by: Claude <noreply@anthropic.com>
The sending address is looked up in each list at once at the first MAIL
FROM; a listed sender is refused (554 5.7.1, with the list's TXT reason)
and logged. A list that does not answer, or refuses the query (Spamhaus's
127.255.255.x through public resolvers, logged), refuses no one. Local
and private addresses, and logged-in submission, are never looked up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
* listen handoff = yes: the caller's line itself from modemmenu
A raw unix listener with header = yes and handoff = yes takes the
caller's line with the header (SCM_RIGHTS), as modemmenu's item with
handoff = yes sends it: the session runs on that terminal, nothing
copied between modemmenu and the BBS. What modemmenu had read and not
used comes on the connection after the header, ahead of the terminal.
The connection then only marks the session's life: logging off closes
it (the line goes back to the menu, its flags as they came), and the
menu closing it (its time limit, the caller gone) hangs the session up.
A header without a line is an ordinary call.
Tests: four callers on handed-over lines at once, each on its own
terminal; logging off closes the connection; the connection closed
takes the terminal away.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
* handoff: a closed or hung-up line ends the call quietly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
* oscar test: let bob's arrival come again before Carol's
TestAIMToIRC failed on CI when alice saw a second arrival for bob
before Carol Ann's; the test now passes over repeats of bob's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
---------
Co-authored-by: Claude <noreply@anthropic.com>
- internal/timesync: a clock that follows time servers (the median of
their offsets) and can set the system clock; an NTP server with NTS;
an NTS-KE server; a PTP grandmaster (multicast, and unicast
negotiation) and a PTP client; kernel or network-card timestamps.
- [time], [ntp], [nts] and [ptp] sections, the UDP ports bound as root
and handed down, and bbs time to ask servers once.
- Go 1.26 (facebook/time, the protocols' packets, needs it).
- Tested against chrony 4.5 (NTP and NTS, both ways) and linuxptp 4.0
(multicast and unicast, both ways).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUxvTP6EhwNZTADjqy
The E-mail wiki page (addresses, folders, a smarthost or direct delivery,
DNS, the MX and LMTP), the mail sections in bbs.conf.sample, SMTP's 530
for mail before a login, and the TODO section done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
A CIM client (AP in its ESC I answer) now gets the GUI service instead
of "?LOG CAI", following what 24high/CompuServe-Emulator recovered from
WinCIM 3.0.2:
- Secure Login (+ before the User ID): RA:/RB:/UR:/HR:, checked
against a key kept from the password (cis_keys, bound to the password
hash, kept only while a compuserve listener runs), "No." on failure
- the terminal-mode trade: ESC [ > 0 q, ESC [ > 3;3 p, the parameter
line's sum checked, ACK (NAK and again if wrong)
- xfer.BTransport: the B Plus Transport Layer, counters per direction,
1 KB blocks, messages as M packets and a final L
- HMI: session open, pages (menus as 0x27, articles as 0x28 and their
text in pieces), the rest of a menu, Find, the directory lookup, acks,
logoff; CIS:/HOM: names on the ASCII service's page tree
Forums, Mail and CB in CIM say to use a terminal for now.
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Co-authored-by: Claude <noreply@anthropic.com>
The mail table keeps a message once; mailbox gives its recipient and
sender entries of their own (read, starred, trash), and mail_uids its
places in the Inbox, Sent, Drafts, Starred, Unread, All Mail and Trash
folders, numbered so that numbers only grow in a folder (IMAP's UIDs).
An older database's mail goes in its recipients' inboxes. Deleting mail
now puts it in the trash. mail_queue holds mail for addresses elsewhere.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
GO CB asks a handle (not another member's name) and a channel; channel
n is the chat room cb-n, shared with the BBS's other chat callers. The
1982 /HELP's commands: /TUN, /MON, /UNM, /STA, /TIM, /UST (the 1986
table, with s for scrambled and Tlk), /WHO, /HAN, /SCR, /SMC, /XCL,
/UNS, /SQU, /JOB, /EXI, plus /TALK, /ROLL and /OFF. Lines show as
(Handle) text, or (ch,Handle) from a monitored channel. Chat events
carry the sender's handle (bbs.Node.SetHandle) beside their name, so
other front ends still show the name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
GO MAIL enters CompuServe Mail: menu, prompt and command (Mail!) modes,
with the Options and Mode menus and the permanent-settings question that
TAPCIS's PARAMS.SCR answers, kept as cis-mail* user settings. READ with
Action! after each message, SCAN, COMPOSE, UPLOAD (TAPCIS's
UPL/PRO:B/TYP:ASCII), DOWNLOAD by any protocol, DELETE, ADDRESS (NAME and
a session address book), SET. Addresses take CompuServe's forms: names,
User IDs, 'Name >NET:addr', INTERNET:ppn@compuserve.com for a member,
FidoNet netmail; other networks are refused. /GO:MAIL at the User ID
enters it. The library download's transfer is split out to share.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
IRC forgets what is said; now every private message is kept, however it
was sent (the BBS's chat, IRC, AIM, ICQ), in a new chats table. One sent
to a user who is not on is kept for them and given them on their next
login: on IRC as a PRIVMSG with its time (301 tells the sender), on AIM
as an IM once the client is ready, on ICQ as its offline messages
(15/03 0x41), on a terminal at its next prompt. /history in chat and
BBSServ HISTORY read a conversation back. /msg in chat takes a user's
name as well as a node's number.
Each user has one friends list (friends: user, friend, group, alias),
the same on every front end: /friends, /friend and /unfriend in chat,
BBSServ FRIENDS on IRC, and the AIM/ICQ buddy list. A buddy must be a
BBS user (others are refused, 13/0E 0x0A); OSCAR's item ids are kept
apart in oscar_buddies, so the list itself stays protocol-neutral for
other front ends. A friend added elsewhere comes to a connected AIM
client at once (13/08, in its group or "Friends").
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTAJGnEAiwGZm9ygpG
internal/aol/fdo reads and writes the atom streams AOL 3.0/4.0 clients
and hosts exchange (all eight encoding styles, large atoms split across
packets), compiles FDO91 source byte for byte as Ada32.dll does, and
decompiles streams to source that compiles back to the same bytes.
The atom table is ADA.BIN's, as AtomForge dumped it (MIT), generated by
go run ./internal/aol/fdo/gen; eleven AOL 4.0 atoms it lacks come from
the corpus. Named values are from the FDO91 manual and AtomForge.
Checked against AtomForge's corpus of Ada32's output: all 1,889 forms,
74,369 single atoms and 62 more streams (44 captured from a live client)
compile to the same bytes and round-trip. testdata keeps 93 forms and the
live captures; FDO_CORPUS points the tests at the whole corpus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
A forum's libraries are the file areas of its group (file areas get a
group, set by bbs filearea group), numbered from 0. LIB n opens one at
LIB !: DIR, BRO and SCA list the files the period's way ([ppn],
NAME/binary, date, size, Accesses:, Title, Keywords, description); DOW
sends one by CompuServe B / Quick B / B Plus, XMODEM, Kermit or DC2/DC4
capture, from /PROTO: or the protocol menu, within the BBS's download
limits; UPL takes one, then its title, keywords and description.
The B engine: a TU garbled on the way is sent again on a NAK or silence
(both sides NAKed each other before), a lost ACK of the final TC is not
a failure, and Rest gives what was read past the protocol.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
[oscar] serves AIM and ICQ clients on port 5190, as a front end on the
same chat core as the IRC server: buddies are BBS users online by any
route, an IM is a private message (a PRIVMSG to an IRC user), and a chat
room is a BBS room, an IRC channel.
- FLAP, SNACs and TLVs; logins by the signon frame (roasted passwords:
AIM 1-3, ICQ, Java AIM) and by BUCP (MD5, weak and strong digests); the
BOS and the services' connections by cookie, all on the one port
- BOS: rate classes, versions, self info, idle; locate (profiles, away
messages, capabilities); the client-side buddy list and the server-
stored one (feedbag/SSI, kept in a new feedbag table); permit/deny
lists and modes, ICQ invisibility; IMs on channels 1, 2 (rendezvous
passed between AIM clients, chat invitations as lines to others) and 4,
typing notices, host acks
- chat navigation and chat rooms (exchanges 4 and 5) as BBS rooms
- ICQ: numbers are uin_base plus the account's id; family 0x15's offline
messages (none), short and full info, searches by number and name
- a connection beginning with P3's sync byte goes to Server.P3, for an
AOL front end on the same port
BUCP digests can't be checked against bcrypt, so while [oscar] is set up
each account keeps a fixed auth key and its two digests (oscar_keys),
made when the password is set or checked in the clear and bound to the
password hash. The chat core gains WatchPresence (users coming and
going) and Throttle; bbs gains AuthenticateBy for digest logins.
docs/wiki/AIM-and-ICQ.md describes it.
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTAJGnEAiwGZm9ygpG
GO FORUMS lists a forum for each group of message areas (and one for
those in none), each area a section, at most 18 a forum. The forum is in
command mode at Forum !, as TAPCIS needs: REA, SCA (and QUICK), BRO with
NEW/ALL/WAI/REV/THR and FROM:/TO:/SUB:/SEC:/DAYS:/STA:, POST with EDIT,
replies, OPT;TYP N for nonstop reading, MES, DES, NEW; message headers in
forum software 4's form (#:, Sb: with thread marks, Fm:/To: with User
IDs, * Reply: footers), and the entry and exit texts. TAPCIS's command
strings are in the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM