Previous | Up | Next |
Create a new Tcp-Ip server on a specific port number. For each incoming connection, a channel will be automatically created, based on the inherited environment, and the script will be executed immediatly within this new channel.Parameters
Srv _setserver ( Env _environment_ I _port_ S _script_ )
Return value
_environment_ environment that is inherited by each channel created from this server.nil means the minimal environment. _port_ port number. On some Operating System (such as Unix), standard port numbers (unde 1024) are not available for any user. _script_ script to execute on each channel created from this server.
new server