Audio_PureData-0.10.0/Audio_PureData/demo-server.php File Reference


Functions

 example_function (&$serverHandler, $arr)

Variables

 $netReceive = & new Audio_PureData_NetReceive('localhost', 3005, 3006)
 $callback = 'example_function'

Detailed Description

Simple PHP receive example. Receives data form PD to PHP 1) Start this PHP script on the UNIX command line chmod u+x demo-server.php ./demo-server.php 2) Open the demo-server-sender.pd patch with Pure Data. 3) Send data using the Pure Data patch and see. PHP answers.

Function Documentation

example_function &$  serverHandler,
arr
 

Example callback function

Asnwers back the value to Pure Data

All callback functions that you create must match this signature

Parameters:
$serverHandler object Audio_PureData_ServerHandler
$arr array The FUDI message, as an array containing usually at least one string.


Variable Documentation

$callback = 'example_function'
 

Adding a callback function The 2nd argument must be a variable

$netReceive = & new Audio_PureData_NetReceive('localhost', 3005, 3006)
 

host, receive port, send port


Generated on Sun Jul 16 03:41:39 2006 for Audio_PureData by  doxygen 1.4.6