Next: , Previous: , Up: Networking Support   [Contents][Index]


10.3 Binding to Interfaces

In this section, functions for creating sockets bound to an interface are documented.

Function: extensions:create-inet-listener port &optional kind &key :reuse-address :backlog :host

Creates a socket and binds it to a port, prepared to receive connections of kind kind (which defaults to :stream), queuing up to backlog of them. If :reuse-address T is used, the option SO_REUSEADDR is used in the call to bind. If no value is given for :host, it will try to bind to the default IP address of the machine where the Lisp process is running.

Function: extensions:create-unix-listener path &optional kind &key :backlog

Creates a socket and binds it to the file name given by path, prepared to receive connections of kind kind (which defaults to :stream), queuing up to backlog of them.