GNU Radio's SATNOGS Package
|
UDP message/command accepter. More...
#include <udp_msg_source.h>
Public Types | |
typedef boost::shared_ptr< udp_msg_source > | sptr |
Static Public Member Functions | |
static sptr | make (const std::string &addr, uint16_t port, size_t mtu=1500, size_t type=0) |
UDP message/command accepter.
This block received UDP messages from localhost or other network hosts and produces PMT messages.
typedef boost::shared_ptr<udp_msg_source> gr::satnogs::udp_msg_source::sptr |
|
static |
Creates a UDP message accepter block
addr | the address to bind the UDP socket |
port | the UDP port to wait for packets |
mtu | the maximum MTU. Used to pre-allocate a maximum packet size |
type | code of the data type of each message. 0 corresponds to raw bytes, 1 to 32-bit signed integers and 2 to 3 bit unsigned integers. |