23 Commits

Author SHA1 Message Date
69e16758c1 Add empty file handling in RNS FileSync
- Implemented a new message type for empty file notifications, allowing peers to inform each other about zero-byte files.
- Enhanced the `handle_file_request` function to send notifications for empty files instead of sending empty byte streams.
- Introduced a new `handle_empty_file` function to create empty files on receipt of notifications, including permission checks and hash validation.
- Improved logging for resource transfer status, including detailed information on file creation and hash mismatches.
- Updated resource management to ensure proper handling of empty files in the synchronization process.
2025-11-24 21:24:30 -06:00
d6dd9579f1 Add active resource management in RNS FileSync
- Introduced a new mechanism to track active resources during file transfers, enhancing management and cleanup processes.
- Implemented a callback function to handle transfer completion, logging success or failure statuses for better monitoring.
- Improved error handling in resource management to log exceptions and stack traces, aiding in debugging.
- Updated logging to provide detailed information on resource transfer status and metadata extraction.
2025-11-24 21:18:19 -06:00
d3b1561c1b Fix file transfer handling in RNS FileSync
- Added support for sending empty files as byte streams, improving transfer efficiency for zero-byte files.
- Updated progress tracking to only activate for non-empty files, optimizing resource management.
- Enhanced logging for resource advertisements to include transfer and data sizes, aiding in debugging and monitoring.
- Improved error handling in resource callback to log exceptions and stack traces for better traceability.
2025-11-24 21:12:03 -06:00
e825f7b016 Add active transfer management in RNS FileSync
- Introduced a mechanism to track active outgoing file and delta transfers, preventing duplicate requests.
- Implemented cleanup logic to remove transfer entries upon completion or failure.
- Enhanced logging to provide feedback on transfer status and permission checks.
- Ensured thread safety with locks around active transfer modifications.
2025-11-24 21:07:40 -06:00
f3835a0a35 Code Cleanup 2025-11-24 20:55:41 -06:00
8cdf9a6ced update example 2025-11-24 20:53:47 -06:00
b11ee3a28b Add link to Russian README in main README file 2025-11-24 20:48:11 -06:00
d268974bde Add Russian README 2025-11-24 20:46:24 -06:00
f3ef708cdd Update README 2025-11-24 20:46:07 -06:00
a2b3a65914 Add support for sub-chunked file transfers in RNS FileSync
- Introduced MAX_PACKET_DATA_SIZE to limit the size of data packets.
- Enhanced packet handling to support sub-chunks for file transfers, improving efficiency and reliability.
- Updated logging to provide detailed information on received sub-chunks and their assembly.
- Refined file completion handling to ensure all sub-chunks are received before processing.
- Improved broadcast logic for file updates to handle new, modified, and removed files more effectively.
2025-11-24 20:45:58 -06:00
2ff255eb4a Improve file synchronization and logging in RNS FileSync
- Added a delay before requesting file lists to improve synchronization timing.
- Improved logging to indicate when a peer has no files to sync.
- Implemented timeout handling for file resource acceptance to manage transfer failures more effectively.
- Updated permission checks to provide clearer rejection messages for resources without write access.
2025-11-22 13:26:32 -06:00
38a5246abf Code Cleanup 2025-11-22 13:22:56 -06:00
fc7a1336ee Use RNS Resources for file transfer 2025-11-22 13:19:57 -06:00
40007e35a1 Add packet handling and logging in RNS FileSync
- Added logging for received packet types to improve debugging.
- Implemented connection handling to manage peer links and permissions more effectively.
- Ensured file list requests are sent upon successful connection, with error handling for remote identity retrieval.
2025-11-22 13:16:15 -06:00
2006ba729c Fix file synchronization logic and logging in RNS FileSync
- Implemented conditional handling for file lists based on the presence of a sync directory.
- Improved logging to indicate when peers have files and when no syncing is needed.
- Refined the structure of the file list to include detailed file information during synchronization.
2025-11-22 13:14:23 -06:00
8125001a49 Improve logging and file synchronization handling in RNS FileSync
- Updated logging messages to include browser mode information when sending and receiving file lists.
- Added warnings for cases where the sync directory is not set.
- Improved file request and sync logging to provide clearer insights into the synchronization process.
- Implemented checks for incomplete file downloads, including size mismatches and chunk counts, with appropriate logging for errors and warnings.
2025-11-22 13:12:18 -06:00
07f6809987 Ensure directory creation only if path exists in handle_file_complete function 2025-11-22 13:07:14 -06:00
3b8047c0f2 Update CHUNK_SIZE and enhance file list request logging
- Changed CHUNK_SIZE from 8192 to 7000 for optimized performance.
- Modified request_file_list_from_peer to accept a browser_mode parameter for improved logging based on the request context.
2025-11-22 13:03:44 -06:00
c831acf2b5 Fix SimpleTUI input handling and display refresh logic.
- Adjusted view and log height calculations for better usability.
2025-11-22 12:57:42 -06:00
164584bda0 Add requirements file for RNS dependency 2025-11-22 12:46:02 -06:00
0ea18d8d92 Add permissions example file for RNS FileSync with usage guidelines and examples 2025-11-22 12:45:58 -06:00
aa7fcee9a8 Add RNS FileSync script 2025-11-22 12:45:53 -06:00
6ee6ddcaac first commit 2025-11-22 12:45:16 -06:00