diff options
| author | historia <[not public]> | 2026-06-14 21:07:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-14 21:07:26 -0400 |
| commit | 1aba2bdd23aebed4032333e74aa553c40a31fcbd (patch) | |
| tree | c004f4c2a139df5c3cf4029b2611bdfa09b40f86 /internal/net/doc.go | |
| parent | a19e6b6ab01670a5932308c7bd0e0e5eed8cbcad (diff) | |
| download | thehouseoficarus-1aba2bdd23aebed4032333e74aa553c40a31fcbd.tar.gz | |
refactor: added docs, split up some components in game package
Diffstat (limited to 'internal/net/doc.go')
| -rw-r--r-- | internal/net/doc.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/net/doc.go b/internal/net/doc.go new file mode 100644 index 0000000..13e7f71 --- /dev/null +++ b/internal/net/doc.go @@ -0,0 +1,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 |
