Documentation ¶
Overview ¶
Package fifo implements functions to create and open a fifo for inter-process communication in an OS agnostic way. A few assumptions should be made when using this package. First, New() must always be called before Open(). Second Open() returns an io.ReadWriteCloser that is only connected with the io.ReadWriteCloser returned from New().
Index ¶
Constants ¶
View Source
const PipeBufferSize = int32(^uint16(0))
PipeBufferSize is the size of the input and output buffers for the windows named pipe
Variables ¶
This section is empty.
Functions ¶
func CreateAndRead ¶
func CreateAndRead(path string) (func() (io.ReadCloser, error), error)
CreateAndRead creates a fifo at the given path and returns an io.ReadCloser open for it. The fifo must not already exist
func IsClosedErr ¶
func OpenWriter ¶
func OpenWriter(path string) (io.WriteCloser, error)
OpenWriter opens a fifo that already exists and returns an io.WriteCloser for it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.