Scieneer Common Lisp 1.3.9 online documentation

ext:create-inet-listener port &optional kind &key host reuse-address backlog search[Function]

Create an IPv4 protocol socket of the given kind, binding it to the given host and port and initializing it to accept connections. The :kind may be either the default :stream or :datagram. The host may be a local host number or host name. The backlog defines the maximum length of the queue of pending connections. When reuse-address is true the socket will succeed in binding to the address except if there is already an active listening socket bound to the address. When search is true, search for an available port starting from the given port. Return a descriptor referencing the socket and the successful port number upon success, otherwise an error is signaled.