#include <radio.hpp>
|
static RadioMap & | radios () |
|
template<typename C > |
static void | registerSubscriber (const std::string &name, const unsigned int &id, void(C::*processPacket)(const unsigned char *, const unsigned int &), C &s) |
| Register a callback with the specified demux. More...
|
|
static int | send (const std::string &name, const unsigned int &id, const mm_messages::ByteArray &msg_buffer) |
|
static void | shutdown () |
|
static void | shutdown (const std::string &name) |
|
static void | startClient (const std::string &name, const std::string &url, const mm_messages::Verbosity::Level &verbosity=mm_messages::Verbosity::QUIET) |
| Pre-establish named connections for a client. More...
|
|
static void | startServer (const std::string &name, const std::string &url, const mm_messages::Verbosity::Level &verbosity=mm_messages::Verbosity::QUIET) |
| Pre-establish named connections for a server. More...
|
|
static void | unregisterSubscriber (const std::string &name, const unsigned int &id) |
|
Definition at line 105 of file radio.hpp.
template<typename C >
static void mm_radio::Radio::registerSubscriber |
( |
const std::string & |
name, |
|
|
const unsigned int & |
id, |
|
|
void(C::*)(const unsigned char *, const unsigned int &) |
processPacket, |
|
|
C & |
s |
|
) |
| |
|
inlinestatic |
Register a callback with the specified demux.
Basically we just need a function that can handle const unsigned char* buffers.
Could make this more specific and specify 'template<typename DataType>' with 'Subscriber<DataType>' instead of 'C', but this keeps it open for creating new subscriber types.
- Parameters
-
Definition at line 153 of file radio.hpp.
int mm_radio::Radio::send |
( |
const std::string & |
name, |
|
|
const unsigned int & |
id, |
|
|
const mm_messages::ByteArray & |
msg_buffer |
|
) |
| |
|
static |
void mm_radio::Radio::shutdown |
( |
| ) |
|
|
static |
void mm_radio::Radio::shutdown |
( |
const std::string & |
name | ) |
|
|
static |
Pre-establish named connections for a client.
- Parameters
-
Definition at line 234 of file lib/radio.cpp.
Pre-establish named connections for a server.
- Parameters
-
Definition at line 212 of file lib/radio.cpp.
void mm_radio::Radio::unregisterSubscriber |
( |
const std::string & |
name, |
|
|
const unsigned int & |
id |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: