Create and initialize a RIV::App object for Listener

This section of the Listener example script creates and initializes a new RIV::App object. Use this part of the example script as a guide to creating and initializing new RIV::App objects in Listener Perl scripts.

The Listener example script creates and initializes a new RIV::App object as follows:

 $app = RIV::App::new($param, "model_listener");  1 

The following list explains the specific numbered item in the previously listed section of the Listener Perl script example:

  1. Creates and initializes a new RIV::App object by calling the RIV::App constructor. This call to the RIV::App constructor takes the following parameters:
    • RIV::Param — Specifies a reference to a RIV::Param object. In this example, the newly created RIV::Param object is returned to the $param variable in a previous call to the RIV::Param constructor.
    • $progname — Specifies a string that uniquely identifies an application. In this example, the application name is identified by the string model_listener.