This class shares application data between nodes in a cluster where the master encodes and transmits the data and the clients receives and decode the data.
More...
#include <sgct/shareddata.h>
|
| void | setEncodeFunction (std::function< std::vector< std::byte >()> function) |
| void | setDecodeFunction (std::function< void(const std::vector< std::byte > &)> function) |
| void | encode () |
| | This fuction is called internally by SGCT and shouldn't be used by the user.
|
| void | decode (const char *receivedData, int receivedLength) |
| | This function is called internally by SGCT and shouldn't be used by the user.
|
| unsigned char * | dataBlock () |
| int | dataSize () |
| int | bufferSize () |
This class shares application data between nodes in a cluster where the master encodes and transmits the data and the clients receives and decode the data.
◆ bufferSize()
| int sgct::SharedData::bufferSize |
( |
| ) |
|
◆ dataBlock()
| unsigned char * sgct::SharedData::dataBlock |
( |
| ) |
|
◆ dataSize()
| int sgct::SharedData::dataSize |
( |
| ) |
|
◆ decode()
| void sgct::SharedData::decode |
( |
const char * | receivedData, |
|
|
int | receivedLength ) |
This function is called internally by SGCT and shouldn't be used by the user.
◆ destroy()
| void sgct::SharedData::destroy |
( |
| ) |
|
|
static |
◆ encode()
| void sgct::SharedData::encode |
( |
| ) |
|
This fuction is called internally by SGCT and shouldn't be used by the user.
◆ instance()
| SharedData & sgct::SharedData::instance |
( |
| ) |
|
|
static |
◆ setDecodeFunction()
| void sgct::SharedData::setDecodeFunction |
( |
std::function< void(const std::vector< std::byte > &)> | function | ) |
|
◆ setEncodeFunction()
| void sgct::SharedData::setEncodeFunction |
( |
std::function< std::vector< std::byte >()> | function | ) |
|
The documentation for this class was generated from the following file: