GNU Radio 3.6.5.1 C++ API
|
#include <udp_sink_impl.h>
Public Member Functions | |
udp_sink_impl (size_t itemsize, const std::string &host, int port, int payload_size, bool eof) | |
~udp_sink_impl () | |
int | payload_size () |
return the PAYLOAD_SIZE of the socket | |
void | connect (const std::string &host, int port) |
Change the connection to a new destination. | |
void | disconnect () |
Send zero-length packet (if eof is requested) then stop sending. | |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you |
Additional Inherited Members | |
![]() | |
typedef boost::shared_ptr < udp_sink > | sptr |
![]() | |
static sptr | make (size_t itemsize, const std::string &host, int port, int payload_size=1472, bool eof=true) |
UDP Sink Constructor. | |
![]() | |
enum | vcolor { WHITE, GREY, BLACK } |
![]() | |
gr_sync_block (void) | |
gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature) | |
![]() | |
std::vector< long > | d_max_output_buffer |
std::vector< long > | d_min_output_buffer |
gruel::mutex | d_setlock |
gr_logger_ptr | d_logger |
gr_logger_ptr | d_debug_logger |
gr::blocks::udp_sink_impl::udp_sink_impl | ( | size_t | itemsize, |
const std::string & | host, | ||
int | port, | ||
int | payload_size, | ||
bool | eof | ||
) |
gr::blocks::udp_sink_impl::~udp_sink_impl | ( | ) |
|
virtual |
Change the connection to a new destination.
host | The name or IP address of the receiving host; use NULL or None to break the connection without closing |
port | Destination port to connect to on receiving host |
Calls disconnect() to terminate any current connection first.
Implements gr::blocks::udp_sink.
|
virtual |
Send zero-length packet (if eof is requested) then stop sending.
Zero-byte packets can be interpreted as EOF by gr_udp_source. Note that disconnect occurs automatically when the sink is destroyed, but not when its top_block stops.
Implements gr::blocks::udp_sink.
|
inlinevirtual |
return the PAYLOAD_SIZE of the socket
Implements gr::blocks::udp_sink.
|
virtual |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.