aboutsummaryrefslogtreecommitdiff
path: root/internal/net/doc.go
blob: 13e7f717d0d2bf657e90801068f7a62acb6d3b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Package net provides transport-agnostic network connections, session
// management, and a multi-listener server.
//
// The Conn interface abstracts TCP (telnet) and WebSocket connections,
// handling IAC echo control for password suppression. The Session type
// tracks connection state through the login flow (account name, password,
// menu navigation, character selection, and in-game play).
//
// The Hub tracks which sessions are in which rooms, enabling room-scoped
// messaging. The Server manages telnet, HTTP, and HTTPS listeners and
// dispatches incoming input to the game handler.
//
// Session I/O helpers (Write, WriteLine, WriteLines) handle CRLF line
// endings required by telnet clients.
package net