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

NextPrevUpTopContentsIndex

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.

25.2.1 Examples

For examples illustrating simple write and read on a socket, see these files in lib/7-0-0-0/examples

capi/applications/chat.lisp
capi/applications/chat-client.lisp

LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex