|
TUIO C++ Developer API
|
#include <OscReceiver.h>
Public Member Functions | |
| OscReceiver () | |
| virtual | ~OscReceiver () |
| virtual void | connect (bool lock=false)=0 |
| virtual void | disconnect ()=0 |
| bool | isConnected () |
| void | addTuioClient (TuioClient *client) |
| void | ProcessPacket (const char *data, int size, const IpEndpointName &remoteEndpoint) |
Protected Attributes | |
| std::list< TuioClient * > | clientList |
| bool | connected |
The OscReceiver is the base class for the various OSC transport methods such as UDP, TCP ...
|
inline |
The constructor is doing nothing in particular.
|
inlinevirtual |
The destructor is doing nothing in particular.
| void OscReceiver::addTuioClient | ( | TuioClient * | client | ) |
Attaches the provided TuioClient to this OscReceiver
| client | a pointer to the TuioClient to attach |
|
pure virtual |
The OscReceiver connects and starts receiving TUIO messages via OSC
| lock | running in the background if set to false (default) |
Implemented in TUIO::TcpReceiver, and TUIO::UdpReceiver.
|
pure virtual |
The OscReceiver disconnects and stops receiving TUIO messages via OSC
Implemented in TUIO::TcpReceiver, and TUIO::UdpReceiver.
| bool OscReceiver::isConnected | ( | ) |
Returns true if this OscReceiver is currently connected.
| void OscReceiver::ProcessPacket | ( | const char * | data, |
| int | size, | ||
| const IpEndpointName & | remoteEndpoint | ||
| ) |
The OSC callback method where the incoming OSC data is received
| data | the received OSC data |
| size | the size of the received OSC data |
| remoteEndpoint | the origin of the received OSC data |