Audio_PureData_NetSend Class Reference

List of all members.

Public Member Functions

 Audio_PureData_NetSend ($host, $port, $udp=FALSE)
 setVerbose ($mode=TRUE)
 send ($msg)
 error ($msg)

Public Attributes

 $_verbose = FALSE
 $_send_socket

Detailed Description

One way communication with Pure Data. From the web server to [netreceive].

Creates a client.


Constructor & Destructor Documentation

Audio_PureData_NetSend::Audio_PureData_NetSend host,
port,
udp = FALSE
 

Creates the TCP client socket. This sends the data to PD.

Parameters:
string $type Either 'fork' or 'sequential'
string $host
int $port
boolean $udp Defaults to TCP. No UDP support for now.


Member Function Documentation

Audio_PureData_NetSend::error msg  ) 
 

Sends an error message to Pure Data

Parameters:
$msg string

Audio_PureData_NetSend::send msg  ) 
 

Sends a message to PureData's [netreceive].

The argument can be an array or a string. It will be converted to a PD list or atom.

Parameters:
array|string|float $msg
Todo:
Remove forbidden characters.

Audio_PureData_NetSend::setVerbose mode = TRUE  ) 
 

Parameters:
boolean $mode Sets the debug mode on or off


The documentation for this class was generated from the following file:
Generated on Sun Jul 16 03:41:39 2006 for Audio_PureData by  doxygen 1.4.6