test_recv.cpp
Go to the documentation of this file.
00001 
00023 #include "udp_bc_broker/recv.h"
00024 
00025 using namespace std;
00026 
00027 void callback(const vector<uint8_t>& msg)
00028 {
00029     for(int i = 0; i < msg.size(); i++) {
00030         std::cout<<(char)msg[i];
00031     }
00032     std::cout<<std::endl;
00033 }
00034 
00035 int main()
00036 {
00037     udp_bc_broker::UdpRecver recver(12321);
00038     recver.receive(callback);
00039 
00040     while(true) {
00041         sleep (1);
00042     }
00043 }


udp_bc_broker
Author(s):
autogenerated on Thu Jun 6 2019 18:52:50