Alternc
3.2
Alternc logiel libre pour l'hébergement
|
This class handle UPnP forwarding from a IGD/UPnP compliant router you need this only when you are behind a IGD-compliant router each class may exports a hook that defined named port/protocol to forward to the local IP address of the server. More...
Public Member Functions | |
get_forward_list () | |
get the list of current upnp forwards and their status | |
enable_port ($id) | |
enable a upnp port in the upnp table | |
disable_port ($id) | |
disable a upnp port in the upnp table | |
cron () | |
cron launched every minute to check the status of UPnP forwarding |
This class handle UPnP forwarding from a IGD/UPnP compliant router you need this only when you are behind a IGD-compliant router each class may exports a hook that defined named port/protocol to forward to the local IP address of the server.
this class manage the upnp table and its configuration from admin control panel
Definition at line 34 of file m_upnp.php.
cron | ( | ) |
cron launched every minute to check the status of UPnP forwarding
Definition at line 110 of file m_upnp.php.
References $c, $db, $found, $hooks, $i, and $res.
disable_port | ( | $id | ) |
disable a upnp port in the upnp table
integer | the id of the port to disable |
Definition at line 84 of file m_upnp.php.
enable_port | ( | $id | ) |
enable a upnp port in the upnp table
integer | the id of the port to enable |
Definition at line 59 of file m_upnp.php.
get_forward_list | ( | ) |
get the list of current upnp forwards and their status
Definition at line 41 of file m_upnp.php.