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

NAME

FusionInventory::Agent::HTTP:Server - An embedded HTTP server

DESCRIPTION

This is the server used by the agent to listen on the network for messages sent by OCS or GLPI servers.

It is an HTTP server listening on port 62354 (by default). The following requests are accepted:

/status
/deploy
/now

Authentication is based on a token created by the agent, and sent to the server at initial connection. Connection from addresses matching the trust parameter are trusted without token.

METHODS

new(%params)

The constructor. The following parameters are allowed, as keys of the %params hash:

logger

the logger object to use

scheduler

the scheduler object to use

agent

the agent object

htmldir

the directory where HTML templates and static files are stored

ip

the network address to listen to (default: all)

port

the network port to listen to

trust

an IP address or an IP address range from which to trust incoming requests without authentication token (default: none)

terminate

Ensure the listening thread terminates.