FusionInventory::Agent::XML::Query::SimpleMessage.3pm

Langue: en

Version: 2010-05-08 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

Sommaire

NAME

FusionInventory::Agent::XML::Query::SimpleMessage a Generic message container

DESCRIPTION

This class provides a mechanism to send generic messages to the server.
         my $xmlMsg = FusionInventory::Agent::XML::Query::SimpleMessage->new(
             {
                 config => $config,
                 logger => $logger,
                 target => $target,
                 msg    => {
                     QUERY => 'DOWNLOAD',
                     FOO    => 'foo',
                     BAR   => 'my Message',
                 },
             }
         );
         $network->send( { message => $xmlMsg }
 
 

The msg parameter only requires the QUERY key to identify the type of message. You can the key you want in the msg structure.