Feature: add the file preview cache and device transfer gate
Add FilePreview.h/.cpp with the non-UI half of the double-click preview: a flat per-client cache (Preview\<clientKey>\<hash16>_<basename>), a per-client index keyed by remote path and SHA-256, size/mtime metadata hits, the 8 MiB gate, empty-file handling, LRU caps, and the executable confirmation plus ShellExecute helper. DeviceTransferGate is the shared device-level claim used by preview and the MCP file-transfer entry points so one device can only run one file transfer at a time; C2C claims both src and dst. The receive hooks (ObserveChunk/OnComplete) are implemented here and called by the file manager paths in the next commit. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
e39b9d1ed5
commit
02c22b82a7
4 files changed
+1352
No files matched your search
@@ -361,6 +361,7 @@
|
||||
<ClInclude Include="SearchBarDlg.h" />
|
||||
<ClInclude Include="Server.h" />
|
||||
<ClInclude Include="ServerTlsSession.h" />
|
||||
<ClInclude Include="FilePreview.h" />
|
||||
<ClInclude Include="ServerWsSession.h" />
|
||||
<ClInclude Include="ServicesDlg.h" />
|
||||
<ClInclude Include="ConnectionsDlg.h" />
|
||||
@@ -478,6 +479,7 @@
|
||||
<ClCompile Include="IOCPKCPServer.cpp" />
|
||||
<ClCompile Include="IOCPServer.cpp" />
|
||||
<ClCompile Include="ServerTlsSession.cpp" />
|
||||
<ClCompile Include="FilePreview.cpp" />
|
||||
<ClCompile Include="ServerWsSession.cpp" />
|
||||
<ClCompile Include="IOCPUDPServer.cpp" />
|
||||
<ClCompile Include="IPHistoryDlg.cpp" />
|
||||
|
||||
Reference in new issue
Block a user