mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
internal/marvel serves the MSN client of 1995 to 1998 over its own protocol (Marvel), by modem (frontend = marvel on a telnet or raw listener) or over TCP ([marvel], port 569): - the serial link (byte stuffing, CRC-32, Go-Back-N with a 16-packet window and retransmission) and the TCP "straight" records - pipes, MPC host blocks and tagged parameters, property records - LOGSRV: sign-in with BBS accounts (as a node), password change, the billing pages' name and address - DIRSRV: MSN Central, Categories (a folder per area group), MSN Today (the boards with the newest posts), Go words, icons drawn here - the BBS service: each readable message area is an MSN bulletin board, its messages listed with their reply threading, opened as articles, posted and replied to from the Compose window (plain, RTF or compressed RTF, kept as plain text) and deleted by their author Written from the marvel-msn project's protocol notes and wire captures; none of its code is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
38 lines
862 B
Go
38 lines
862 B
Go
package server
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
|
|
"github.com/D-Modem/bbs/internal/config"
|
|
"github.com/D-Modem/bbs/internal/marvel"
|
|
)
|
|
|
|
// marvelSection reads [marvel]: the host for the MSN client of Windows 95
|
|
// (The Microsoft Network, 1995 to 1998), over TCP.
|
|
func (c *Config) marvelSection(cf *config.File) error {
|
|
s := cf.Get("marvel", "")
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
err := func() error {
|
|
m := &marvel.Settings{Address: s.String("address", ":569")}
|
|
if _, _, err := net.SplitHostPort(m.Address); err != nil {
|
|
return fmt.Errorf("address: %v", err)
|
|
}
|
|
var err error
|
|
if m.MaxClients, err = s.Int("max_clients", 64, 1, 100000); err != nil {
|
|
return err
|
|
}
|
|
if m.MaxPerIP, err = s.Int("max_per_ip", 4, 0, 1000); err != nil {
|
|
return err
|
|
}
|
|
c.Marvel = m
|
|
return nil
|
|
}()
|
|
if err != nil {
|
|
return fmt.Errorf("[marvel] %w", err)
|
|
}
|
|
return nil
|
|
}
|