Difference between revisions of "UDP Source"

From GNU Radio
Jump to: navigation, search
(Example Flowgraph)
(Source Files: Updated source links)
Line 24: Line 24:
  
 
; C++ files
 
; C++ files
: [https://github.com/gnuradio/gnuradio TODO]
+
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/lib/udp_source_impl.cc 1]
  
 
; Header files
 
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
+
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/lib/udp_source_impl.h 2]
  
 
; Public header files
 
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
+
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/include/gnuradio/network/udp_source.h 3]
  
 
; Block definition
 
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]
+
: [https://github.com/gnuradio/gnuradio/blob/master/gr-network/grc/network_udp_source.block.yml 4]

Revision as of 08:21, 18 December 2020

Read stream from an UDP socket. Can be used with UDP Sink 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 source fg.png

Source Files

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