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:
Authentication is based on connection source address: trusted requests are accepted, other are rejected.
CLASS 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)
INSTANCE METHODS
$server->init()
Start the server internal listener.
$server->handleRequests()
Check if there any incoming request, and honours it if needed.