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 connection source address: trusted requests are accepted, other are rejected.

METHODS

new(%params)

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

logger

the logger object to use

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 (default: none)

terminate

Ensure the listening thread terminates.