++ed by:
AERO GBOUGARD

2 PAUSE users
2 non-PAUSE users.

FusionInventory Project

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 use the key you want in the msg structure.