From cb1d502ae76a2fdfdc1f8a7e67f805357d6d1fc2 Mon Sep 17 00:00:00 2001 From: Yannick Poirier Date: Mon, 18 Sep 2023 07:53:50 +0200 Subject: [PATCH] Clarification in python example #12 --- README.md | 7 ++++--- README.tpl | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aa3ec54..3c65b0b 100644 --- a/README.md +++ b/README.md @@ -206,14 +206,15 @@ Flute Receiver python example tsi = 1 - # Creation of a FLUTE receiver + # Create a FLUTE receiver with the specified endpoint, tsi, writer, and configuration udp_endpoint = receiver.UDPEndpoint("224.0.0.1", 1234) flute_receiver = receiver.Receiver(udp_endpoint, tsi, receiver_writer, receiver_config) while True: - # Receive LCT/ALC packet from multicast + # Receive LCT/ALC packet from UDP/IP multicast (Implement your own receive_from_udp_socket() function) + # Note: FLUTE does not handle the UDP/IP layer, you need to implement the socket reception mechanism yourself pkt = receive_from_udp_socket() - # Push packet to the flute receiver + # Push the received packet to the FLUTE receiver flute_receiver.push(bytes(pkt)) ``` diff --git a/README.tpl b/README.tpl index c850f68..976e49b 100644 --- a/README.tpl +++ b/README.tpl @@ -52,14 +52,15 @@ Flute Receiver python example tsi = 1 - # Creation of a FLUTE receiver + # Create a FLUTE receiver with the specified endpoint, tsi, writer, and configuration udp_endpoint = receiver.UDPEndpoint("224.0.0.1", 1234) flute_receiver = receiver.Receiver(udp_endpoint, tsi, receiver_writer, receiver_config) while True: - # Receive LCT/ALC packet from multicast + # Receive LCT/ALC packet from UDP/IP multicast (Implement your own receive_from_udp_socket() function) + # Note: FLUTE does not handle the UDP/IP layer, you need to implement the socket reception mechanism yourself pkt = receive_from_udp_socket() - # Push packet to the flute receiver + # Push the received packet to the FLUTE receiver flute_receiver.push(bytes(pkt)) ```