Handbook
Glossary
port
Factor handbook
»
Input and output
»
Non-blocking I/O implementation
Next:
<port> ( handle class -- port )
Vocabulary
io
.
ports
Class description
Instances of this class present a blocking stream interface on top of an underlying non-blocking I/O system, giving the illusion of blocking by yielding the thread which is waiting for input or output.
Definition
USING:
destructors
;
IN:
io.ports
TUPLE:
port
<
disposable
handle timeout
;
Methods
USING:
accessors
io.ports
io.timeouts
;
M:
port
cancel-operation
handle>>
cancel-operation
;
USING:
accessors
destructors
io.ports
;
M:
port
dispose*
[
handle>>
&dispose
shutdown
]
with-destructors
;
USING:
accessors
io.ports
io.timeouts
;
M:
port
set-timeout
timeout<<
;
USING:
accessors
io.ports
io.timeouts
;
M:
port
timeout
timeout>>
;
USING:
io.ports
;
M:
port
underlying-port
;