TUIO C++ Developer API
TUIO::OscSender Class Referenceabstract

#include <OscSender.h>

Inheritance diagram for TUIO::OscSender:
TUIO::FlashSender TUIO::TcpSender TUIO::UdpSender TUIO::WebSockSender

Public Member Functions

 OscSender ()
 
virtual ~OscSender ()
 
virtual bool sendOscPacket (osc::OutboundPacketStream *bundle)=0
 
virtual bool isConnected ()=0
 
bool isLocal ()
 
int getBufferSize ()
 
virtual const char * tuio_type ()=0
 

Protected Attributes

unsigned int buffer_size
 
bool local
 

Detailed Description

The OscSender class is the base class for the various OSC transport methods such as UDP, TCP ...

Author
Martin Kaltenbrunner
Version
1.1.6

Constructor & Destructor Documentation

◆ OscSender()

TUIO::OscSender::OscSender ( )
inline

The constructor is doing nothing in particular.

◆ ~OscSender()

virtual TUIO::OscSender::~OscSender ( )
inlinevirtual

The destructor is doing nothing in particular.

Member Function Documentation

◆ getBufferSize()

int TUIO::OscSender::getBufferSize ( )
inline

This method returns the maximum bundle size in bytes

Returns
the maximum bundle size in bytes

◆ isConnected()

virtual bool TUIO::OscSender::isConnected ( )
pure virtual

This method returns the connection state

Returns
true if the connection is alive

Implemented in TUIO::FlashSender, TUIO::TcpSender, and TUIO::UdpSender.

◆ isLocal()

bool TUIO::OscSender::isLocal ( )
inline

This method returns if this OscSender delivers locally

Returns
true if this OscSender delivers locally

◆ sendOscPacket()

virtual bool TUIO::OscSender::sendOscPacket ( osc::OutboundPacketStream *  bundle)
pure virtual

This method delivers the provided OSC data

Parameters
*bundlethe OSC stream to deliver
Returns
true if the data was delivered successfully

Implemented in TUIO::FlashSender, TUIO::WebSockSender, TUIO::TcpSender, and TUIO::UdpSender.


The documentation for this class was generated from the following file: