Skip to content

Commit

Permalink
Clarification in python example #12
Browse files Browse the repository at this point in the history
  • Loading branch information
ypo committed Sep 18, 2023
1 parent a9749d7 commit cb1d502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
```
7 changes: 4 additions & 3 deletions README.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
```

0 comments on commit cb1d502

Please sign in to comment.