aboutsummaryrefslogtreecommitdiff
path: root/internal/net
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 17:05:17 -0400
committerhistoria <[not public]>2026-09-16 17:05:17 -0400
commit1dad15698845d370e998f7cc5feb8aece3fab58f (patch)
tree8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/net
parenta6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff)
downloadthehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/net')
-rw-r--r--internal/net/conn.go3
-rw-r--r--internal/net/server.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/internal/net/conn.go b/internal/net/conn.go
index a7c53ec..2a250d8 100644
--- a/internal/net/conn.go
+++ b/internal/net/conn.go
@@ -1,3 +1,6 @@
+// Package net implements the server transports: telnet, telnet-over-TLS,
+// and the WebSocket bridge for the web client, plus the shared Session type.
+// It must not be confused with the standard library net package.
package net
import (
diff --git a/internal/net/server.go b/internal/net/server.go
index dd65f6e..eed5486 100644
--- a/internal/net/server.go
+++ b/internal/net/server.go
@@ -146,7 +146,7 @@ const (
closeFlushTimeout = 2 * time.Second
)
-// startWriter puts the session into queued mode: writes are enqueued and a
+// StartWriter puts the session into queued mode: writes are enqueued and a
// dedicated goroutine drains the queue to the network with per-message write
// deadlines. The goroutine exits after Close() — draining whatever was
// queued first — and closes the transport, so a Close() during shutdown