Documentation ¶
Overview ¶
Package pipe implements a nonblocking Reader/Writer pair; data can be written to the writer end of the pipe and read from the reader end of the pipe. This is similar to io.Pipe() with some differences: first, we implement the ipx.ReadWriteCloser interface. Second, calls to WritePacket() never block. Third, there is an internal buffer of packets that have been written but not yet read from the pipe. The size of the buffer is configurable. Once the buffer is full, WritePacket() will return errors until the reader drains the pipe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PipeFullError = errors.New("pipe buffer is full")
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.