Scieneer Common Lisp 1.3.9 online documentation

ext:connect-to-inet-socket host port &key kind timeout local-host local-port[Function]

Create an endpoint for communication in the IPv4 protocol family, and connect to the given host and port. The host may be an address string or an IP address in host byte order. The :kind may be either the default :stream or :datagram. The timeout, if supplied, is the number of seconds to wait before giving up and signaling an error. The local-host may be an address string or an IP address in host byte order and if supplied the socket is given this host address. The local-port may be an integer and if supplied the socket is given this port. Return a descriptor referencing the socket upon success otherwise an error is signaled.