Documentation ¶
Overview ¶
sio provides functions to read and write strings, and in-band diagnostic messages on a record-oriented stream. It also includes some primitives needed by several components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EraseKey ¶
func EraseKey(a []byte)
EraseKey zeroes the bytes of a key, removing it from casual memory viewing. It mattered more in Plan 9 and Inferno because allocated arrays weren't guaranteed to be zero (unless mallocz was used), and if they reused space from a key, might accidentally leak the value. It probably doesn't really matter with Go, except for archaic core files.
func ReadString ¶
ReadString returns the next string read from fd, relying on SSL/TLS to provide a record-oriented stream, so it will read and return a complete record. By convention, a string starting "!" introduces an error message, to be returned to the caller.
func WriteError ¶
WriteError sends a diagnostic to the remote, flagged as such, and also returns it locally as an error.
Types ¶
This section is empty.