return $component["data"];
}
- function sendReceiveIPC($message_type, $message) {
- global $MSG_QUEUE_KEY_ID_SERVER, $MSG_QUEUE_KEY_ID_CLIENT;
-
-
- if(!msg_queue_exists($MSG_QUEUE_KEY_ID_SERVER)) {
- return false;
- }
-
- if(!msg_queue_exists($MSG_QUEUE_KEY_ID_CLIENT)) {
- return false;
- }
- // TODO we need to setup a client queue sem lock here
-
- $cl_queue = msg_get_queue($MSG_QUEUE_KEY_ID_CLIENT);
- $sr_queue = msg_get_queue($MSG_QUEUE_KEY_ID_SERVER);
-
- msg_send($sr_queue, $message_type, $message, true, true, $msg_err);
- msg_receive($cl_queue, 0, $msg_type, 131072, $msg);
-
- return $msg;
- }
-
function addRadiusClient($clientname, $clientip, $clientsecret, $clientdesc) {
$message["clientname"] = $clientname;