23 #if (!defined(INCLUDED_GR_UDP_SINK_H) && !defined(IN_GR_BAZ)) || (!defined(INCLUDED_BAZ_UDP_SINK_H) && defined(IN_GR_BAZ)) 25 #define INCLUDED_BAZ_UDP_SINK_H 27 #define INCLUDED_GR_UDP_SINK_H 30 #include <gnuradio/sync_block.h> 31 #include <gnuradio/thread/thread.h> 34 #define UDP_SINK_NAME baz_udp_sink 35 #define UDP_SINK_MAKER baz_make_udp_sink 36 #define UDP_SINK_SPTR baz_udp_sink_sptr 38 #define UDP_SINK_NAME gr_udp_sink 39 #define UDP_SINK_MAKER gr_make_udp_sink 40 #define UDP_SINK_SPTR gr_udp_sink_sptr 46 #define UDP_SINK_STRING _TO_STR(UDP_SINK_NAME) 48 #include <gnuradio/sync_block.h> 49 #include <gnuradio/msg_queue.h> 50 #include <gnuradio/thread/thread.h> 57 const char *host,
unsigned short port,
58 int payload_size=1472,
bool eof=
true,
bool bor=
false);
78 int payload_size,
bool eof,
bool bor);
86 gr::thread::mutex d_mutex;
88 unsigned short d_bor_counter;
90 unsigned char* d_bor_packet;
94 gr::msg_queue::sptr d_status_queue;
110 const char *host,
unsigned short port,
111 int payload_size,
bool eof,
bool bor);
131 void connect(
const char *host,
unsigned short port );
140 void set_borip(
bool enable);
141 void set_payload_size(
int payload_size);
142 void set_status_msgq(gr::msg_queue::sptr queue);
144 int work (
int noutput_items,
145 gr_vector_const_void_star &input_items,
146 gr_vector_void_star &output_items);
#define UDP_SINK_MAKER
Definition: baz_udp_sink.h:39
boost::shared_ptr< UDP_SINK_NAME > UDP_SINK_SPTR
Definition: baz_udp_sink.h:53
int payload_size()
return the PAYLOAD_SIZE of the socket
Definition: baz_udp_sink.h:121
#define UDP_SINK_SPTR
Definition: baz_udp_sink.h:40
Write stream to an UDP socket.
Definition: baz_udp_sink.h:73
#define BAZ_API
Definition: config.h:8
#define UDP_SINK_NAME
Definition: baz_udp_sink.h:38