The function open-tcp-stream connects to a server and returns a stream (of type socket-stream). The stream is then used for communication through the socket using the standard Lisp I/O functions.
connect-to-tcp-server can also be used, especially if you want to subclass socket-stream.
LispWorks User Guide and Reference Manual - 21 Dec 2011