13.1.2 Managing Ports
procedure
(input-port? v) → boolean?
v : any/c
procedure
(output-port? v) → boolean?
v : any/c
procedure
(close-input-port in) → void?
in : input-port?
Closes the input port in. For some kinds of ports, closing
the port releases lower-level resources, such as a file handle. If
the port is already closed, close-input-port has no effect.
procedure
(close-output-port out) → void?
out : output-port?
Closes the output port out. For some kinds of ports, closing
the port releases lower-level resources, such as a file handle. Also,
if the port is buffered, closing may first flush the port before
closing it, and this flushing process can block. If the port is
already closed, close-output-port has no effect.
procedure
(port-closed? port) → boolean?
port : port?
Returns #t if the input or output port port is
closed, #f otherwise.
procedure
(port-closed-evt port) → evt?
port : port?
Return a synchronizable event that becomes ready for
synchronization when port is
closed. The synchronization result of a port-closed event is the port-closed event itself.
parameter
(current-input-port in) → void? in : input-port?
parameter
(current-output-port out) → void? out : output-port?
parameter
(current-error-port out) → void? out : output-port?
A parameter that
determines an output port that is typically used for errors and
logging. For example, the default error display handler writes to this
port.
procedure
(file-stream-port? v) → boolean?
v : any/c
Changed in version 7.2.0.5 of package base: Extended file-stream-port? to any value, instead of resticting the domain to ports
procedure
(terminal-port? v) → boolean?
v : any/c
Returns #t if v is a port that is attached to an
interactive terminal, #f otherwise.
Changed in version 7.2.0.5 of package base: Extended terminal-port? to any value, instead of resticting the domain to ports
value
A value (distinct from all other values)
that represents an end-of-file.
procedure
(eof-object? v) → boolean?
v : any/c