#include <demux.hpp>
Public Member Functions | |
| MessageDemux (const std::string &name, const std::string &url, const mm_messages::Verbosity::Level &verbosity=mm_messages::Verbosity::QUIET, const bool bind=false) | |
| MessageDemux (const MessageDemux &other) | |
| template<typename C > | |
| void | registerSubscriber (const unsigned int &id, void(C::*processPacket)(const unsigned char *, const unsigned int &), C &s) |
| void | shutdown () |
| void | spin () |
| void | unregisterSubscriber (const unsigned int &id) |
| ~MessageDemux () | |
Private Types | |
| typedef ecl::BinaryFunction< const unsigned char *, const unsigned int &, void > * | BufferCallbackFunction |
| typedef std::map< unsigned int, BufferCallbackFunction > | SubscriberMap |
| typedef std::map< unsigned int, BufferCallbackFunction >::const_iterator | SubscriberMapConstIterator |
| typedef std::map< unsigned int, BufferCallbackFunction >::iterator | SubscriberMapIterator |
| typedef std::pair< unsigned int, BufferCallbackFunction > | SubscriberMapPair |
| typedef std::pair< std::map< unsigned int, BufferCallbackFunction >::iterator, bool > | SubscriberMapResultPair |
Private Attributes | |
| int | endpoint_id |
| ecl::Mutex | mutex |
| std::string | name |
| bool | shutdown_requested |
| int | socket |
| SubscriberMap | subscribers |
| ecl::Thread | thread |
| std::string | url |
| mm_messages::Verbosity::Level | verbosity |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| mm_mux_demux::impl::MessageDemux::MessageDemux | ( | const std::string & | name, |
| const std::string & | url, | ||
| const mm_messages::Verbosity::Level & | verbosity = mm_messages::Verbosity::QUIET, |
||
| const bool | bind = false |
||
| ) |
| mm_mux_demux::impl::MessageDemux::MessageDemux | ( | const MessageDemux & | other | ) |
|
inline |
| void mm_mux_demux::impl::MessageDemux::shutdown | ( | ) |
| void mm_mux_demux::impl::MessageDemux::unregisterSubscriber | ( | const unsigned int & | id | ) |
|
private |
|
private |
|
private |
|
private |