26 @brief Main function that initializes and runs the sender.
28 @details Creates a file if needed, sets up a QUIC connection,
29 creates streams, adds file data, and starts sending.
32 quic_connection =
QuicConnection(Constants.CONNECTION_ID_SENDER, Constants.ADDR_SENDER, Constants.ADDR_RECEIVER)
35 for i
in range(Constants.MAX_STREAMS):
36 streams.append(quic_connection.get_stream(Constants.CONNECTION_ID_SENDER, Constants.UNIDI).get_stream_id())
38 for stream
in streams:
39 quic_connection.add_file_to_stream(stream, Constants.FILE_PATH)
41 quic_connection.send_packets()