2008-09-10 05:42:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
function SendData($Data)
|
|
|
|
{
|
2008-09-10 17:43:25 +02:00
|
|
|
include("./config_MessegeServer.php");
|
2008-09-10 05:42:44 +02:00
|
|
|
// Create a UDP socket
|
|
|
|
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
|
|
|
|
//send packed
|
|
|
|
socket_sendto($sock, $Data, 9999, 0x4, SERVER_ADDRESS, SERVER_PORT);
|
|
|
|
}
|
|
|
|
|
|
|
|
function SendMessageJabber($Adresse, $Nachricht)
|
|
|
|
{
|
|
|
|
SendData( "#message $Adresse $Nachricht");
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|