Tiny TCP Relay
Minimal concurrent TCP server in Go using goroutines and channels. It listens on :3000, accepts connections, spins a goroutine per client, and echoes whatever bytes it reads back to the sender.
Incoming messages are also pushed into a buffered channel and printed with a timestamp and remote address in a separate goroutine.
Technical Details
- Goroutine per client
- Buffered message channel (size 10)
- Raw TCP socket communication
- Echo back of received bytes
- Message logging with timestamp and remote address