Commit Graph

14 Commits

Author SHA1 Message Date
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