startServer(host, port, app) startPipeServer(name, mask, app)
"0.0.0.0" to listen on
all IP addresses.NULL and non-negative, this
numeric value is used to temporarily modify the process's
umask while the domain socket is being created. To ensure
that only root can access the domain socket, use
strtoi("777", 8); or stopServer to shut the server down.startServer binds the specified port, but no
connections are actually accepted. See
service, which should be called repeatedly
in order to actually accept and handle connections. If
the port cannot be bound (most likely due to permissions
or because it is already bound), an error is raised. The app parameter is where your application logic
will be provided to the server. This can be a list,
environment, or reference class that contains the
following named functions/methods:
[object Object],[object Object],[object Object]
The startPipeServer variant can be used instead of
startServer to listen on a Unix domain socket or
named pipe rather than a TCP socket (this is not common).
runServer