next up previous contents index
Next: Out-Of-Band Data Up: The WIRE Package Previous: Tagged Data   Contents   Index

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.



Peter Van Eynde 2000-02-08