#include <multicast_packet.hpp>
Describes a received multicast packet.
- Examples:
- simple_receiver.cpp.
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.
- Parameters
-
source | the source of this packet |
size | the size of buf |
buf | the data of this packet |
- Warning
- multicast_packet takes ownership of
buf
.
const void * hamcast::multicast_packet::data |
( |
| ) |
const |
Get the content/data of the packet.
- Returns
- A pointer to the internal C-buffer.
- Examples:
- simple_receiver.cpp.
bool hamcast::multicast_packet::empty |
( |
| ) |
const |
Check if this packet is empty.
- Returns
true
if size() == 0
; otherwise false
.
const uri & hamcast::multicast_packet::from |
( |
| ) |
const |
Get the source of this packet.
- Returns
- The source group as uri object.
boost::uint32_t hamcast::multicast_packet::size |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- hamcast/multicast_packet.hpp
- src/multicast_packet.cpp