Implement the core networking layer for FLUX:
- Use Python sockets to enable peer-to-peer file transfers with support for TCP (UDP optional for future stretch goal)
- Support multi-threaded upload/download with concurrent chunked streaming for large files (>10MB)
- Allow configurable chunk size via GUI and command options
- Integrate retry/backoff logic to handle packet loss and intermittent network failures
- Provide mechanisms for resuming interrupted transfers using chunk tracking/hash verification
- Ensure IRC-like pipeline for concurrent chunk transfer.
Implement the core networking layer for FLUX: