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:
- Creates and initializes a new
RIV::Appobject by calling theRIV::Appconstructor. This call to theRIV::Appconstructor takes the following parameters:-
RIV::Param— Specifies a reference to aRIV::Paramobject. In this example, the newly createdRIV::Paramobject is returned to the$paramvariable in a previous call to theRIV::Paramconstructor. -
$progname— Specifies a string that uniquely identifies an application. In this example, the application name is identified by the stringmodel_listener.
-