Describes a received multicast packet. More...
#include <multicast_packet.hpp>
Public Member Functions | |
multicast_packet () | |
multicast_packet (const uri &source, boost::uint32_t size, void *buf) | |
const uri & | from () const |
const void * | data () const |
boost::uint32_t | size () const |
bool | empty () const |
Describes a received multicast packet.
hamcast::multicast_packet::multicast_packet | ( | ) |
Construct an empty multicast packet.
hamcast::multicast_packet::multicast_packet | ( | const uri & | source, | |
boost::uint32_t | size, | |||
void * | buf | |||
) |
Construct a new multicast packet.
source | the source of this packet | |
size | the size of buf | |
buf | the data of this packet |
buf
. const void * hamcast::multicast_packet::data | ( | ) | const |
Get the content/data of the packet.
bool hamcast::multicast_packet::empty | ( | ) | const |
Check if this packet is empty.
true
if size() == 0
; otherwise false
. const uri & hamcast::multicast_packet::from | ( | ) | const |
Get the source of this packet.
boost::uint32_t hamcast::multicast_packet::size | ( | ) | const |