mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add SLIP framing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user