WOscTcpServerHandler Class Reference

#include <WOscTcpServer.h>

Inherits WOscTcpHandler.

List of all members.

Public Member Functions

 WOscTcpServerHandler (WOscTcpServer *server)

Protected Member Functions

virtual void ReceiveThread ()
WOscTcpServerGetServer ()
virtual void HandleOffendingPackets (const char *const data, int dataLen, const WOscException &exception)
virtual void HandleNonmatchedMessages (const WOscMessage *msg, const WOscNetReturn *networkReturnAddress)

Detailed Description

Threading, self deleting connection handler. For each client connection a handler gets spawned an is run in a separate thread.

Examples:

WOscStreamingServer.cpp.

Definition at line 34 of file WOscTcpServer.h.


Member Function Documentation

virtual void WOscTcpServerHandler::HandleNonmatchedMessages ( const WOscMessage msg,
const WOscNetReturn networkReturnAddress 
) [inline, protected, virtual]

Handler for OSC messages which didn't match any address in the OSC address space. The user can define an own action by overriding this pure virtual function.

Parameters:
msg Pointer to Message which hasn't been processed.
networkReturnAddress Network address of the sender of this message.

Implements WOscReceiver.

Examples:
WOscStreamingServer.cpp.

Definition at line 43 of file WOscTcpServer.h.

00044                                                        { }

virtual void WOscTcpServerHandler::HandleOffendingPackets ( const char *const   data,
int  dataLen,
const WOscException exception 
) [inline, protected, virtual]

Handler for packets which caused either an internal exception or another error. The user can decide what to do with such packets by overriding this function.

Parameters:
data Pointer to the buffer containing the offending packet data.
dataLen Lenght of the buffer containg the offending packet data.
exception Exception which has been generated during processing this packet.

Implements WOscReceiver.

Definition at line 41 of file WOscTcpServer.h.

00042                                             { }


The documentation for this class was generated from the following files:
Generated on Sat Oct 23 03:05:59 2010 for WOscLib by  doxygen 1.6.3