CN113934553A - Shear plate redirection transmission method and device, storage medium and electronic equipment - Google Patents

Shear plate redirection transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113934553A
CN113934553A CN202111197856.9A CN202111197856A CN113934553A CN 113934553 A CN113934553 A CN 113934553A CN 202111197856 A CN202111197856 A CN 202111197856A CN 113934553 A CN113934553 A CN 113934553A
Authority
CN
China
Prior art keywords
file
transmission channel
information
packet
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111197856.9A
Other languages
Chinese (zh)
Inventor
康伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202111197856.9A priority Critical patent/CN113934553A/en
Publication of CN113934553A publication Critical patent/CN113934553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure relates to a method and a device for redirecting and transmitting a clipboard, a storage medium and electronic equipment. The method comprises the following steps: receiving the file request information of any package subjected to sub-packaging processing by a clipboard of a request end through a first one-way transmission channel; if the file request information of any packet is file content request information and request information for creating a special transmission channel; collecting the file content information of any one package and the rest packages, and establishing a special transmission channel; and the file content information of any one packet is sent to a request end through a second one-way transmission channel, and the file content information of the rest packets is sent to a temporary file storage center of the request end through a special transmission channel. The method and the device can reduce the times of sending and responding the request, improve the transmission rate of the shear plate, and do not need to add a packet header, pack or unpack.

Description

Shear plate redirection transmission method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a method and an apparatus for redirecting and transmitting a clipboard, a storage medium, and an electronic device.
Background
In the cloud era, more and more desktops and applications run in the cloud environment, and the local PC is connected to the cloud through the remote desktop to enjoy the high-speed and safe running environment of the cloud environment. There are numerous ways of sharing data between remote environments and the local, with the transfer of data through a clipboard being one of the most convenient ways. The method comprises the steps that on a local PC, copying operation is executed, a clipboard format list is sent to a far end through a connecting channel of a local desktop and a far-end desktop, after the far end receives the clipboard format list, the clipboard format list is injected into a remote system clipboard, and at the moment, the system clipboard can be triggered to complete a clipboard data request through pasting operation in a remote desktop environment.
In the related art, the content of the paste data is very large, for example, a file is as large as several G to several tens G. At this time, the remote desktop triggering and pasting, such as the file manager, does not issue a request of several G to several tens G of file contents at a time, but requests the file contents uniformly and orderly through the system clipboard and a package-by-package sub-package.
After the pasting operation is executed on the remote desktop, the file manager on the remote desktop requests file contents with a certain size, such as 4K, through a system clipboard, sends the request command to the local through a connecting channel of the local desktop and the remote desktop, collects the file contents of 4K after the command is received locally, and returns the content data of the 4K file to a data request end of the remote desktop through the connecting channel of the local desktop and the remote desktop. After receiving the 4K file content, actively triggering a second 4K file content request. When the file content is large, the subsequent process is repeatedly operated according to the process, and the same process is repeatedly repeated back and forth until the file content request is processed.
Therefore, there is a need to provide a new technical solution to improve one or more of the problems in the above solutions. For example: the network requests and response times are excessive, and the sending and requesting of bidirectional data need to be completed for 2n times; for each packet of response data, extra packet header information is required to be added to record the uniqueness of the data, such as data format marks, data size and the like, and corresponding unpacking processing matters need to be carried out at a receiving end; all requests and responses sent are completed in the only connection channel between the local desktop and the remote desktop.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a clipboard redirection transmission method, apparatus, storage medium, and electronic device, thereby overcoming, at least to some extent, one or more of the problems due to the limitations and disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a clipboard redirection transmission method, including:
receiving the file request information of any package subjected to sub-packaging processing by a clipboard of a request end through a first one-way transmission channel;
if the file request information of any packet is file content request information and request information for creating a special transmission channel;
collecting the file content information of any one package and the rest packages, and establishing a special transmission channel;
and sending the file content information of any packet to a request end through a second one-way transmission channel, and sending the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
In an exemplary embodiment of the disclosure, after the step of receiving, through the first unidirectional transmission channel, the file request information of any one of the packets processed by the clipboard sub-packaging of the request end, the method further includes:
if the file request information of any packet is the file content request information;
and collecting the file content information of any packet, and sending the file content information of any packet to the request end through the second one-way transmission channel.
In an exemplary embodiment of the present disclosure, after the step of sending the file content information of any packet to the request end through the second unidirectional transmission channel, and sending the file content information of the remaining packets to the temporary file storage center of the request end through the dedicated transmission channel, the method further includes:
when the request end fails to continuously acquire the file content information of any one of the rest of packets within the preset times, the file content request information of any one of the rest of packets is received through the first unidirectional transmission channel, the file content information of any one of the rest of packets is collected, and the file content information of any one of the rest of packets is sent to the request end through the second unidirectional transmission channel.
According to a second aspect of the embodiments of the present disclosure, there is provided a clipboard redirection transmission method, including:
comparing the size of the file to be processed with a preset file size threshold;
if the size of the file to be processed is larger than the preset file size threshold, performing sub-packet processing on the file to be processed;
sending the content request information of the to-be-processed file of the 1 st packet and the request information for creating the special transmission channel to a local terminal through a first one-way transmission channel;
receiving the content information of the file to be processed of the 1 st packet through a second one-way transmission channel;
storing the content information of the files to be processed of the rest packets received through the special transmission channel to a temporary file storage center;
and acquiring the content information of the files to be processed of the rest packages in the temporary file storage center.
In an exemplary embodiment of the present disclosure, the step of comparing the size of the file to be processed with the preset file size threshold further includes:
if the size of the file to be processed is smaller than a preset file size threshold, performing sub-packet processing on the file to be processed;
sending the content request information of the to-be-processed file of any one packet after subpackaging to the local terminal through the first one-way transmission channel;
and receiving the content information of the file to be processed of any packet through a second one-way transmission channel.
In an exemplary embodiment of the present disclosure, after the step of obtaining content information of the to-be-processed file of the remaining packages in the temporary file storage center, the method further includes:
continuously acquiring content information of the file to be processed of any one of the rest of packages within preset times;
if the acquisition fails, the content request information of the file to be processed of any one of the rest of packets is sent to the local terminal through the first unidirectional transmission channel, and the content information of the file to be processed of any one of the rest of packets is received through the second unidirectional transmission channel.
In an exemplary embodiment of the present disclosure, the preset number of times of continuous acquisition ranges from 5 to 10 times, and the preset time range between two adjacent times ranges from 10 to 50 ms.
According to a third aspect of the embodiments of the present disclosure, there is provided a shear plate redirection transport device, including:
the information receiving module is used for receiving the file request information of any package subjected to sub-packaging processing by the clipboard of the request end through the first one-way transmission channel;
the information judgment module is used for judging whether the file request information of any packet is file content request information or request information for creating a special transmission channel;
the information acquisition and channel creation module is used for acquiring the file content information of any one packet and the other packets and creating a special transmission channel;
and the information transmission module is used for transmitting the file content information of any one packet to a request end through a second one-way transmission channel, and transmitting the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the clipboard redirection transport method described in any of the above embodiments.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the clipboard redirection transport method of any of the above embodiments via execution of the executable instructions.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in an embodiment of the present disclosure, with the adoption of the method for redirecting and transmitting a clipboard provided by the above embodiment, on one hand, file request information of any one package is received through a first unidirectional transmission channel, and when the file request information of any one package is file content request information and request information for creating a dedicated transmission channel, the collected file content information of any one package is sent to a request end through a second transmission channel, on the other hand, the collected file content information of the rest packages is sent to a temporary file storage center of the request end through the dedicated transmission channel, and the file content information of the rest packages is directly obtained from a temporary file storage; in the process, two one-way transmission channels, namely a first one-way transmission channel and a second one-way transmission channel, are established, so that data of the local end and the request end respectively go through different channels to support data parallel transmission; on the basis of the original single channel, a special transmission channel for transmitting the content of the large file is added, the content of the file is transmitted by the special transmission channel without adding a packet head or packaging, and a request end does not need to unpack and is directly delivered to a temporary file storage center for storage; in addition, the times of sending requests and responding requests are reduced in the process, the transmission rate of the shear plate is improved, and a header is not required to be added, the package is not required to be packed, and the unpacking is not required.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically illustrates a flow diagram of a clipboard redirection transport method in an exemplary embodiment of the disclosure;
fig. 2 schematically illustrates a flow diagram of a clipboard redirection transport method in an exemplary embodiment of the disclosure;
fig. 3 schematically illustrates a block diagram of a shear plate redirection transport in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a program product in an exemplary embodiment of the disclosure;
fig. 5 schematically illustrates an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of 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.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
First, in this example embodiment, there is provided a method for redirecting and transmitting a clipboard, which, referring to fig. 1, may include:
step S101: receiving the file request information of any package subjected to sub-packaging processing by a clipboard of a request end through a first one-way transmission channel;
step S102: if the file request information of any packet is file content request information and request information for creating a special transmission channel;
step S103: collecting the file content information of any one package and the rest packages, and establishing a special transmission channel;
step S104: and sending the file content information of any packet to a request end through a second one-way transmission channel, and sending the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
According to the method, on one hand, when the file request information of any packet is received through a first one-way transmission channel and is the file content request information and the request information for creating a special transmission channel, the acquired file content information of any packet is sent to a request end through a second transmission channel, on the other hand, the acquired file content information of the rest packets is sent to a temporary file storage center of the request end through the special transmission channel, and the file content information of the rest packets is directly acquired from a temporary file storage; in the process, two one-way transmission channels, namely a first one-way transmission channel and a second one-way transmission channel, are established, so that data of the local end and the request end respectively go through different channels to support data parallel transmission; on the basis of the original single channel, a special transmission channel for transmitting the content of the large file is added, when the content information of the file is transmitted by the special transmission channel, a packet head is not added, the file is not packaged, and a request end does not need to be unpacked and is directly sent to a temporary file storage center for storage; in addition, the times of sending requests and responding requests are reduced in the process, the transmission rate of the shear plate is improved, and a header is not required to be added, the package is not required to be packed, and the unpacking is not required.
Hereinafter, the respective steps of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 1.
In step S101, receiving, through a first unidirectional transmission channel, file request information of any one of the packages that is subjected to the packetization processing by the clipboard of the request side;
illustratively, the content of the pasted data is very large, for example, a file is as large as several G to several tens G, the file request information needs to be uniformly and orderly packetized through a clipboard, and the file request information of any packet after being packetized is transmitted to the local end through the first unidirectional transmission channel.
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;
illustratively, after the local end receives the file request information of any packet after being subjected to the subpackage processing through the first unidirectional transmission channel, when the file of any packet after being subjected to the subpackage processing is a large file, the file request information of any packet is the file content request information and the request information for creating the dedicated transmission channel, that is, the local end is triggered to collect the file content information of any packet and the file content information of the other packets, and the local end is triggered to create the dedicated transmission channel.
In step S103, collecting file content information of the arbitrary packet and the remaining packets, and creating a dedicated transmission channel;
the following are exemplary: when the file request information of any one packet received by the local end is the file content request information and the information for creating the special transmission channel, the local end collects the file content information of any one packet and the other packets, and meanwhile, the local end creates the special transmission channel.
Step S104: and sending the file content information of any packet to a request end through a second one-way transmission channel, and sending the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
Illustratively, the file content information of any one of the packets collected by the local end is sent to the request end through the second unidirectional transmission channel, and the file content information of the other packets is sent to the temporary file storage center of the request end through the dedicated transmission channel. Through the special transmission channel, the blockage of the first one-way transmission channel and the second one-way transmission channel is avoided, and the transmission rate is improved.
In one embodiment, the any one packet is the 1 st packet, and the remaining packets are the 2 nd to nth packets. After the sub-packaging processing of the clipboard, when the file request information of the 1 st package is received through the first unidirectional transmission channel, and when the file of the 1 st package is a large file, the file request information corresponding to the 1 st package comprises file content request information and request information for creating a special transmission channel, the local end collects the file content information of the 1 st package, and simultaneously collects the file content information of the 2 nd package to the nth package, the file content information of the 1 st package is transmitted to the request end through the second transmission channel, the file content information of the 2 nd package to the nth package is transmitted to the temporary file storage center of the request end through the special transmission channel, and when the file content information is transmitted through the special transmission channel, the special transmission channel does not add a packet header and does not pack, and the request end does not need to unpack and is directly sent to the temporary file storage center for storage.
In one embodiment, after the step of receiving, through the first unidirectional transmission channel, the file request information of any one of the packets processed by the clipboard sub-packaging of the request end, the method further includes:
if the file request information of any packet is the file content request information;
and collecting the file content information of any packet, and sending the file content information of any packet to the request end through the second one-way transmission channel.
Illustratively, when the file of any packet is a small file, that is, the file request information of any packet is file content request information, the local end collects the file content information of any packet, and sends the file content information of any packet to the requesting end through the second unidirectional transmission channel. In the process, when the file of any packet is a small file, a special transmission channel is not required to be created, the file content request information and the file content information of any packet from the 1 st packet to the nth packet are respectively transmitted through two unidirectional transmission channels, and the remote transmission rate of the whole file content is increased.
In one embodiment, after the step of sending the file content information of any packet to a requesting end through a second unidirectional transmission channel, and sending the file content information of the remaining packets to a temporary file storage center of the requesting end through the dedicated transmission channel, the method further includes:
when the request end fails to continuously acquire the file content information of any one of the rest of packets within the preset times, the file content request information of any one of the rest of packets is received through the first unidirectional transmission channel, the file content information of any one of the rest of packets is collected, and the file content information of any one of the rest of packets is sent to the request end through the second unidirectional transmission channel.
Illustratively, when the request end fails to continuously acquire the file content information of any one of the remaining packets within the preset number of times, the file content request information of any one of the remaining packets is sent to the local end through the first unidirectional transmission channel, the local end acquires the file content information of any one of the remaining packets, and sends the acquired file content information of any one of the remaining packets to the request end through the second unidirectional transmission channel. The preset frequency range obtained continuously is 5-10 times, and the preset time range between two adjacent times is 10-50 ms. Specifically, the preset number of consecutive acquisitions may be 5, and the preset time between two consecutive acquisitions may be 10ms, which is not limited in this example.
According to the method, on one hand, when the file request information of any packet is received through a first one-way transmission channel and is the file content request information and the request information for creating a special transmission channel, the acquired file content information of any packet is sent to a request end through a second transmission channel, on the other hand, the acquired file content information of the rest packets is sent to a temporary file storage center of the request end through the special transmission channel, and the file content information of the rest packets is directly acquired from a temporary file storage; in the process, two one-way transmission channels, namely a first one-way transmission channel and a second one-way transmission channel, are established, so that data of the local end and the request end respectively go through different channels to support data parallel transmission; on the basis of the original single channel, a special transmission channel for transmitting the content of the large file is added, when the content information of the file is transmitted by the special transmission channel, a packet head is not added, the file is not packaged, and a request end does not need to be unpacked and is directly sent to a temporary file storage center for storage; in addition, the times of sending requests and responding requests are reduced in the process, the transmission rate of the shear plate is improved, and a header is not required to be added, the package is not required to be packed, and the unpacking is not required.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
Further, in the present exemplary embodiment, a clipboard redirection transmission method is also provided. The method comprises the following steps:
step S201: comparing the size of the file to be processed with a preset file size threshold;
step S202: if the size of the file to be processed is larger than the preset file size threshold, performing sub-packet processing on the file to be processed;
step S203: sending the content request information of the to-be-processed file of the 1 st packet and the request information for creating the special transmission channel to a local terminal through a first one-way transmission channel;
step S204: receiving the content information of the file to be processed of the 1 st packet through a second one-way transmission channel;
step S205: storing the content information of the files to be processed of the rest packets received through the special transmission channel to a temporary file storage center;
step S206: and acquiring the content information of the files to be processed of the rest packages in the temporary file storage center.
Next, the respective steps of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 2.
In step S201, comparing the size of the file to be processed with a preset file size threshold;
for example, before the files to be processed are respectively processed by the clipboard of the request terminal, the request terminal presets according to a preset file size, determines the size of the files to be processed, compares the size of the files to be processed with a preset file size threshold, and performs sub-packaging processing on the size of the files to be processed if the size of the files to be processed is larger than the preset file size threshold, that is, the transmission condition of the large files is met.
In step S202, if the size of the file to be processed is greater than the preset file size threshold, performing packet processing on the file to be processed;
for example, if the size of the file to be processed is larger than a preset file size threshold, that is, a large file transmission condition is met, the size of the file to be processed is subjected to sub-packet processing.
In step S203, the content request information of the to-be-processed file and the request information for creating a dedicated transmission channel of the 1 st packet after packetization are sent to the local end through a first unidirectional transmission channel;
illustratively, when the file to be processed satisfies the transmission of the large file, and the file to be processed is subjected to sub-packet processing, whether the file to be processed is the file to be processed of the 1 st packet is determined, if the file to be processed of the 1 st packet is the file to be processed of the 1 st packet, the content request information of the file to be processed of the 1 st packet and the request information for creating the dedicated transmission channel are sent to the local terminal through the first unidirectional transmission channel, and the dedicated transmission channel is used for transmitting the large file.
In step S204, receiving content information of the to-be-processed file of the 1 st packet through a second unidirectional transmission channel;
illustratively, the local side collects the content information of the files to be processed of the 1 st packet and the rest packets based on the received content request information of the files to be processed of the 1 st packet and the request information of the creation dedicated transmission channel, and creates the dedicated transmission channel at the same time, and sends the collected content information of the files to be processed of the 1 st packet to the request side through the second unidirectional transmission channel.
In step S205, the content information of the pending file of the remaining packets received through the dedicated transmission channel is stored to the temporary file storage center.
Illustratively, the content information of the files to be processed of the rest packets is sent to the temporary storage center of the request end through a special transmission channel. Wherein the remaining packets are the 2 nd to nth packets.
In step S206, content information of the to-be-processed file of the remaining packages is acquired in the temporary file storage center.
Illustratively, the request end acquires content information of the files to be processed of the rest packages through a temporary file storage center in the request end.
In one embodiment, the step of comparing the size of the file to be processed with the preset file size threshold further includes:
if the size of the file to be processed is smaller than a preset file size threshold, performing sub-packet processing on the file to be processed;
sending the content request information of the to-be-processed file of any one packet after subpackaging to the local terminal through the first one-way transmission channel;
and receiving the content information of the file to be processed of any packet through a second one-way transmission channel.
Illustratively, the request end judges the size of the file to be processed according to a preset file size threshold, if the size of the file to be processed is smaller than the preset file size threshold, the transmission of the small file is met, and the clipboard of the request end still performs sub-package processing on the file to be processed; when small files are transmitted, a special transmission channel is not needed to be established, after the content request information of the to-be-processed files of any one packet after being subpackaged is sent to the local terminal through the first one-way transmission channel, the local terminal collects the content information of the to-be-processed files of any one packet after being subpackaged, and the request terminal receives the content information of the to-be-processed files of any one packet through the second one-way transmission channel.
In one embodiment, after the step of obtaining the content information of the to-be-processed file of the remaining packages in the temporary file storage center, the method further includes:
continuously acquiring content information of the file to be processed of any one of the rest of packages within preset times;
if the acquisition fails, the content request information of the file to be processed of any one of the rest of packets is sent to the local terminal through the first unidirectional transmission channel, and the content information of the file to be processed of any one of the rest of packets is received through the second unidirectional transmission channel.
Illustratively, when the request end fails to continuously acquire the file content information of any one of the remaining packets within the preset number of times, the content request information of the file to be processed of any one of the remaining packets is sent to the local end through the first unidirectional transmission channel, the local end acquires the content information of the file to be processed of any one of the remaining packets, and sends the acquired content information of the file to be processed of any one of the remaining packets to the request end through the second unidirectional transmission channel.
In one embodiment, the preset number of times of continuous acquisition is in a range of 5 to 10 times, and the preset time between two adjacent times is in a range of 10 to 50 ms. For example, the preset number of consecutive acquisitions may be 5, and the preset time between two consecutive acquisitions may be 10ms, which is not limited in this example.
Further, in this example embodiment, a shear plate redirection transmission device is also provided. Referring to fig. 3, the apparatus includes:
the information receiving module 301 is configured to receive, through a first unidirectional transmission channel, file request information of any one of the packets after being subjected to sub-packaging processing by a clipboard of a request end;
an information determining module 302, configured to determine whether the file request information of any packet is file content request information or request information for creating a dedicated transmission channel;
an information acquisition and channel creation module 303, configured to acquire file content information of any one packet and the rest of the packets, and create a dedicated transmission channel;
an information transmission module 304, configured to send the file content information of any packet to a request end through a second unidirectional transmission channel, and send the file content information of the remaining packets to a temporary file storage center of the request end through the dedicated transmission channel.
In one embodiment, the apparatus further comprises: the information determining module 302 includes:
the information judgment submodule is used for judging whether the file request information of any packet is the file content request information or not;
and collecting the file content information of any packet, and sending the file content information of any packet to the request end through the second one-way transmission channel.
In one embodiment, the information transmission module 304 further comprises:
and the information transmission submodule is used for receiving the file content request information of any one of the rest of packets through the first unidirectional transmission channel, acquiring the file content information of any one of the rest of packets, and sending the file content information of any one of the rest of packets to the request terminal through the second unidirectional transmission channel when the request terminal fails to continuously acquire the file content information of any one of the rest of packets within a preset number of times.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units. The components shown as modules or units may or may not be physical units, i.e. may be located in one place or may also be distributed over a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium, on which a computer program is stored, which when executed by, for example, a processor, may implement the steps of the clipboard redirection transport method described in any of the above embodiments. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the clipboard redirection transport methods section above of this specification, when the program product is run on the terminal device.
Referring to fig. 4, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind 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).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the clipboard redirection transport method of any of the above embodiments via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 400 according to this embodiment of the invention is described below with reference to fig. 5.
The electronic device 400 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: at least one processing unit 410, at least one memory unit 420, a bus 430 that connects the various system components (including the memory unit 420 and the processing unit 410), a display unit 440, and the like.
Wherein the storage unit stores program code executable by the processing unit 410 to cause the processing unit 410 to perform steps according to various exemplary embodiments of the present invention described in the clipboard redirection transport methods section above in this specification. For example, the processing unit 410 may perform the steps as shown in fig. 1.
The storage unit 420 may include readable media in the form of volatile storage units, 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.
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 thereof, may comprise an implementation of a network environment.
Bus 430 may be any bus representing 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.
The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 400, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 400 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 450. Also, the electronic device 400 may 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 the network adapter 460. The network adapter 460 may communicate with other modules of the electronic device 400 via the bus 430. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with 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, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above-mentioned clipboard redirection transmission method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for shear plate redirection transport, the method comprising:
receiving the file request information of any package subjected to sub-packaging processing by a clipboard of a request end through a first one-way transmission channel;
if the file request information of any packet is file content request information and request information for creating a special transmission channel;
collecting the file content information of any one package and the rest packages, and establishing a special transmission channel;
and sending the file content information of any packet to a request end through a second one-way transmission channel, and sending the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
2. The clipboard redirection transmission method of claim 1, wherein said step of receiving, via the first unidirectional transmission channel, the file request information of any one of the packets processed by the clipboard packetization of the requesting end further comprises:
and if the file request information of any packet is the file content request information, acquiring the file content information of any packet, and sending the file content information of any packet to the request end through the second one-way transmission channel.
3. The method for redirecting file contents of a clipboard according to claim 1, wherein said step of sending said file contents information of any one of said packets to a requesting end via a second unidirectional transmission channel, and sending said file contents information of the remaining packets to a temporary file storage center of said requesting end via said dedicated transmission channel, further comprises:
when the request end fails to continuously acquire the file content information of any one of the rest of packets within the preset times, the file content request information of any one of the rest of packets is received through the first unidirectional transmission channel, the file content information of any one of the rest of packets is collected, and the file content information of any one of the rest of packets is sent to the request end through the second unidirectional transmission channel.
4. A method for shear plate redirection transport, the method comprising:
comparing the size of the file to be processed with a preset file size threshold;
if the size of the file to be processed is larger than the preset file size threshold, performing sub-packet processing on the file to be processed;
sending the content request information of the to-be-processed file of the 1 st packet and the request information for creating the special transmission channel to a local terminal through a first one-way transmission channel;
receiving the content information of the file to be processed of the 1 st packet through a second one-way transmission channel;
storing the content information of the files to be processed of the rest packets received through the special transmission channel to a temporary file storage center;
and acquiring the content information of the files to be processed of the rest packages in the temporary file storage center.
5. The clipboard redirect transport method of claim 4, wherein said step of comparing the size of the file to be processed to a preset file size threshold is further followed by:
if the size of the file to be processed is smaller than a preset file size threshold, performing sub-packet processing on the file to be processed;
sending the content request information of the to-be-processed file of any one packet after subpackaging to the local terminal through the first one-way transmission channel;
and receiving the content information of the file to be processed of any packet through a second one-way transmission channel.
6. The clipboard redirection transmission method of claim 4, wherein after the step of obtaining the content information of the pending file of the remaining packages in the temporary file storage center, further comprising:
continuously acquiring content information of the file to be processed of any one of the rest of packages within preset times;
if the acquisition fails, the content request information of the file to be processed of any one of the rest of packets is sent to the local terminal through the first unidirectional transmission channel, and the content information of the file to be processed of any one of the rest of packets is received through the second unidirectional transmission channel.
7. The shear plate redirection transmission method according to claim 6, wherein the preset number of times of continuous acquisition is in a range of 5-10 times, and the preset time between two adjacent times is in a range of 10-50 ms.
8. A shear plate redirection transport device, comprising:
the information receiving module is used for receiving the file request information of any package subjected to sub-packaging processing by the clipboard of the request end through the first one-way transmission channel;
the information judgment module is used for judging whether the file request information of any packet is file content request information or request information for creating a special transmission channel;
the information acquisition and channel creation module is used for acquiring the file content information of any one packet and the other packets and creating a special transmission channel;
and the information transmission module is used for transmitting the file content information of any one packet to a request end through a second one-way transmission channel, and transmitting the file content information of the rest packets to a temporary file storage center of the request end through the special transmission channel.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the clipboard redirection transport method of any of claims 1 to 3.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the clipboard redirection transport method of any of claims 1-3 via execution of the executable instructions.
CN202111197856.9A 2021-10-14 2021-10-14 Shear plate redirection transmission method and device, storage medium and electronic equipment Pending CN113934553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111197856.9A CN113934553A (en) 2021-10-14 2021-10-14 Shear plate redirection transmission method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111197856.9A CN113934553A (en) 2021-10-14 2021-10-14 Shear plate redirection transmission method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113934553A true CN113934553A (en) 2022-01-14

Family

ID=79279505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111197856.9A Pending CN113934553A (en) 2021-10-14 2021-10-14 Shear plate redirection transmission method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113934553A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001103020A (en) * 1999-10-01 2001-04-13 Sony Corp System for distributing source file, receiving terminal and portable telephone
CN1385970A (en) * 2002-06-25 2002-12-18 南京东大移动互联技术有限公司 Multiplexer parallel transmission broadband high-speed frequency-hopping communication method and device thereof
CN104468697A (en) * 2014-10-10 2015-03-25 浙江广播电视集团 Radio station data transmission load distribution method
CN104519075A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data transmission method and device
CN104580371A (en) * 2014-12-10 2015-04-29 北京邮电大学 Methods of fragmentation, transmission and copy control for file fixed size and changeable size in opportunistic network
CN105205082A (en) * 2014-06-27 2015-12-30 国际商业机器公司 Method and system for processing file storage in HDFS
CN105959298A (en) * 2016-06-24 2016-09-21 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN106331184A (en) * 2016-12-01 2017-01-11 网宿科技股份有限公司 Big data distribution method and distribution platform based on internet
CN106911567A (en) * 2017-01-13 2017-06-30 西北大学 The a plurality of fixed route bandwidth scheduling method towards in the high performance network of big data
CN109286641A (en) * 2017-07-19 2019-01-29 腾讯科技(深圳)有限公司 A kind of document transmission method and its device
CN112583889A (en) * 2020-11-18 2021-03-30 京信数据科技有限公司 Large file transmission method and device
CN113329523A (en) * 2020-02-28 2021-08-31 大唐移动通信设备有限公司 Data transmission method and terminal
CN113485854A (en) * 2021-06-23 2021-10-08 西安万像电子科技有限公司 Shear plate redirection method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001103020A (en) * 1999-10-01 2001-04-13 Sony Corp System for distributing source file, receiving terminal and portable telephone
CN1385970A (en) * 2002-06-25 2002-12-18 南京东大移动互联技术有限公司 Multiplexer parallel transmission broadband high-speed frequency-hopping communication method and device thereof
CN104519075A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data transmission method and device
CN105205082A (en) * 2014-06-27 2015-12-30 国际商业机器公司 Method and system for processing file storage in HDFS
CN104468697A (en) * 2014-10-10 2015-03-25 浙江广播电视集团 Radio station data transmission load distribution method
CN104580371A (en) * 2014-12-10 2015-04-29 北京邮电大学 Methods of fragmentation, transmission and copy control for file fixed size and changeable size in opportunistic network
CN105959298A (en) * 2016-06-24 2016-09-21 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN106331184A (en) * 2016-12-01 2017-01-11 网宿科技股份有限公司 Big data distribution method and distribution platform based on internet
CN106911567A (en) * 2017-01-13 2017-06-30 西北大学 The a plurality of fixed route bandwidth scheduling method towards in the high performance network of big data
CN109286641A (en) * 2017-07-19 2019-01-29 腾讯科技(深圳)有限公司 A kind of document transmission method and its device
CN113329523A (en) * 2020-02-28 2021-08-31 大唐移动通信设备有限公司 Data transmission method and terminal
CN112583889A (en) * 2020-11-18 2021-03-30 京信数据科技有限公司 Large file transmission method and device
CN113485854A (en) * 2021-06-23 2021-10-08 西安万像电子科技有限公司 Shear plate redirection method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MINGYU LIM 等: "C2CFTP: Direct and Indirect File Transfer Protocols Between Clients in Client-Server Architecture", 《IEEE ACCESS》, 1 June 2020 (2020-06-01), pages 102833 - 102845, XP011792324, DOI: 10.1109/ACCESS.2020.2998725 *
金海 等: "分布式存储系统中文件传输优化的设计与实现", 《华中科技大学学报(自然科学版)》, 30 January 2005 (2005-01-30), pages 4 - 6 *

Similar Documents

Publication Publication Date Title
CN107590001B (en) Load balancing method and device, storage medium and electronic equipment
CN102349064B (en) Method and apparatus for scalable monitoring of virtual machine environments
US11201836B2 (en) Method and device for managing stateful application on server
US20230118176A1 (en) Data transmission method and apparatus, computer-readable storage medium, electronic device, and computer program product
CN109756568A (en) Processing method, equipment and the computer readable storage medium of file
US8291432B2 (en) Providing invocation context to IMS service provider applications
CN113922995A (en) Cloud desktop sharing method and device, storage medium and electronic equipment
CN107357526B (en) Method and apparatus for processing network data, server, and storage medium
CN113761428A (en) Page rendering method, device and system, storage medium and electronic equipment
CN111427899A (en) Method, device, equipment and computer readable medium for storing file
CN114489622A (en) Js application, electronic device, and storage medium
CN111800223A (en) Method, device and system for generating sending message and processing receiving message
CN113760264A (en) Method and device for multiplexing components among multiple applications
CN116781586A (en) gRPC flow analysis method, device, equipment and medium
CN113934553A (en) Shear plate redirection transmission method and device, storage medium and electronic equipment
WO2023083071A1 (en) View interaction method and apparatus, electronic device, and computer readable medium
US8280950B2 (en) Automatic client-server code generator
CN111158661A (en) System interface docking method, device, medium and electronic equipment
CN116244234A (en) Data transmission method, device, electronic equipment and storage medium
US8918559B2 (en) Partitioning of a variable length scatter gather list
CN111711971B (en) Data transmission method and device, storage medium and electronic equipment
CN116263690A (en) Method and device for virtual machine to read data from external system and relevant written data
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium
US10216672B2 (en) System and method for preventing time out in input/output systems
CN113572809B (en) Single request source multi-target source data communication method, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination