UDP Sink: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(→‎Source Files: Updated source links)
Line 30: Line 30:


; Public header files
; Public header files
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/include/gnuradio/network/udp_sink.h TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/include/gnuradio/network/udp_sink.h 3]


; Block definition
; Block definition
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/grc/network_udp_sink.block.yml 3]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/grc/network_udp_sink.block.yml 3]

Revision as of 08:20, 18 December 2020

Write stream to an UDP socket. Can be used with UDP Source from another flowgraph or just an external application.

Parameters

IP Address
The name or IP address of the transmitting host; can be NULL, None, or "0.0.0.0" to allow reading from any interface on the host
Port
The port number on which to receive data; use 0 to have the system assign an unused port number
Payload Size
UDP payload size by default set to 1472 = (1500 MTU - (8 byte UDP header) - (20 byte IP header))
Null Packet is EOF
Interpret zero-length packet as EOF (default: true)

Example Flowgraph

This flowgraph can be found at [1]

Test udp sink fg.png

Source Files

C++ files
1
Header files
2
Public header files
3
Block definition
3