Hello, I've found this php script for sending OSC packets:
http://www.a2hd.com/software/OSC.phps
i've modified the test (at the end of the script) for avoiding errors: _____________________________________________________
/** Run some tests to make sure the library behaves in a sane way. */ function test_osc_lib() {
$c = new OSCClient();
$c->set_destination("localhost", 3333);
/**
$m1 = new OSCMessage("/test", array(new Timetag(3294967295, 5), new Infinitum(), new Blob("aoeuaoeu!")));
$m1->add_arg(28658.93, "d");
*/
$m2 = new OSCMessage("/bar", array(test, one, two));
$b = new OSCBundle();
$b->add_datagram($m1);
$b->add_datagram($m2);
$b2 = new OSCBundle(array($m1, $b));
//echo $b2->get_human_readable();
//echo $m1->get_human_readable();
$c->send($m2);
}
// Uncomment to run the test test_osc_lib();
?> ___________________________________________________
For testing it, just load attached patch and
run the PHP script with a server that allows socket_create()
Patco.
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
#N canvas 0 0 454 304 12; #X obj 125 92 dumpOSC 3333; #X obj 121 151 OSCroute /bar; #X obj 118 214 print bar; #X obj 248 152 print dumped; #X text 69 26 receive messages sent by OSC.php; #X connect 0 0 3 0; #X connect 0 0 1 0; #X connect 1 0 2 0;