hmbdc
simplify-high-performance-messaging-programming
|
impl class More...
#include <RecvTransportEngine.hpp>
Public Member Functions | |
RecvTransportImpl (Config const &cfg, OutputBuffer &outputBuffer, MsgArbitrator arb=NoOpArb()) | |
ctor More... | |
void | start () |
start the show by schedule the mesage recv | |
void | handleMessageCb (Subscribe const &t) |
only used by MH | |
void | handleMessageCb (Unsubscribe const &t) |
only used by MH | |
impl class
OutputBuffer | type of buffer to hold resulting network messages |
MsgArbitrator | arbitrator to decide drop or keep messages, suited to arbitrate between different recv transport. By default, keeping all |
|
inline |
ctor
io_service could be passed in by user, in this case NO more than two threads should power this io_service instance since that would violate the thread garantee of Client, which is no callbacks are called in parallel
cfg | specify the details of the udpcast transport |
outputBuffer | holding the results |
arb | arbitrator instance to decide which messages to drop and keep; it supports either raw udp packet (BEFORE topic filtering) or hmbdc udpcast message (AFTER topic filtering) level arbitration depending on which one of int operator()(void* bytes, size_t len) or int operator()(TransportMessageHeader const* header) presents in the arb |