d7d3055b5f
The purpose of clipboard data locking is to make the other peer retaining the current file list until a pending paste operation is done, even though the clipboard selection changed. As it may be difficult to determine, when a lock is needed, imitate the same behaviour as mstsc: When the server side supports clipboard data locking, always attempt to lock the file list on the server regardless of what is advertised in a FormatList PDU. The Lock Clipboard Data PDU can even be already sent, before the Format List Response PDU is sent. This is also what mstsc, does: First, lock the new (potential) file list, then unlock the file list, when the pending paste operation is done. So, rework the current clipboard implementation in that direction. Since the implementation for timeouts for old file lists is a bit hard, for now always force unlock pending locks, when the selection changes. However, timeouts for old file lists can still be added in the future. The reworked clipboard handling is done with the help of three hash tables: 1. The inode table: This hash table manages all inodes for each file. The keys in this table are the inodes themselves, while the values the files and directories and their attributes (file size, last write time, etc.). 2. The clipdata table: This table manages the locks for each file list. The keys in this table represent the clip data id and the values the clip data entries, which have a reference to the clip data dir, a directory containing the whole selection, and some helper attributes, like the clip data id itself. 3. The request table: Every file size or file range request is managed here. When a FileContentsRequest is made, its stream id with the respective details are added to this table. When a response is received, these details can then be easily looked up here. |
||
---|---|---|
.. | ||
utils | ||
ainput.h | ||
audin.h | ||
channels.h | ||
client_cliprdr_file.h | ||
cliprdr.h | ||
cmdline.h | ||
disp.h | ||
drdynvc.h | ||
encomsp.h | ||
file.h | ||
geometry.h | ||
printer.h | ||
rail.h | ||
rdpei.h | ||
rdpgfx.h | ||
rdpsnd.h | ||
remdesk.h | ||
sshagent.h | ||
tsmf.h | ||
video.h |