Next Previous Up Top Contents Index

3 The COMM package

socket-stream

Class

Summary

The socket stream class.
Superclasses

stream
Initargs

:socket

A socket handle.

:direction

One of:input,:output, or:io.

element-type

An element type.

Accessors

socket-stream-socket
Description

Thesocket-stream class implements a buffered stream connected to a socket. The socket direction, specified by:socket, and the direction, specified by:direction, must be passed for a meaningful stream to be constructed. Common Lisp input functions such asread-char will seeend-of-file if the other end of the socket is closed. The:element-type keyword specifies the expected element type of the stream traffic.
Example

The following makes a bidirectional stream connected to a socket specified byhandle.
(make-instance 'comm:socket-stream
               :socket handle
               :direction :io
               :element-type 'base-char)

See also

open-tcp-stream
start-up-server

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker