The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.