UDP_SINK_NAME
gr::sync_block
baz_udp_sink.h
size_t size_t UDP_SINK_NAME::d_itemsize d_itemsize UDP_SINK_NAME::d_itemsize
int int UDP_SINK_NAME::d_payload_size d_payload_size UDP_SINK_NAME::d_payload_size
bool bool UDP_SINK_NAME::d_eof d_eof UDP_SINK_NAME::d_eof
int int UDP_SINK_NAME::d_socket d_socket UDP_SINK_NAME::d_socket
bool bool UDP_SINK_NAME::d_connected d_connected UDP_SINK_NAME::d_connected
gr::thread::mutex gr::thread::mutex UDP_SINK_NAME::d_mutex d_mutex UDP_SINK_NAME::d_mutex
bool bool UDP_SINK_NAME::d_bor d_bor UDP_SINK_NAME::d_bor
unsigned short unsigned short UDP_SINK_NAME::d_bor_counter d_bor_counter UDP_SINK_NAME::d_bor_counter
bool bool UDP_SINK_NAME::d_bor_first d_bor_first UDP_SINK_NAME::d_bor_first
unsigned char * unsigned char* UDP_SINK_NAME::d_bor_packet d_bor_packet UDP_SINK_NAME::d_bor_packet
int int UDP_SINK_NAME::d_residual d_residual UDP_SINK_NAME::d_residual
int int UDP_SINK_NAME::d_offset d_offset UDP_SINK_NAME::d_offset
int int UDP_SINK_NAME::d_data_length d_data_length UDP_SINK_NAME::d_data_length
gr::msg_queue::sptr gr::msg_queue::sptr UDP_SINK_NAME::d_status_queue d_status_queue UDP_SINK_NAME::d_status_queue
BAZ_API UDP_SINK_SPTR BAZ_API UDP_SINK_SPTR UDP_SINK_MAKER (size_t itemsize, const char *host, unsigned short port, int payload_size, bool eof, bool bor) UDP_SINK_MAKER UDP_SINK_NAME::UDP_SINK_MAKER size_t itemsize const char * host unsigned short port int payload_size bool eof bool bor
UDP_SINK_NAME::UDP_SINK_NAME
(size_t itemsize, const char *host, unsigned short port, int payload_size, bool eof, bool bor)
UDP_SINK_NAME
UDP_SINK_NAME::UDP_SINK_NAME
size_t itemsize
const char * host
unsigned short port
int payload_size
bool eof
bool bor

UDP Sink Constructor.

itemsize

The size (in bytes) of the item datatype

host

The name or IP address of the receiving host; use NULL or None for no connection

port

Destination port to connect to on receiving host

payload_size

UDP payload size by default set to 1472 = (1500 MTU - (8 byte UDP header) - (20 byte IP header))

eof

Send zero-length packet on disconnect

bor

Enable BorIP encapsulation

bool bool UDP_SINK_NAME::create () create UDP_SINK_NAME::create
void void UDP_SINK_NAME::allocate () allocate UDP_SINK_NAME::allocate
void void UDP_SINK_NAME::destroy () destroy UDP_SINK_NAME::destroy
UDP_SINK_NAME::~UDP_SINK_NAME
()
~UDP_SINK_NAME
UDP_SINK_NAME::~UDP_SINK_NAME
int int UDP_SINK_NAME::payload_size () payload_size UDP_SINK_NAME::payload_size

return the PAYLOAD_SIZE of the socket

void void UDP_SINK_NAME::connect (const char *host, unsigned short port) connect UDP_SINK_NAME::connect const char * host unsigned short port

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.
void void UDP_SINK_NAME::disconnect () disconnect UDP_SINK_NAME::disconnect

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.

void void UDP_SINK_NAME::set_borip (bool enable) set_borip UDP_SINK_NAME::set_borip bool enable
void void UDP_SINK_NAME::set_payload_size (int payload_size) set_payload_size UDP_SINK_NAME::set_payload_size int payload_size
void void UDP_SINK_NAME::set_status_msgq (gr::msg_queue::sptr queue) set_status_msgq UDP_SINK_NAME::set_status_msgq gr::msg_queue::sptr queue
int int UDP_SINK_NAME::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work UDP_SINK_NAME::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items

Write stream to an UDP socket.

itemsize

The size (in bytes) of the item datatype

host

The name or IP address of the receiving host; use NULL or None for no connection

port

Destination port to connect to on receiving host

payload_size

UDP payload size by default set to 1472 = (1500 MTU - (8 byte UDP header) - (20 byte IP header))

eof

Send zero-length packet on disconnect

UDP_SINK_NAME
gr::sync_block
UDP_SINK_NAME
gr::sync_block
- UDP_SINK_NAME
  allocate
- UDP_SINK_NAME
  connect
- UDP_SINK_NAME
  create
- UDP_SINK_NAME
  d_bor
- UDP_SINK_NAME
  d_bor_counter
- UDP_SINK_NAME
  d_bor_first
- UDP_SINK_NAME
  d_bor_packet
- UDP_SINK_NAME
  d_connected
- UDP_SINK_NAME
  d_data_length
- UDP_SINK_NAME
  d_eof
- UDP_SINK_NAME
  d_itemsize
- UDP_SINK_NAME
  d_mutex
- UDP_SINK_NAME
  d_offset
- UDP_SINK_NAME
  d_payload_size
- UDP_SINK_NAME
  d_residual
- UDP_SINK_NAME
  d_socket
- UDP_SINK_NAME
  d_status_queue
- UDP_SINK_NAME
  destroy
- UDP_SINK_NAME
  disconnect
- UDP_SINK_NAME
  payload_size
- UDP_SINK_NAME
  set_borip
- UDP_SINK_NAME
  set_payload_size
- UDP_SINK_NAME
  set_status_msgq
- UDP_SINK_NAME
  UDP_SINK_MAKER
- UDP_SINK_NAME
  UDP_SINK_NAME
- UDP_SINK_NAME
  work
- UDP_SINK_NAME
  ~UDP_SINK_NAME