Public Member Functions | Private Member Functions | Private Attributes | List of all members
udp_bc_broker::UdpRecver Class Reference

#include <recv.h>

Public Member Functions

void receive (boost::function< void(const vector< uint8_t > &)> callBack)
 
 UdpRecver (int port)
 
 ~UdpRecver ()
 

Private Member Functions

void process_msg ()
 

Private Attributes

struct sockaddr_in addrto
 
char * buf
 
boost::function< void(const vector< uint8_t > &)> callback
 
struct sockaddr_in from
 
int len
 
int nlen
 
boost::thread * process_thread_
 
int sock
 

Detailed Description

Definition at line 44 of file recv.h.

Constructor & Destructor Documentation

udp_bc_broker::UdpRecver::UdpRecver ( int  port)

Definition at line 29 of file recv.cpp.

udp_bc_broker::UdpRecver::~UdpRecver ( )

Definition at line 68 of file recv.cpp.

Member Function Documentation

void udp_bc_broker::UdpRecver::process_msg ( )
private

Definition at line 77 of file recv.cpp.

void udp_bc_broker::UdpRecver::receive ( boost::function< void(const vector< uint8_t > &)>  callBack)

Definition at line 95 of file recv.cpp.

Member Data Documentation

struct sockaddr_in udp_bc_broker::UdpRecver::addrto
private

Definition at line 53 of file recv.h.

char* udp_bc_broker::UdpRecver::buf
private

Definition at line 57 of file recv.h.

boost::function<void(const vector<uint8_t>&)> udp_bc_broker::UdpRecver::callback
private

Definition at line 51 of file recv.h.

struct sockaddr_in udp_bc_broker::UdpRecver::from
private

Definition at line 54 of file recv.h.

int udp_bc_broker::UdpRecver::len
private

Definition at line 56 of file recv.h.

int udp_bc_broker::UdpRecver::nlen
private

Definition at line 55 of file recv.h.

boost::thread* udp_bc_broker::UdpRecver::process_thread_
private

Definition at line 58 of file recv.h.

int udp_bc_broker::UdpRecver::sock
private

Definition at line 52 of file recv.h.


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


udp_bc_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:40