You need to create an instance of the NetworkServerControl class if you are using the API. There are four constructors for this class:
This constructor
creates an instance that listens either on the default port (1527) or the
port that is set by the
This constructor creates an instance that listens on
the specified
If a network server should run with user authentication, certain operations like NetworkServerControl.shutdown() require that you provide user credentials. This constructor creates an instance with user credentials, which are then used for operations that require them. In all other aspects, this constructor behaves like NetworkServerControl().
This constructor creates an instance with user credentials, which are then used for operations that require them. In all other aspects, this constructor behaves like NetworkServerControl(InetAddress address, int portNumber).