How abuammer-051/spl-1 works
This repository provides a Windows command-line UDP transfer application, including a stop-and-wait file-transfer mode and a simpler single-packet exchange, plus standalone binary-copy and file-comparison tools. In file mode, the sender reads and checksums a file, sends metadata and sequenced data packets, and waits for acknowledgements; the receiver validates packets and the completed file before saving it. The excerpts show these entry points and protocol interactions, but the README is empty and provides no further capability documentation.
Main entry points: send_file.cpp Stop-and-wait sender · receive_file.cpp Stop-and-wait receiver · packet.cpp Packet codec · sender.cpp Sender CLI
Components 15
Transfer endpoints
- Sender CLI
src/sender.cpp - Stop-and-wait sender
src/protocol/stop_and_wait/send_file.cpp - Receiver CLI
src/receiver.cpp - Stop-and-wait receiver
src/protocol/stop_and_wait/receive_file.cpp
Wire protocol
- Packet codec
src/protocol/packets/packet.cpp - Checksum routines
src/protocol/packets/checksum.cpp
File utilities
- Binary copy
src/files/binary_copy.cpp - File comparison
src/files/file_compare.cpp
Other components
- Sender operator
- Receiver operator
- UDP peer
- Transfer files
- Copy-tool user
- Compare-tool user
- Local files
Connections 21
- Sender operator → Sender CLI: runs
src/sender.cpp - Sender CLI → Stop-and-wait sender: calls file mode
src/sender.cpp - Sender CLI → Packet codec: encodes and validates
src/sender.cpp - Sender CLI → UDP peer: exchanges datagrams
src/sender.cpp - Stop-and-wait sender → Packet codec: encodes and validates
src/protocol/stop_and_wait/send_file.cpp - Stop-and-wait sender → Checksum routines: computes file checksum
src/protocol/stop_and_wait/send_file.cpp - Stop-and-wait sender → UDP peer: sends data and awaits ACKs
src/protocol/stop_and_wait/send_file.cpp - Stop-and-wait sender → Transfer files: reads input file
src/protocol/stop_and_wait/send_file.cpp - Receiver operator → Receiver CLI: runs
src/receiver.cpp - Receiver CLI → Stop-and-wait receiver: calls file mode
src/receiver.cpp - Receiver CLI → Packet codec: validates and encodes
src/receiver.cpp - Receiver CLI → UDP peer: receives and replies
src/receiver.cpp - Stop-and-wait receiver → Packet codec: validates and encodes
src/protocol/stop_and_wait/receive_file.cpp - Stop-and-wait receiver → Checksum routines: checks received file
src/protocol/stop_and_wait/receive_file.cpp - Stop-and-wait receiver → UDP peer: receives data and sends ACKs
src/protocol/stop_and_wait/receive_file.cpp - Stop-and-wait receiver → Transfer files: writes completed file
src/protocol/stop_and_wait/receive_file.cpp - Packet codec → Checksum routines: checks packet bytes
src/protocol/packets/packet.cpp - Copy-tool user → Binary copy: runs
src/files/binary_copy.cpp - Binary copy → Local files: copies file bytes
src/files/binary_copy.cpp - Compare-tool user → File comparison: runs
src/files/file_compare.cpp - File comparison → Local files: reads and compares
src/files/file_compare.cpp