A clipboard redirection transmission method, device, storage medium and electronic device
By establishing two one-way transmission channels in the remote desktop environment, the problem of multiple requests and responses in large file transmission is solved, efficient clipboard data transmission is achieved, and the transmission rate and efficiency are improved.
Patent Information
- Application Number
- CN202111197856.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-14
AI Technical Summary
In the existing technology, the pasting operation of large files in a remote desktop environment requires multiple network requests and responses, and header information needs to be added to each packet of data, resulting in low transmission efficiency.
By establishing two one-way transmission channels, one is used to receive file request information and create a dedicated transmission channel, and the other is used to directly transmit file content, avoiding headers and packaging, supporting parallel transmission of data, and reducing the number of requests and responses.
The transmission rate of shearboard data is improved, header and packaging operations during transmission are reduced, and transmission efficiency is enhanced.
Smart Images

Figure CN113934553B_ABST
Abstract
Description
Background Art
[0002] In the cloud era, more and more desktops and applications are running in the cloud environment. Local PCs are connected to the cloud through remote desktops, enjoying the high-speed and secure operating environment of the cloud environment. There are many ways to share data between the remote environment and the local environment, and transferring data through the clipboard is one of the most convenient ways. On the local PC, perform a copy operation to send the clipboard format list to the remote end through the connection channel between the local and remote desktops. When the remote end receives the clipboard format list, it injects the clipboard format list into the remote system clipboard. At this time, in the remote desktop environment, you can trigger the system clipboard to complete the request for clipboard data through the paste operation.
[0003] In the related technical solutions, the pasted data content is very large, for example, a file is several GB to tens of GB in size. At this time, the trigger for pasting on the remote desktop, such as the file manager, does not send a request for the file content of several GB to tens of GB at one time, but requests the file content in packets through the system clipboard in an even and orderly manner.
[0004] After performing the paste operation on the remote desktop, the file manager on the remote desktop requests a file content of a certain size, such as 4K, through the system clipboard, and sends the request command to the local through the connection channel between the local and remote desktops. After receiving the command, the local collects the 4K file content, and then returns the 4K file content data to the data request end of the remote desktop through the connection channel between the local and remote desktops. After receiving the 4K file content, the second 4K file content request is actively triggered. When the file content is very large, the subsequent process must be repeated according to the above process, and the same process must be repeated back and forth until the file content request is processed.
[0005] Therefore, it is necessary to provide a new technical solution to improve one or more problems existing in the above solutions. For example, if there are too many network requests and responses, it is necessary to complete the sending and request of two-way data, a total of 2n times; and for each packet of response data, additional header information needs to be added to record the uniqueness of the data, such as data format flags, data size, etc., and the corresponding unpacking processing must also be done at the receiving end; all requests and responses sent are completed in the only connection channel between the local and remote desktops.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] The purpose of the present disclosure is to provide a clipboard redirection transmission method, device, storage medium and electronic device, thereby overcoming one or more problems caused by limitations and defects of related technologies at least to a certain extent.
[0008] According to a first aspect of an embodiment of the present disclosure, a clipboard redirection transmission method is provided, the method comprising:
[0009] Receiving, through a first unidirectional transmission channel, file request information of any package after being processed by the clipboard of the requesting end;
[0010] If the file request information of any one of the packets is file content request information and request information for creating a dedicated transmission channel;
[0011] Collect the file content information of any one package and other packages, and create a dedicated transmission channel;
[0012] The file content information of any one of the packets is sent to the requesting end through the second unidirectional transmission channel, and the file content information of the remaining packets is sent to the temporary file storage center of the requesting end through the dedicated transmission channel.
[0013] In an exemplary embodiment of the present disclosure, after the step of receiving, through the first unidirectional transmission channel, the file request information of any package after the clipboard of the requesting end is processed, the step further includes:
[0014] If the file request information of any package is the file content request information;
[0015] The file content information of any one package is collected, and the file content information of any one package is sent to the requesting end through the second unidirectional transmission channel.
[0016] In an exemplary embodiment of the present disclosure, after the step of sending the file content information of any one package to the requesting end through the second unidirectional transmission channel and sending the file content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel, the step further includes:
[0017] When the requesting end fails to continuously obtain the file content information of any package in the remaining packages within a preset number of times, the file content request information of any package in the remaining packages is received through the first unidirectional transmission channel, the file content information of any package in the remaining packages is collected, and the file content information of any package in the remaining packages is sent to the requesting end through the second unidirectional transmission channel.
[0018] According to a second aspect of an embodiment of the present disclosure, a clipboard redirection transmission method is provided, the method comprising:
[0019] Compare the size of the file to be processed with a preset file size threshold;
[0020] If the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged;
[0021] and sending the content request information of the to-be-processed file of the first package after the subpacketization and the request information for creating a dedicated transmission channel to the local end through the first unidirectional transmission channel;
[0022] Receiving content information of the to-be-processed file in the first package through the second unidirectional transmission channel;
[0023] storing the content information of the to-be-processed files of the remaining packages received through the dedicated transmission channel in a temporary file storage center;
[0024] The content information of the to-be-processed files of the remaining packages is obtained in the temporary file storage center.
[0025] In an exemplary embodiment of the present disclosure, after the step of comparing the size of the file to be processed with a preset file size threshold, the step further includes:
[0026] If the size of the file to be processed is smaller than a preset file size threshold, the file to be processed is sub-packaged;
[0027] and sending the content request information of the to-be-processed file of any of the divided packages to the local end through the first unidirectional transmission channel;
[0028] The content information of the to-be-processed file of any package is received through the second unidirectional transmission channel.
[0029] In an exemplary embodiment of the present disclosure, after the step of acquiring the content information of the to-be-processed files of the remaining packages in the temporary file storage center, the method further includes:
[0030] Continuously obtaining content information of the to-be-processed file of any of the remaining packages within a preset number of times;
[0031] If the acquisition fails, the content request information of the file to be processed of any of the remaining packets is sent to the local end through the first unidirectional transmission channel, and the content information of the file to be processed of any of the remaining packets is received through the second unidirectional transmission channel.
[0032] In an exemplary embodiment of the present disclosure, the preset number of consecutive acquisitions ranges from 5 to 10 times, and the preset time range between two adjacent acquisitions ranges from 10 to 50 ms.
[0033] According to a third aspect of an embodiment of the present disclosure, a clipboard redirection transmission device is provided, the device comprising:
[0034] An information receiving module, used for receiving, through a first unidirectional transmission channel, file request information of any package after being processed by the clipboard of the requesting end;
[0035] An information judgment module, used for determining if the file request information of any package is file content request information and request information for establishing a dedicated transmission channel;
[0036] An information collection and channel creation module is used to collect the file content information of any one package and other packages, and create a dedicated transmission channel;
[0037] The information transmission module is used to send the file content information of any one package to the request end through the second unidirectional transmission channel, and send the file content information of the remaining packages to the temporary file storage center of the request end through the dedicated transmission channel.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the clipboard redirection transmission method described in any one of the above embodiments are implemented.
[0039] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0040] Processor; and
[0041] A memory, configured to store executable instructions of the processor;
[0042] The processor is configured to execute the steps of the clipboard redirection transmission method in any one of the above embodiments by executing the executable instructions.
[0043] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0044] In one embodiment of the present disclosure, through the clipboard redirection transmission method provided by the above embodiment, on the one hand, the file request information of any package is received through the first unidirectional transmission channel, and when the file request information of any package is file content request information and request information for creating a dedicated transmission channel, the collected file content information of any package is sent to the requesting end through the second transmission channel, and on the other hand, the collected file content information of the remaining packages is sent to the temporary file storage center of the requesting end through the dedicated transmission channel, and the file content information of the remaining packages is directly obtained from the temporary file storage; in this process, two unidirectional transmission channels are established, namely the first unidirectional transmission channel and the second unidirectional transmission channel, so that the data of the local end and the requesting end go through different channels respectively, supporting data parallel transmission; and on the basis of the original single channel, a dedicated transmission channel for large file content transmission is added, and the dedicated transmission channel file content transmission does not add a header or packaging, and the requesting end does not need to unpack, and is directly handed over to the temporary file storage center for storage; in addition, in this process, the number of times of sending requests and responding to requests is reduced, the transmission rate of the clipboard is improved, and there is no need to add a header, packaging, or unpacking.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0047] Figure 1 A flowchart schematically shows a method for redirecting a clipboard in an exemplary embodiment of the present disclosure;
[0048] Figure 2 A flowchart schematically shows a method for redirecting a clipboard in an exemplary embodiment of the present disclosure;
[0049] Figure 3 A block diagram schematically shows a clipboard redirection transmission device in an exemplary embodiment of the present disclosure;
[0050] Figure 4 A schematic diagram of a program product in an exemplary embodiment of the present disclosure is schematically shown;
[0051] Figure 5 A schematic diagram of an electronic device in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0052] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0053] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0054] This example implementation first provides a clipboard redirection transmission method, referring to Figure 1 As shown in , the method may include:
[0055] Step S101: receiving file request information of any package after being processed by the clipboard of the requesting end through a first unidirectional transmission channel;
[0056] Step S102: if the file request information of any packet is file content request information and request information for creating a dedicated transmission channel;
[0057] Step S103: collecting file content information of any one package and other packages, and creating a dedicated transmission channel;
[0058] Step S104: sending the file content information of any one package to the requesting end through the second unidirectional transmission channel, and sending the file content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel.
[0059] Through the above method, on the one hand, when the file request information of any package is received through the first unidirectional transmission channel, and the file request information of any package is file content request information and request information for creating a dedicated transmission channel, the collected file content information of any package is sent to the requesting end through the second transmission channel, and on the other hand, the collected file content information of the remaining packages is sent to the temporary file storage center of the requesting end through the dedicated transmission channel, and the file content information of the remaining packages is directly obtained from the temporary file storage; in this process, two unidirectional transmission channels are established, namely the first unidirectional transmission channel and the second unidirectional transmission channel, so that the data of the local end and the requesting end go through different channels respectively, supporting parallel data transmission; and on the basis of the original single channel, a dedicated transmission channel for large file content transmission is added, and when the dedicated transmission channel transmits the file content information, no header is added and no packaging is performed, and the requesting end does not need to unpack the package, and the package is directly handed over to the temporary file storage center for storage; in addition, in this process, the number of times of sending and responding to requests is reduced, the transmission rate of the clipboard is improved, and there is no need to add headers, packaging, or unpacking.
[0060] Next, we will refer to Figure 1 Each step of the above method in this example implementation is described in more detail.
[0061] In step S101, file request information of any package after being processed by the clipboard of the requesting end is received through a first unidirectional transmission channel;
[0062] Exemplarily, the pasted data content is very large, such as a file of several GB to tens of GB, and the file request information needs to be evenly and orderly packaged through the clipboard, and the file request information of any package after the package processing is transmitted to the local end through the first unidirectional transmission channel.
[0063] In step S102, if the file request information of any packet is file content request information and request information for creating a dedicated transmission channel;
[0064] Exemplarily, after the local end receives the file request information of any package after subpacketization through the first unidirectional transmission channel, when the file of any package after subpacketization is a large file, and the file request information of any package is file content request information and request information for creating a dedicated transmission channel, it triggers the local end to collect the file content information of any package and the remaining packages, and at the same time triggers the local end to create a dedicated transmission channel.
[0065] In step S103, the file content information of the any one package and the remaining packages is collected, and a dedicated transmission channel is created;
[0066] Exemplary: when the file request information of any package received by the local end is file content request information and information for creating a dedicated transmission channel, the local end collects the file content information of the any package and the remaining packages, and the local end creates a dedicated transmission channel.
[0067] Step S104: sending the file content information of any one package to the requesting end through the second unidirectional transmission channel, and sending the file content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel.
[0068] Exemplarily, the file content information of any package collected by the local end is sent to the request end through the second unidirectional transmission channel, and the file content information of the remaining packages is sent to the temporary file storage center of the request end through the dedicated transmission channel. The dedicated transmission channel avoids the congestion of the first unidirectional transmission channel and the second unidirectional transmission channel, thereby improving the transmission rate.
[0069] In one embodiment, any one of the packages is the first package, and the remaining packages are the second to nth packages. That is, after the clipboard is processed by packet division, when the file request information of the first package is received through the first unidirectional transmission channel, and the file of the first package is a large file, and the file request information corresponding to the first package includes the file content request information and the request information for creating a dedicated transmission channel, the local end collects the file content information of the first package, and at the same time collects the file content information of the second to nth packages, the file content information of the first package is transmitted to the requesting end through the second transmission channel, and the file content information of the second to nth packages is transmitted to the temporary file storage center of the requesting end through the dedicated transmission channel. When the dedicated transmission channel transmits the file content information, no header is added and no packaging is performed, and the requesting end does not need to unpack the package, and directly transfers it to the temporary file storage center for storage.
[0070] In one embodiment, after the step of receiving, through the first unidirectional transmission channel, the file request information of any package after being processed by the clipboard of the requesting end, further comprising:
[0071] If the file request information of any package is the file content request information;
[0072] The file content information of any one package is collected, and the file content information of any one package is sent to the requesting end through the second unidirectional transmission channel.
[0073] Exemplarily, when the file of any package is a small file, that is, the file request information of any package is file content request information, the local end collects the file content information of any package, and sends the file content information of any package to the request end through the second unidirectional transmission channel. In this process, when the file of any package is a small file, there is no need to create a dedicated transmission channel, and the file content request information and file content information of any package from the first package to the nth package are transmitted separately through two unidirectional transmission channels, thereby increasing the remote transmission rate of the entire file content.
[0074] In one embodiment, after the step of sending the file content information of any one package to the requesting end through the second unidirectional transmission channel and sending the file content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel, the step further includes:
[0075] When the requesting end fails to continuously obtain the file content information of any package in the remaining packages within a preset number of times, the file content request information of any package in the remaining packages is received through the first unidirectional transmission channel, the file content information of any package in the remaining packages is collected, and the file content information of any package in the remaining packages is sent to the requesting end through the second unidirectional transmission channel.
[0076] Exemplarily, when the requesting end fails to continuously obtain the file content information of any of the remaining packages within a preset number of times, the file content request information of any of the remaining packages is sent to the local end through the first unidirectional transmission channel, and the local end collects the file content information of any of the remaining packages, and sends the collected file content information of any of the remaining packages to the requesting end through the second unidirectional transmission channel. The preset number of consecutive acquisitions ranges from 5 to 10 times, and the preset time range between two adjacent times ranges from 10 to 50 ms. Specifically, the preset number of consecutive acquisitions can be 5 times, and the preset time between two adjacent times can be 10 ms, and this example does not impose any restrictions on this.
[0077] Through the above method, on the one hand, when the file request information of any package is received through the first unidirectional transmission channel, and the file request information of any package is file content request information and request information for creating a dedicated transmission channel, the collected file content information of any package is sent to the requesting end through the second transmission channel, and on the other hand, the collected file content information of the remaining packages is sent to the temporary file storage center of the requesting end through the dedicated transmission channel, and the file content information of the remaining packages is directly obtained from the temporary file storage; in this process, two unidirectional transmission channels are established, namely the first unidirectional transmission channel and the second unidirectional transmission channel, so that the data of the local end and the requesting end go through different channels respectively, supporting parallel data transmission; and on the basis of the original single channel, a dedicated transmission channel for large file content transmission is added, and when the dedicated transmission channel transmits the file content information, no header is added and no packaging is performed, and the requesting end does not need to unpack the package, and the package is directly handed over to the temporary file storage center for storage; in addition, in this process, the number of times of sending and responding to requests is reduced, the transmission rate of the clipboard is improved, and there is no need to add headers, packaging, or unpacking.
[0078] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.
[0079] Furthermore, in this example implementation, a clipboard redirection transmission method is also provided. The method includes:
[0080] Step S201: comparing the size of the file to be processed with a preset file size threshold;
[0081] Step S202: If the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged;
[0082] Step S203: sending the content request information of the to-be-processed file in the first package and the request information for creating a dedicated transmission channel to the local end through the first unidirectional transmission channel;
[0083] Step S204: receiving content information of the to-be-processed file in the first package through the second unidirectional transmission channel;
[0084] Step S205: storing the content information of the to-be-processed files of the remaining packages received through the dedicated transmission channel in a temporary file storage center;
[0085] Step S206: Obtain content information of the to-be-processed files of the remaining packages in the temporary file storage center.
[0086] Next, we will refer to Figure 2 Each step of the above method in this example implementation is described in more detail.
[0087] In step S201, the size of the file to be processed is compared with a preset file size threshold;
[0088] Exemplarily, before the files to be processed are processed separately through the clipboard of the requesting end, the requesting end determines the size of the files to be processed based on a preset file size preset, and the requesting end compares the size of the files to be processed with a preset file size threshold. If the size of the files to be processed is larger than the preset file size threshold, that is, the large file transmission condition is met, the file size to be processed is sub-packaged.
[0089] In step S202, if the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged;
[0090] Exemplarily, if the size of the file to be processed is larger than a preset file size threshold, that is, the large file transmission condition is met, the file size to be processed is sub-packetized.
[0091] In step S203, the content request information of the to-be-processed file in the first package and the request information for creating a dedicated transmission channel are sent to the local end through the first unidirectional transmission channel;
[0092] Exemplarily, when the file to be processed meets the requirements for large file transmission and after the file to be processed is sub-packaged, it is determined whether it is the first package of files to be processed. If it is the first package of files to be processed, the content request information of the first package of files to be processed and the request information for creating a dedicated transmission channel are sent to the local end through the first unidirectional transmission channel. The dedicated transmission channel is used to transmit large files.
[0093] In step S204, content information of the to-be-processed file in the first package is received through the second unidirectional transmission channel;
[0094] Exemplarily, based on the received content request information of the files to be processed in the first package and the request information for creating a dedicated transmission channel, the local end collects the content information of the files to be processed in the first package and the remaining packages, creates a dedicated transmission channel at the same time, and sends the collected content information of the files to be processed in the first package to the requesting end through the second unidirectional transmission channel.
[0095] In step S205, the content information of the to-be-processed files of the remaining packets received through the dedicated transmission channel is stored in a temporary file storage center.
[0096] Exemplarily, the content information of the to-be-processed files in the remaining packets are sent to the temporary storage center of the requesting end through a dedicated transmission channel, wherein the remaining packets are the 2nd to nth packets.
[0097] In step S206, content information of the to-be-processed files of the remaining packages is obtained in the temporary file storage center.
[0098] Exemplarily, the requesting end obtains content information of the to-be-processed files of the remaining packages through a temporary file storage center therein.
[0099] In one embodiment, after the step of comparing the size of the file to be processed with a preset file size threshold, the step further includes:
[0100] If the size of the file to be processed is smaller than a preset file size threshold, the file to be processed is sub-packaged;
[0101] and sending the content request information of the to-be-processed file of any of the divided packages to the local end through the first unidirectional transmission channel;
[0102] The content information of the to-be-processed file of any package is received through the second unidirectional transmission channel.
[0103] Exemplarily, the requesting end determines the size of the file to be processed based on a preset file size threshold. If the size of the file to be processed is smaller than the preset file size threshold, it satisfies the small file transmission requirement, and the clipboard of the requesting end still performs sub-packaging processing on the file to be processed. When transmitting small files, there is no need to establish a dedicated transmission channel. After the content request information of any sub-packet of the file to be processed is sent to the local end through the first unidirectional transmission channel, the local end collects the content information of any sub-packet of the file to be processed, and the requesting end receives the content information of any sub-packet of the file to be processed through the second unidirectional transmission channel.
[0104] In one embodiment, after the step of obtaining the content information of the to-be-processed files of the remaining packages in the temporary file storage center, the method further includes:
[0105] Continuously obtaining content information of the to-be-processed file of any of the remaining packages within a preset number of times;
[0106] If the acquisition fails, the content request information of the file to be processed of any of the remaining packets is sent to the local end through the first unidirectional transmission channel, and the content information of the file to be processed of any of the remaining packets is received through the second unidirectional transmission channel.
[0107] Exemplarily, when the requesting end fails to continuously obtain file content information of any package in the remaining packages within a preset number of times, the content request information of the file to be processed of any package in the remaining packages is sent to the local end through the first unidirectional transmission channel, and the local end collects the content information of the file to be processed of any package in the remaining packages, and sends the collected content information of the file to be processed of any package in the remaining packages to the requesting end through the second unidirectional transmission channel.
[0108] In one embodiment, the preset number of consecutive acquisitions ranges from 5 to 10 times, and the preset time range between two adjacent acquisitions ranges from 10 to 50 ms. Exemplarily, the preset number of consecutive acquisitions may be 5 times, and the preset time between two adjacent acquisitions may be 10 ms, which is not limited in this example.
[0109] Furthermore, in this exemplary embodiment, a clipboard redirection transmission device is also provided. Figure 3 As shown in , the device includes:
[0110] The information receiving module 301 is used to receive the file request information of any package after the clipboard of the requesting end has been processed through the first unidirectional transmission channel;
[0111] An information determination module 302 is used for determining if the file request information of any packet is file content request information and request information for establishing a dedicated transmission channel;
[0112] The information collection and channel creation module 303 is used to collect the file content information of the any one package and the remaining packages, and create a dedicated transmission channel;
[0113] The information transmission module 304 is used to send the file content information of any one package to the requesting end through the second unidirectional transmission channel, and send the file content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel.
[0114] In one embodiment, the device further includes: the information determination module 302 includes:
[0115] An information judgment submodule, used for determining if the file request information of any package is the file content request information;
[0116] The file content information of any one package is collected, and the file content information of any one package is sent to the requesting end through the second unidirectional transmission channel.
[0117] In one embodiment, the information transmission module 304 further includes:
[0118] An information transmission submodule is used to receive the file content request information of any package in the remaining packages through the first unidirectional transmission channel, collect the file content information of any package in the remaining packages, and send the file content information of any package in the remaining packages to the requesting end through the second unidirectional transmission channel when the requesting end fails to continuously obtain the file content information of any package in the remaining packages within a preset number of times.
[0119] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0120] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0121] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, and when the program is executed by, for example, a processor, the steps of the clipboard redirection transmission method described in any of the above embodiments can be implemented. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above clipboard redirection transmission method section of this specification.
[0122] refer to Figure 4 As shown, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0123] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0124] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0125] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0126] In an exemplary embodiment of the present disclosure, an electronic device is further provided, which may include a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to execute the steps of the clipboard redirection transmission method in any of the above embodiments by executing the executable instructions.
[0127] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0128] Refer to the following Figure 5 An electronic device 400 according to this embodiment of the present invention will be described.
[0129] Figure 5 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0130] like Figure 5 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include, but are not limited to: at least one processing unit 410, at least one storage unit 420, a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410), a display unit 440, etc.
[0131] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps according to various exemplary embodiments of the present invention described in the clipboard redirection transmission method section of the present specification. For example, the processing unit 410 can execute the following steps: Figure 1 Follow the steps shown in .
[0132] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 4201 and / or a cache memory unit 4202 , and may further include a read-only memory unit (ROM) 4203 .
[0133] The storage unit 420 may also include a program / utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0134] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0135] The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 460. The network adapter 460 may communicate with other modules of the electronic device 400 via the bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0136] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation methods of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above-mentioned clipboard redirection transmission method according to the implementation methods of the present disclosure.
[0137] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A clipboard redirection transmission method, applied to a local end, characterized in that: The method includes: Based on the requesting end, the size of the file to be processed is compared with a preset file size threshold; if the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged; the local end receives the file request information of any package after the sub-package processing by the clipboard of the requesting end through the first unidirectional transmission channel; If the file request information of the first package is content request information and request information for creating a dedicated transmission channel; Collecting content information of the first packet and other packets, and creating a dedicated transmission channel; The content information of the first packet is sent to the requesting end through the second unidirectional transmission channel, and the content information of the remaining packets is sent to the temporary file storage center of the requesting end through the dedicated transmission channel; After the step of receiving the file request information of any package after the clipboard of the requesting end is processed through the first unidirectional transmission channel, the method further includes: Based on the requesting end, the size of the file to be processed is compared with a preset file size threshold; if the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged; if the file request information of any package is the content request information, the local end collects the content information of any package, and sends the content information of any package to the requesting end through the second unidirectional transmission channel.
2. The clipboard redirection transmission method according to claim 1, characterized in that: After the step of sending the content information of any one of the packets to the requesting end through the second unidirectional transmission channel and sending the content information of the remaining packets to the temporary file storage center of the requesting end through the dedicated transmission channel, the method further includes: When the requesting end fails to continuously obtain the content information of any one of the remaining packets within a preset number of times, the content request information of any one of the remaining packets is received through the first unidirectional transmission channel, the content information of any one of the remaining packets is collected, and the content information of any one of the remaining packets is sent to the requesting end through the second unidirectional transmission channel.
3. A clipboard redirection transmission method, applied to a requesting end, characterized in that: The method includes: Compare the size of the file to be processed with a preset file size threshold; If the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged; and sending the content request information of the to-be-processed file of the first package after the subpacketization and the request information for creating a dedicated transmission channel to the local end through the first unidirectional transmission channel; Receiving content information of the to-be-processed file in the first package through the second unidirectional transmission channel; storing the content information of the to-be-processed files of the remaining packages received through the dedicated transmission channel in a temporary file storage center; Obtaining content information of the to-be-processed files of the remaining packages in the temporary file storage center; After the step of comparing the size of the file to be processed with the preset file size threshold, the following step is further performed: If the size of the file to be processed is smaller than a preset file size threshold, the file to be processed is sub-packaged; and sending the content request information of the to-be-processed file of any of the divided packages to the local end through the first unidirectional transmission channel; The content information of the to-be-processed file of any package is received through the second unidirectional transmission channel.
4. The clipboard redirection transmission method according to claim 3, characterized in that: After the step of acquiring the content information of the to-be-processed files of the remaining packages in the temporary file storage center, the method further includes: Continuously obtaining content information of the to-be-processed file of any of the remaining packages within a preset number of times; If the acquisition fails, the content request information of the file to be processed of any of the remaining packets is sent to the local end through the first unidirectional transmission channel, and the content information of the file to be processed of any of the remaining packets is received through the second unidirectional transmission channel.
5. The clipboard redirection transmission method according to claim 4, characterized in that: The preset number of consecutive acquisitions ranges from 5 to 10 times, and the preset time range between two adjacent acquisitions ranges from 10 to 50 ms.
6. A shearboard redirection transmission device, characterized in that: include: An information receiving module, used for comparing the size of the file to be processed with a preset file size threshold based on the requesting end; If the size of the to-be-processed file is larger than the preset file size threshold, the to-be-processed file is sub-packaged; the local end receives the file request information of any package after the sub-package processing by the clipboard of the requesting end through the first unidirectional transmission channel; An information judgment module, used for determining if the file request information of the first package is content request information and request information for creating a dedicated transmission channel; An information collection and channel creation module, used to collect content information of the first package and other packages, and create a dedicated transmission channel; An information transmission module, used for sending the content information of the first package to the requesting end through the second unidirectional transmission channel, and sending the content information of the remaining packages to the temporary file storage center of the requesting end through the dedicated transmission channel; After the step of the information receiving module, it also includes: An information judgment submodule is used to compare the size of the file to be processed with a preset file size threshold based on the requesting end; if the size of the file to be processed is greater than the preset file size threshold, the file to be processed is sub-packaged; if the file request information of any package is the content request information, the local end collects the content information of any package, and sends the content information of any package to the requesting end through the second unidirectional transmission channel.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the clipboard redirection transmission method described in any one of claims 1 to 5 are implemented.
8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the steps of the clipboard redirection transmission method according to any one of claims 1 to 5 by executing the executable instructions.
