add SLIP framing

This commit is contained in:
Joel Wetzell
2025-11-18 21:30:06 -06:00
parent 86966132ca
commit 8e0f25abe9
3 changed files with 56 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ func init() {
framer = framing.NewByteSeparatorFramer([]byte{'\n'})
case "CRLF":
framer = framing.NewByteSeparatorFramer([]byte{'\r', '\n'})
case "SLIP":
framer = framing.NewSlipFramer()
default:
return nil, fmt.Errorf("unknown framing method: %s", framingMethodString)
}