Difference between revisions of "UDP Sink"

From GNU Radio
Jump to navigation Jump to search
Line 33: Line 33:

; 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 4]

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.


IP Address
The name or IP address of the transmitting host; can be NULL, None, or "" to allow reading from any interface on the host
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
Header files
Public header files
Block definition