Next Previous Contents

13.1 Initialization of SurpriseServer

The SurpriseServer can be invoked from shell in deamon mode or in stdio mode; if none specified then is invoked in auto mode. The syntax is following:

surpriseserver [-D|--daemon] [-s|--stdio] [-h|--help]

Daemon mode

The server starts listening on any nonused port; the number of the used port is reported to the user.

Stdio mode

The server input is read from stdin and server responses to stdout.

Auto mode

If the server input is not a descriptor of a socket file then the server is launched in daemon mode, otherwise it is launched in stdio mode.


Next Previous Contents