open-server-socket

Name

open-server-socket -- Create a TCP server (listening) socket

Type: function

Synopsis

open-server-socket( port, socket);

Arguments

port

An instance of <fixnum> or <inet-socket-addr>

Return Values

socket

An instance of <server-socket>

Description

Creates a socket object which listens on the given port.

If the port argument is an integer, then it represents a TCP port number and in which case the socket is bound to IN_ADDR_ANY and the socket will accept connections on any IP address. The port argument may also be a <inet-socket-addr>, in which case the socket will accept connections only on the particular IP address and port.