SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
wonder::VisualStreamReceiver::PingHandler Class Referenceabstract

Another listener interface especially for incoming ping messages. More...

#include <VisualStreamReceiver.h>

Inheritance diagram for wonder::VisualStreamReceiver::PingHandler:
Inheritance graph
[legend]

Public Member Functions

virtual ~PingHandler ()
 
virtual int onStreamVisualPing (int pingCount, OscSender *replyTo)=0
 On receiving the /WONDER/stream/visual/ping message, the VisualStreamReceiver must call this method. More...
 

Detailed Description

Another listener interface especially for incoming ping messages.

This is seperated from the general Listener as one might want to separate the connection control seperately from the connection's communication content.

Constructor & Destructor Documentation

virtual wonder::VisualStreamReceiver::PingHandler::~PingHandler ( )
inlinevirtual

Member Function Documentation

virtual int wonder::VisualStreamReceiver::PingHandler::onStreamVisualPing ( int  pingCount,
OscSender replyTo 
)
pure virtual

On receiving the /WONDER/stream/visual/ping message, the VisualStreamReceiver must call this method.

The VisualStreamReceiver may delete the OscSender replyTo after calling this method, so the PingHandler may not store it for further use. For each incoming ping message, a pong message must be sent as reply.

Parameters
pingCountA value that must be sent back with the pong reply.
replyToAn OscSender that sends to the Address where the ping message was recieved from.
Warning
For this cWONDER to send these messages, an instance of the time base helper application jfWONDER must be running and connected to cWONDER. Generally, the WONDER system can be run without jfWONDER running - in that case, there is no time base and no ping messages will be sent. Hence, not reaceiving any ping messages is not euqivalent to not receiving the corresponding stream at all.