Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def stop_and_wait(frames):
- for i, frame in enumerate(frames):
- print(f"Sending Frame {i}: {frame}")
- ack = input(f"ACK for Frame {i} received? (y/n): ").strip().lower()
- while ack != 'y':
- print(f"Resending Frame {i}: {frame}")
- ack = input(f"ACK for Frame {i} received? (y/n): ").strip().lower()
- print("All frames sent successfully!")
- frames = input("Enter frames to send (comma-separated): ").split(',')
- stop_and_wait(frames)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement