Concrete implementation of a FIFO (Named Pipe) using native system calls.

Constructor

new()

Methods

close():Void

@:value({ mode : 438 })create(path:String, mode:Int = 438):Bool

Creates a new FIFO at the specified path.

open(path:String, writeMode:Bool):Bool

Opens an existing FIFO.

read(buffer:Bytes, length:Int):Int

Reads from the FIFO.

readAll():Bytes

Reads all available data from the FIFO. In blocking mode, this will read until EOF. In non-blocking mode, this will read all currently available data.

setBlocking(blocking:Bool):Bool

write(buffer:Bytes, length:Int):Int

Writes to the FIFO.