Next: , Previous: , Up: built-in ports labels   [Contents][Index]


6.23.8.3 Input/output port labels

Label Type: <input/output-port>

Label–type for all the input/output ports. Its parent is the type annotation:

(or <binary-input/output-port> <textual-input/output-port>)
Constructor on <input/output-port>: <input/output-port> type-constructor port

Validate port as instance of <input/output-port> and return it.

Type predicate on <input/output-port>: <boolean> type-predicate obj

The type predicate is built combining the parent types’ type predicates.

Equality predicate on <input/output-port>: <boolean> equality-predicate this {port <input/output-port>}

The equality predicate is eq?.

Type predicate on <input/output-port>: <non-negative-fixnum> hash-function this

The hash function is port-hash.

Methods: predicates

Method on <input/output-port>: <boolean> open? this
Method on <input/output-port>: <boolean> closed? this

Return #t if this is, respectively, open or closed; otherwise return #f.

Methods: configuration

Method on <input/output-port>: () set-non-blocking-mode this
Method on <input/output-port>: () unset-non-blocking-mode this

Apply port-set-non-blocking-mode! or port-unset-non-blocking-mode! to the argument and return its return value.

Method on <input/output-port>: <boolean> non-blocking-mode? this

Apply port-in-non-blocking-mode? to the argument and return its return value.

Methods: position

Method on <input/output-port>: <boolean> has-position? this

Apply port-has-port-position? to the argument and return its return value.

Method on <input/output-port>: <boolean> has-set-position? this

Apply port-has-set-port-position!? to the argument and return its return value.

Method on <input/output-port>: <non-negative-exact-integer> position this
Method on <input/output-port>: () position this {pos <non-negative-exact-integer>}

Apply port-position or set-port-position! to the arguments and return its return value.

Methods: inspection

Method on <input/output-port>: <string> id this

Apply port-id! to the argument and return its return value.

Method on <input/output-port>: (or <false> <file-descriptor>) fd this

Apply port-fd to the argument and return its return value.

Method on <input/output-port>: <gensym> uid this

Apply port-uid to the argument and return its return value.

Method on <input/output-port>: () dump-status this

Apply port-dump-status to the argument and return its return value.

Method on <input/output-port>: (or <transcoder> <false>) transcoder this

Apply port-transcoder to the argument and return its return value.

Methods: properties

Method on <input/output-port>: () putprop this {key <symbol>} value

Apply port-putprop to the arguments and return its return value.

Method on <input/output-port>: <top> getprop this {key <symbol>}

Apply port-getprop to the arguments and return its return value.

Method on <input/output-port>: () remprop this {key <symbol>}

Apply port-remprop to the arguments and return its return value.

Method on <input/output-port>: (alist <symbol> <top>) property-list this

Apply port-property-list to the arguments and return its return value.

Methods: miscellaneous

Method on <input/output-port>: () close this

Apply port-close to the argument.

Method on <input/output-port>: <boolean> reset this

Apply reset-input-port! or reset-output-port! to the argument.

Methods: input ports

Method on <input/output-port>: <boolean> eof? this

Apply port-eof? to the instance and return its return value.

Methods: output ports

Method on <input/output-port>: () flush this

Apply flush-output-port to the instance.


Next: , Previous: , Up: built-in ports labels   [Contents][Index]