io.ports vocabulary
Factor handbook ยป Vocabulary index


Documentation
Non-blocking I/O implementation

Metadata
Parents:io
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
buffered-port portbuffer
input-port buffered-port
output-port buffered-port
port disposablehandle timeout


Generic words
WordStack effect
(wait-to-read)( port -- )
(wait-to-write)( port -- )
can-seek-handle?( handle -- ? )
handle-length( handle -- n/f )
seek-handle( n seek-type handle -- )
shutdown( handle -- )
tell-handle( handle -- n )
underlying-handle( stream -- handle )
underlying-port( stream -- port )


Symbol words
default-buffer-size


Ordinary words
WordStack effect
<buffered-port>( handle class -- port )
<input-port>( handle -- input-port )
<output-port>( handle -- output-port )
<port>( handle class -- port )
wait-for-port( port event -- )
wait-to-read( port -- eof? )
wait-to-write( len port -- )


Class predicate words
WordStack effect
buffered-port?( object -- ? )
input-port?( object -- ? )
output-port?( object -- ? )
port?( object -- ? )


Files


Metadata files