API Documentation
Loading...
Searching...
No Matches
SocketIOChannel Class Reference

#include <SocketIOChannel.h>

Collaboration diagram for SocketIOChannel:
[legend]

Public Member Functions

void setRecieveDataCallback (std::function< void(const char *data, uint04 size)> data_callback)
 
void sendData (const char *data, uint04 size)
 
const Stringname () const
 
const UUIDtarget () const
 

Protected Member Functions

 SocketIOChannel (const String &name, UUID target=Constant< UUID >::NaN)
 
 SocketIOChannel (const String &name, std::function< void(const char *data, uint04 size)> data_callback, UUID target=Constant< UUID >::NaN)
 
void setSendDataCallback (std::function< void(const char *data, uint04 size)> data_callback)
 
void recieveData (const char *data, uint04 size)
 

Protected Attributes

std::function< void(const char *data, uint04 size)> m_recieve_data_callback
 
std::function< void(const char *data, uint04 size)> m_send_data_callback
 
UUID m_target
 
String m_name
 

Friends

class SocketIO
 

Constructor & Destructor Documentation

◆ SocketIOChannel() [1/2]

SocketIOChannel ( const String & name,
UUID target = Constant<UUID>::NaN )
inlineexplicitprotected

◆ SocketIOChannel() [2/2]

SocketIOChannel ( const String & name,
std::function< void(const char *data, uint04 size)> data_callback,
UUID target = Constant<UUID>::NaN )
inlineprotected

Member Function Documentation

◆ name()

const String & name ( ) const
inline

◆ recieveData()

void recieveData ( const char * data,
uint04 size )
inlineprotected

◆ sendData()

void sendData ( const char * data,
uint04 size )
inline

◆ setRecieveDataCallback()

void setRecieveDataCallback ( std::function< void(const char *data, uint04 size)> data_callback)
inline

◆ setSendDataCallback()

void setSendDataCallback ( std::function< void(const char *data, uint04 size)> data_callback)
inlineprotected

◆ target()

const UUID & target ( ) const
inline

Friends And Related Symbol Documentation

◆ SocketIO

friend class SocketIO
friend

Member Data Documentation

◆ m_name

String m_name
protected

◆ m_recieve_data_callback

std::function<void(const char* data, uint04 size)> m_recieve_data_callback
protected

◆ m_send_data_callback

std::function<void(const char* data, uint04 size)> m_send_data_callback
protected

◆ m_target

UUID m_target
protected

The documentation for this class was generated from the following file: