Versions in this module Expand all Collapse all v0 v0.4.0 Aug 13, 2026 Changes in this version + const FrameHeaderBytes + const MaxFrameBytes + const MaxLineBytes + const OpAttach + const OpControl + const ParityEven + const ParityNone + const ParityOdd + const ProtoVersion + const VSockPort + var ErrFrameTooLong = errors.New("serialfwd: frame exceeds MaxFrameBytes") + var ErrLineTooLong = errors.New("serialfwd: control line exceeds MaxLineBytes") + func NewReader(r io.Reader) *bufio.Reader + func ReadLine(r *bufio.Reader, v any) error + func ValidDeviceName(name string) error + func WriteFrame(w io.Writer, t FrameType, payload []byte) error + func WriteLine(w io.Writer, v any) error + func WriteModeFrame(w io.Writer, m Mode) error + type AttachReply struct + Error string + OK bool + type Device struct + Name string + type FrameType byte + const FrameData + const FrameMode + func ReadFrame(r *bufio.Reader) (FrameType, []byte, error) + func (t FrameType) String() string + type Greeting struct + Mode *Mode + Name string + Op string + V int + type Mode struct + Baud int + Bits int + Parity string + Stop int + func DefaultMode() Mode + func (m Mode) String() string + func (m Mode) Validate() error + type Snapshot struct + Devices []Device