Base class all data channel services derive from (once on the server side, once on the API side)
Definition at line 83 of file datachannelservicebase.h.
#include <visiontransfer/internal/datachannelservicebase.h>
|
struct | Types |
| Known data channel service types, not all may be active on a specific device. More...
|
|
|
typedef unsigned char | Type |
|
typedef unsigned char | ID |
|
|
ID | getChannelID () const |
|
std::string | getInfoString () const |
|
void | setService (std::weak_ptr< DataChannelServiceBase > serv) |
|
void | setChannelID (ID id) |
|
virtual Type | getChannelType () const =0 |
|
virtual int | handleMessage (DataChannelMessage &message, sockaddr_in *sender)=0 |
| Channel-dependent message handlers in respective channel implementations. More...
|
|
virtual bool | initialize ()=0 |
| When initialize() implementations return false, the service will be deactivated. More...
|
|
virtual int | startService ()=0 |
| startService() implementations can start devices, launch an IO-blocked worker thread etc. More...
|
|
virtual bool | process () |
| A single processing iteration; should be short and must not block. Actual frequency determined by the thread calling DataChannelServiceBase::process() More...
|
|
virtual int | stopService ()=0 |
|
|
int | sendData (unsigned char *data, unsigned int dataSize, sockaddr_in *recipient=nullptr) |
|
◆ handleMessage()
virtual int visiontransfer::internal::DataChannel::handleMessage |
( |
DataChannelMessage & |
message, |
|
|
sockaddr_in * |
sender |
|
) |
| |
|
pure virtual |
◆ initialize()
virtual bool visiontransfer::internal::DataChannel::initialize |
( |
| ) |
|
|
pure virtual |
◆ process()
virtual bool visiontransfer::internal::DataChannel::process |
( |
| ) |
|
|
inlinevirtual |
A single processing iteration; should be short and must not block. Actual frequency determined by the thread calling DataChannelServiceBase::process()
Definition at line 116 of file datachannelservicebase.h.
◆ startService()
virtual int visiontransfer::internal::DataChannel::startService |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: