next up previous contents
Next: Out-Of-Band Data Up: 9.2 The WIRE Package Previous: 9.2.2 Tagged Data

9.2.3 Making Your Own Wires

You can create wires manually in addition to the remote package's interface creating them for you. To create a wire, you need a Unix ıfile descriptor. If you are unfamiliar with Unix file descriptors, see section 2 of the Unix manual pages.

[Function]
wire: make-wire descriptor

The function make-wire creates a new wire when supplied with the file descriptor to use for the underlying I/O operations.

[Function]
wire: wire-p object

This function returns t if object is indeed a wire, nil otherwise.

[Function]
wire: wire-fd wire

This function returns the file descriptor used by the wire.



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997