All Manuals > LispWorks® User Guide and Reference Manual > 25 TCP and UDP socket communication and SSL

25.2 Connecting to a server

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.

The function create-async-io-state-and-connected-tcp-socket connects to a server and returns a async-io-state object for communication through the socket (see 25.8 Asynchronous I/O).


LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:07