Alternc
3.2
Alternc logiel libre pour l'hébergement
|
Manage AlternC's virtual machine start/stop using our own inetd-based protocol. More...
Public Member Functions | |
m_lxc () | |
Constructor, initialize the class informations from AlternC's variables. | |
hook_menu () | |
HOOK: add the "Console Access" to AlternC's main menu. | |
hook_admin_del_member () | |
HOOK: remove VM history for AlternC account. | |
start ($login=FALSE, $pass=FALSE, $uid=FALSE) | |
START a Virtual Machine on the remote VM manager for user $login having hashed password $pass and uid $uid. | |
getvm ($login=FALSE) | |
stop () | |
Stop the currently running VM. | |
Public Member Functions inherited from vm | |
start () |
Data Fields | |
$IP | |
$PORT | |
$TIMEOUT = 5 | |
$error = array() |
Private Member Functions | |
sendMessage ($params) | |
Send a message to a remote VM manager instance $params are the parameters to send as serialized data to the listening server. |
Manage AlternC's virtual machine start/stop using our own inetd-based protocol.
getvm | ( | $login = FALSE | ) |
hook_admin_del_member | ( | ) |
hook_menu | ( | ) |
m_lxc | ( | ) |
Constructor, initialize the class informations from AlternC's variables.
Definition at line 45 of file m_lxc.php.
References variable_get().
|
private |
Send a message to a remote VM manager instance $params are the parameters to send as serialized data to the listening server.
Return the unserialized response data, if the message has been sent successfully or FALSE if an error occurred. In that case $error[] is set.
Definition at line 88 of file m_lxc.php.
References $hooks, $p, and isset.
Referenced by getvm(), start(), and stop().
start | ( | $login = FALSE , |
|
$pass = FALSE , |
|||
$uid = FALSE |
|||
) |
START a Virtual Machine on the remote VM manager for user $login having hashed password $pass and uid $uid.
Definition at line 129 of file m_lxc.php.
References $db, $err, $error, $mem, $res, $uid, getvm(), and sendMessage().
stop | ( | ) |