TUIO C++ Developer API
TUIO::TcpReceiver Class Reference

#include <TcpReceiver.h>

Inheritance diagram for TUIO::TcpReceiver:
TUIO::OscReceiver

Public Member Functions

 TcpReceiver (int port=3333)
 
 TcpReceiver (const char *host, int port)
 
virtual ~TcpReceiver ()
 
void connect (bool lock=false)
 
void disconnect ()
 
- Public Member Functions inherited from TUIO::OscReceiver
 OscReceiver ()
 
virtual ~OscReceiver ()
 
bool isConnected ()
 
void addTuioClient (TuioClient *client)
 
void ProcessPacket (const char *data, int size, const IpEndpointName &remoteEndpoint)
 

Public Attributes

int tcp_socket
 
std::list< int > tcp_client_list
 

Additional Inherited Members

- Protected Member Functions inherited from TUIO::OscReceiver
void ProcessBundle (const osc::ReceivedBundle &b, const IpEndpointName &remoteEndpoint)
 
void ProcessMessage (const osc::ReceivedMessage &message, const IpEndpointName &remoteEndpoint)
 
- Protected Attributes inherited from TUIO::OscReceiver
std::list< TuioClient * > clientList
 
bool connected
 

Detailed Description

The TcpReceiver provides the OscReceiver functionality for the TCP transport method

Author
Martin Kaltenbrunner
Version
1.1.6

Constructor & Destructor Documentation

◆ TcpReceiver() [1/2]

TcpReceiver::TcpReceiver ( int  port = 3333)

This constructor creates a TcpReceiver instance listening to the provided TCP port

Parameters
portthe number of the TCP port to listen to, defaults to 3333

◆ TcpReceiver() [2/2]

TcpReceiver::TcpReceiver ( const char *  host,
int  port 
)

This constructor creates a TcpReceiver connected to the provided host and TCP port

Parameters
hostthe host name to connect
portthe number of the TCP port to listen to, defaults to 3333

◆ ~TcpReceiver()

TcpReceiver::~TcpReceiver ( )
virtual

The destructor is doing nothing in particular.

Member Function Documentation

◆ connect()

void TcpReceiver::connect ( bool  lock = false)
virtual

The TcpReceiver connects and starts receiving TUIO messages via TCP

Parameters
lockrunning in the background if set to false (default)

Implements TUIO::OscReceiver.

◆ disconnect()

void TcpReceiver::disconnect ( )
virtual

The TcpReceiver disconnects and stops receiving TUIO messages via TCP

Implements TUIO::OscReceiver.


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