23#ifndef INCLUDED_GR_UDP_SOURCE_H
24#define INCLUDED_GR_UDP_SOURCE_H
40 typedef boost::shared_ptr<udp_source>
sptr;
56 const std::string& host,
58 int payload_size = 1472,
69 virtual void connect(
const std::string& host,
int port) = 0;
Read stream from an UDP socket.
Definition udp_source.h:37
virtual void connect(const std::string &host, int port)=0
Change the connection to a new destination.
virtual int get_port()=0
return the port number of the socket
static sptr make(size_t itemsize, const std::string &host, int port, int payload_size=1472, bool eof=true)
UDP Source Constructor.
virtual int payload_size()=0
return the PAYLOAD_SIZE of the socket
virtual void disconnect()=0
Cut the connection if we have one set up.
boost::shared_ptr< udp_source > sptr
Definition udp_source.h:40
synchronous 1:1 input to output with history
Definition sync_block.h:38
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46