inet-server

Name

inet-server -- Create an internet server.

Type: function

Synopsis

inet-server( port, fd);

Arguments

port

An IP port as a <fixnum>, or a socket address as a <inet-socket-addr>.

Return Values

fd

An instance of <fixnum>

Description

This procedure establishes a socket on the given port to listen for IP connections. If the port is a number, then connections to any IP address on the local machine will be accepted. Otherwise, only connections to the IP address and port specified in the <inet-socket-addr> will be accepted.

The listen queue is set to 3.

Note: If threads are being used, the function is preferred.