Refine comment in TCPClientInterface to clarify HDLC framing usage for TCP connections

This commit is contained in:
2025-09-27 04:41:36 -05:00
parent cebab6b2f3
commit be34168a1b

View File

@@ -215,7 +215,7 @@ func (tc *TCPClientInterface) ProcessOutgoing(data []byte) error {
tc.writing = true
defer func() { tc.writing = false }()
// For TCP connections, use HDLC framing like the server expects
// For TCP connections, use HDLC framing
var frame []byte
frame = append([]byte{HDLC_FLAG}, escapeHDLC(data)...)
frame = append(frame, HDLC_FLAG)