23#ifndef INCLUDED_GR_UDP_SINK_H
24#define INCLUDED_GR_UDP_SINK_H
40 typedef boost::shared_ptr<udp_sink>
sptr;
54 const std::string& host,
56 int payload_size = 1472,
70 virtual void connect(
const std::string& host,
int port) = 0;
Write stream to an UDP socket.
Definition: udp_sink.h:37
virtual void connect(const std::string &host, int port)=0
Change the connection to a new destination.
virtual void disconnect()=0
Send zero-length packet (if eof is requested) then stop sending.
static sptr make(size_t itemsize, const std::string &host, int port, int payload_size=1472, bool eof=true)
UDP Sink Constructor.
virtual int payload_size()=0
return the PAYLOAD_SIZE of the socket
boost::shared_ptr< udp_sink > sptr
Definition: udp_sink.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
BLOCKS_API size_t itemsize(vector_type type)
Include this header to use the message passing features.
Definition: basic_block.h:45