Allegro CL has an implemention of this in the function
OPEN-NETWORK-STREAM:
(defun open-network-stream (&key host port socket-file)
"Open a stream to a port, which is a TCP/IP communication channel. There
are two types of ports supported, UNIX and INTERNET domain. The domain is
chosen based on the keyword arguments supplied:
For internet domain:
HOST is the string host name or an integer internet address.
PORT is the string service name or a port number.
For Unix domain:
SOCKET-FILE is the string pathname of the socket."
)
The source code for this is distributed with our emacs-lisp interface
(there was a recently release, posted to gnu.emacs.sources). It uses
our underlying stream implementation, but it might be useful if Lucid
provides a similar substrate.
--
Kevin Layer, Franz Inc. 1995 University Avenue, Suite 275
·····@Franz.COM (internet) Berkeley, CA 94704
uunet!franz!layer (uucp) Phone: (415) 548-3600; FAX: (415) 548-8253