Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
sf — serial framingSYNOPSIS
sf | [-i -| -o] [device] |
DESCRIPTION
sf provides a simple scheme for framing a message over a byte stream. This is useful in cases such as sockets, pipe, and serial devices where a real end of file condition would require terminating the link, but it is important to transmit multiple messages and keeping the link open for an arbitrary amount of time.0xF7 0xFF
), most bytes represent themselves, an escape byte sequence (0xF7 0xFD
), and an end of messsage byte sequence (0xF7 0xFE
). UTF-8 encoded text will never need to be escaped. Data can be recursively framed.- -i
- Decode payload.
- -o
- Encode payload.