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:
@@ -67,6 +67,8 @@ func (ts TCPServer) HandleClient(ctx context.Context, client net.Conn) {
|
||||
framer = framing.NewByteSeparatorFramer([]byte{'\r'})
|
||||
case "CRLF":
|
||||
framer = framing.NewByteSeparatorFramer([]byte{'\r', '\n'})
|
||||
case "SLIP":
|
||||
framer = framing.NewSlipFramer()
|
||||
}
|
||||
|
||||
buffer := make([]byte, 1024)
|
||||
|
||||
Reference in New Issue
Block a user