#include <WOscTcpServer.h>
Inherits WOscTcpHandler.
Public Member Functions | |
WOscTcpServerHandler (WOscTcpServer *server) | |
Protected Member Functions | |
virtual void | ReceiveThread () |
WOscTcpServer * | GetServer () |
virtual void | HandleOffendingPackets (const char *const data, int dataLen, const WOscException &exception) |
virtual void | HandleNonmatchedMessages (const WOscMessage *msg, const WOscNetReturn *networkReturnAddress) |
Threading, self deleting connection handler. For each client connection a handler gets spawned an is run in a separate thread.
Definition at line 34 of file WOscTcpServer.h.
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.
msg | Pointer to Message which hasn't been processed. | |
networkReturnAddress | Network address of the sender of this message. |
Implements WOscReceiver.
Definition at line 43 of file WOscTcpServer.h.
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.
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.