CN112788090B - Network resource transmission method, device and system - Google Patents

Network resource transmission method, device and system Download PDF

Info

Publication number
CN112788090B
CN112788090B CN202010382844.2A CN202010382844A CN112788090B CN 112788090 B CN112788090 B CN 112788090B CN 202010382844 A CN202010382844 A CN 202010382844A CN 112788090 B CN112788090 B CN 112788090B
Authority
CN
China
Prior art keywords
terminal
identifier
server
target
network resource
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.)
Active
Application number
CN202010382844.2A
Other languages
Chinese (zh)
Other versions
CN112788090A (en
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202010382844.2A priority Critical patent/CN112788090B/en
Publication of CN112788090A publication Critical patent/CN112788090A/en
Application granted granted Critical
Publication of CN112788090B publication Critical patent/CN112788090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a network resource transmission method, a device and a system, wherein when a resource transmission instruction is received, a first terminal sends a first request message carrying a terminal identifier of the first terminal to a server. When the first request message is received, the server generates a target transmission identifier, records the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sends a first response message carrying the target transmission identifier to the first terminal. The first terminal extracts the target transmission identifier from the first response message. The second terminal obtains the target transmission identification from the first terminal and sends the target network resource and the target transmission identification to the server. And the server determines a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier, and transmits the target network resource with the first terminal. Based on the above processing, the user operation can be simplified, and further, the efficiency of network resource transmission can be improved.

Description

Network resource transmission method, device and system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for transmitting network resources.
Background
With the rapid development of mobile terminals, users can process network resources through the mobile terminals. For example, a user may view office documents via a cell phone, or may view movies via a cell phone. In order to edit the office document conveniently, or to improve the experience of watching the movie, the user may transmit the office document in the mobile phone to the computer, or may transmit the movie resource to the computer.
In the prior art, if a user needs to transmit network resources in a mobile terminal to a computer, the user needs to use a data line to connect the mobile terminal and the computer, and then the user can access a storage space of the mobile terminal through the computer and copy corresponding network resources from the storage space of the mobile terminal to the storage space of the computer.
Therefore, in the above process, the user operation is complicated, resulting in lower efficiency of network resource transmission.
Disclosure of Invention
The embodiment of the invention aims to provide a network resource transmission method, device and system, which are used for solving the problem of low efficiency of network resource transmission. The specific technical scheme is as follows:
in order to achieve the above object, an embodiment of the present invention provides a network resource transmission system, including: the system comprises a first terminal, a second terminal and a server, wherein:
The first terminal is used for sending a first request message carrying a terminal identifier of the first terminal to the server when receiving a resource transmission instruction;
the server is used for generating a target transmission identifier for representing the current resource transmission when receiving the first request message, recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal;
the first terminal is further configured to extract, when the first response message is received, the target transmission identifier from the first response message;
the second terminal is configured to obtain the target transmission identifier from the first terminal, send a target network resource to be transmitted to the first terminal to the server, and send the target transmission identifier to the server;
and the server is further used for determining a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier when the target network resource and the target transmission identifier are received, and transmitting the target network resource with the first terminal.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission method, where the method is applied to a first terminal, and a network resource transmission system to which the first terminal belongs further includes a second terminal and a server, and the method includes:
when a resource transmission instruction is received, a first request message carrying a terminal identifier of the first terminal is sent to the server;
when a first response message corresponding to the first request message sent by the server is received, extracting a target transmission identifier from the first response message, so that the second terminal sends a target network resource to be transmitted to the first terminal by the second terminal to the server after acquiring the target transmission identifier from the first terminal, and sends the target transmission identifier to the server, wherein the target transmission identifier is a transmission identifier which is generated by the server when the first request message is received and used for representing the current resource transmission;
and acquiring the target network resource from the server.
Optionally, after the extracting the target transmission identifier from the first response message, the method further includes:
Generating a two-dimensional code for representing the target transmission identifier, and displaying the two-dimensional code so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
Optionally, before the obtaining the target network resource from the server, the method further includes:
when a reminding message sent by the server is received, a second request message for requesting the target network resource is sent to the server, wherein the reminding message is used for reminding the first terminal, and the server acquires the target network resource from the second terminal;
when a second response message corresponding to the second request message sent by the server is received, extracting a resource downloading link carried in the second response message;
the obtaining the target network resource from the server includes:
and downloading the storage space indicated by the link from the resource to acquire the target network resource.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission method, where the method is applied to a second terminal, and a network resource transmission system to which the second terminal belongs further includes a first terminal and a server, and the method includes:
Acquiring a target transmission identifier from the first terminal, wherein the target transmission identifier is a transmission identifier which is acquired from a server by the first terminal and used for representing the current resource transmission;
and sending the target network resource to be transmitted to the first terminal to the server, and sending the target transmission identifier to the server, so that the server determines the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier after receiving the target network resource and the target transmission identifier, and transmits the target network resource with the first terminal.
Optionally, the acquiring the target transmission identifier from the first terminal includes:
acquiring a two-dimensional code displayed by the first terminal;
and acquiring a target transmission identifier represented by the two-dimensional code.
Optionally, the sending the target network resource to be transmitted to the first terminal to the server, and sending the target transmission identifier to the server include:
sending a third request message carrying the target transmission identifier to the server;
And when a third response message corresponding to the third request message sent by the server is received, sending a target network resource to be transmitted to the first terminal this time to the server, wherein the third response message is used for notifying the second terminal to start the transmission of the resource this time.
Optionally, before the sending, to the server, the target network resource to be transmitted to the first terminal at this time, the method further includes:
displaying resource identifiers of alternative network resources, wherein the alternative network resources comprise network resources locally stored by the second terminal;
the sending the target network resource to be transmitted to the first terminal to the server includes:
when a resource selection instruction is received, compressing network resources to which the resource identification indicated by the resource selection instruction belongs in the displayed resource identifications to obtain the target network resources;
and sending the target network resource to the server.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission method, where the method is applied to a server, and a network resource transmission system to which the server belongs further includes a first terminal and a second terminal, and the method includes:
When a first request message which is sent by the first terminal and carries a terminal identifier of the first terminal is received, generating a target transmission identifier for representing the current resource transmission;
recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal so that the first terminal provides the target transmission identifier for the second terminal;
when receiving the target network resource and the target transmission identifier, which are transmitted to the first terminal by the second terminal, the second terminal determines the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier, and transmits the target network resource with the first terminal.
Optionally, the transmitting the target network resource with the first terminal includes:
sending a reminding message to the first terminal, wherein the reminding message is used for reminding the first terminal that the server has acquired the target network resource from the second terminal;
When a second request message for requesting the target network resource, which is sent by the first terminal, is received, a second response message carrying a resource download link corresponding to the target network resource is sent to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
Optionally, when receiving the target network resource and the target transmission identifier, which are sent by the second terminal and are to be transmitted to the first terminal by the second terminal, determining, according to the recorded correspondence between the transmission identifier and the terminal identifier, the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs, including:
when a third request message carrying the target transmission identifier and sent by the second terminal is received, a third response message corresponding to the third request message is sent to the second terminal, wherein the third response message is used for notifying the second terminal to start the current resource transmission;
When the second terminal receives the target network resource to be transmitted to the first terminal at this time according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission device, which is applied to a first terminal, where a network resource transmission system to which the first terminal belongs further includes a second terminal and a server, and the device includes:
the first sending module is used for sending a first request message carrying a terminal identifier of the first terminal to the server when receiving a resource transmission instruction;
the first extraction module is configured to, when receiving a first response message corresponding to the first request message sent by the server, extract a target transmission identifier from the first response message, so that after the second terminal obtains the target transmission identifier from the first terminal, send a target network resource to be transmitted to the first terminal by the second terminal to the server, and send the target transmission identifier to the server, where the target transmission identifier is a transmission identifier that is generated by the server when receiving the first request message and is used to represent current resource transmission;
And the acquisition module is used for acquiring the target network resource from the server.
Optionally, the apparatus further includes:
the generating module is used for generating a two-dimensional code used for representing the target transmission identifier and displaying the two-dimensional code so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
Optionally, the apparatus further includes:
the second sending module is used for sending a second request message for requesting the target network resource to the server when receiving the reminding message sent by the server, wherein the reminding message is used for reminding the first terminal, and the server acquires the target network resource from the second terminal;
the second extraction module is used for extracting a resource downloading link carried in the second response message when receiving the second response message corresponding to the second request message sent by the server;
the obtaining module is specifically configured to obtain the target network resource from the storage space indicated by the resource download link.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission device, which is applied to a second terminal, where a network resource transmission system to which the second terminal belongs further includes a first terminal and a server, and the device includes:
The acquisition module is used for acquiring a target transmission identifier from the first terminal, wherein the target transmission identifier is a transmission identifier which is acquired by the first terminal from a server and used for representing the current resource transmission;
and the sending module is used for sending the target network resource to be transmitted to the first terminal to the server, and sending the target transmission identifier to the server, so that the server determines the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier after receiving the target network resource and the target transmission identifier, and transmits the target network resource with the first terminal.
Optionally, the acquiring module is specifically configured to acquire a two-dimensional code displayed by the first terminal;
and acquiring a target transmission identifier represented by the two-dimensional code.
Optionally, the sending module is specifically configured to send a third request message carrying the target transmission identifier to the server;
and when a third response message corresponding to the third request message sent by the server is received, sending a target network resource to be transmitted to the first terminal this time to the server, wherein the third response message is used for notifying the second terminal to start the transmission of the resource this time.
Optionally, the apparatus further includes:
the display module is used for displaying resource identifiers of alternative network resources, wherein the alternative network resources comprise network resources locally stored by the second terminal;
the sending module is specifically configured to compress, when receiving a resource selection instruction, a network resource to which a resource identifier indicated by the resource selection instruction belongs in the displayed resource identifiers, so as to obtain the target network resource;
and sending the target network resource to the server.
In order to achieve the above object, an embodiment of the present invention provides a network resource transmission device, which is applied to a server, where a network resource transmission system to which the server belongs further includes a first terminal and a second terminal, and the device includes:
the generating module is used for generating a target transmission identifier for representing the current resource transmission when receiving a first request message which is sent by the first terminal and carries a terminal identifier of the first terminal;
the recording module is used for recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal so that the first terminal provides the target transmission identifier for the second terminal;
And the determining module is used for determining a first terminal to which a terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier when receiving the target network resource and the target transmission identifier, which are transmitted to the first terminal by the second terminal, and transmitting the target network resource with the first terminal.
Optionally, the determining module is specifically configured to send a reminder message to the first terminal, where the reminder message is used to remind the first terminal that the server has acquired the target network resource from the second terminal;
when a second request message for requesting the target network resource, which is sent by the first terminal, is received, a second response message carrying a resource download link corresponding to the target network resource is sent to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
Optionally, the determining module is specifically configured to, when receiving a third request message sent by the second terminal and carrying the target transmission identifier, send a third response message corresponding to the third request message to the second terminal, where the third response message is used to notify the second terminal to start the current resource transmission;
when the second terminal receives the target network resource to be transmitted to the first terminal at this time according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier.
The embodiment of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the network resource transmission method according to any one of the second aspect, the third aspect, or the fourth aspect when executing the program stored in the memory.
The embodiment of the invention also provides a computer readable storage medium, and a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the second aspect, the third aspect or any one of the steps of the network resource transmission method in the fourth aspect are realized.
The embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the network resource transmission method of the second aspect, or the third aspect, or any one of the fourth aspect.
According to the network resource transmission method provided by the embodiment of the invention, when a resource transmission instruction is received, a first terminal sends a first request message carrying a terminal identifier of the first terminal to a server. When a first request message is received, the server generates a target transmission identifier for representing the current resource transmission, records the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sends a first response message carrying the target transmission identifier to the first terminal. When the first response message is received, the first terminal extracts the target transmission identification from the first response message. The second terminal obtains the target transmission identification from the first terminal, sends the target network resource to be transmitted to the first terminal to the server, and sends the target transmission identification to the server. When the target network resource and the target transmission identifier are received, the server determines a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier, and transmits the target network resource with the first terminal.
Based on the above processing, the second terminal may obtain, from the first terminal, a target transmission identifier for indicating the current resource transmission, and send, to the server, the target network resource and the target transmission identifier to be transmitted to the first terminal. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the second terminal to the storage space of the first terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a block diagram of a network resource transmission system according to an embodiment of the present invention;
fig. 2 is a flowchart of a network resource transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a network resource transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart of a network resource transmission method according to an embodiment of the present invention;
fig. 5 is a flowchart of an example of a network resource transmission method according to an embodiment of the present invention;
fig. 6 is a block diagram of a network resource transmission device according to an embodiment of the present invention;
fig. 7 is a block diagram of a network resource transmission device according to an embodiment of the present invention;
fig. 8 is a block diagram of a network resource transmission device according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the prior art, if a user needs to transmit network resources in a mobile terminal to a computer, the user needs to use a data line to connect the mobile terminal and the computer, and then the user can access a storage space of the mobile terminal through the computer and copy corresponding network resources from the storage space of the mobile terminal to the storage space of the computer.
Therefore, in the above process, the user operation is complicated, resulting in lower efficiency of network resource transmission.
In order to solve the above-mentioned problems, referring to fig. 1, fig. 1 is a block diagram of a network resource transmission system according to an embodiment of the present invention, which is a possible application scenario. The network resource transmission system includes: the system comprises a first terminal, a second terminal and a server.
When receiving the resource transmission instruction, the first terminal sends a first request message carrying a terminal identifier of the first terminal to the server.
When a first request message is received, the server generates a target transmission identifier for representing the current resource transmission, records the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sends a first response message carrying the target transmission identifier to the first terminal.
When the first response message is received, the first terminal extracts the target transmission identification from the first response message.
The second terminal obtains the target transmission identification from the first terminal, sends the target network resource to be transmitted to the first terminal to the server, and sends the target transmission identification to the server.
When the target network resource and the target transmission identifier are received, the server determines a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier, and transmits the target network resource with the first terminal.
Based on the network resource transmission system provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the second terminal to the storage space of the first terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
Referring to fig. 2, fig. 2 is a flowchart of a network resource transmission method provided by an embodiment of the present invention, where the method is applied to a first terminal, and a network resource transmission system to which the first terminal belongs further includes a second terminal and a server, and the method may include the following steps:
s201: and when receiving the resource transmission instruction, sending a first request message carrying the terminal identification of the first terminal to the server.
S202: when a first response message corresponding to the first request message sent by the server is received, extracting a target transmission identifier from the first response message, so that the second terminal sends the target network resource to be transmitted to the first terminal by the second terminal to the server after acquiring the target transmission identifier from the first terminal, and sends the target transmission identifier to the server.
The target transmission identifier is generated by the server when the first request message is received, and is used for representing the transmission identifier of the current resource transmission.
S203: the target network resource is obtained from the server.
Based on the network resource transmission method provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the first terminal to the storage space of the second terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
In step S201, the first terminal may be a desktop computer, the second terminal may be a mobile terminal, for example, the second terminal may be a mobile phone, a tablet computer, or other devices. Alternatively, the first terminal may be installed in a desktop computer in the form of an application program, and the second terminal may be installed in a mobile terminal in the form of a corresponding application program. For example, the first terminal may be an office application installed in a desktop computer, and the second terminal may be a corresponding office application installed in a mobile terminal. The network resources may include video resources, music resources, office documents, and the like.
When the user needs to transmit the network resource stored in the second terminal to the first terminal, the user may input a resource transmission instruction to the first terminal. Correspondingly, when the first terminal receives the resource transmission instruction, a request message (i.e. a first request message) carrying the terminal identifier of the first terminal can be sent to the server. The terminal identification of the first terminal may be represented by a user ID (identification number) of a user currently logged into the first terminal. The user ID of a user may be represented by the user's registered account or by the user's registered phone number, but is not limited thereto.
In one implementation, a "resource transfer" button may be provided in the user interface of the first terminal, and the user may click on the "resource transfer" button to input a resource transfer instruction to the first terminal. Further, the first terminal may send a first request message to the server.
After receiving the first request message, the server may generate a transmission identifier (i.e. a target transmission identifier) for indicating the current resource transmission, and send a response message (i.e. a first response message) carrying the target transmission identifier to the first terminal.
For example, the server may create a room for representing the correspondence between the terminals, and the terminals joining the same room may perform resource transmission with each other, and the target transmission identifier may be a room ID of the room created at this time.
In step S202, after receiving the first response message, the first terminal may extract the target transmission identifier carried in the first response message.
In one embodiment of the present invention, after extracting the target transmission identity from the first response message, the method may further comprise the steps of: and generating and displaying a two-dimensional code for representing the target transmission identifier, so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
In one implementation, the first terminal may generate a two-dimensional code for representing the target transmission identifier, and display the two-dimensional code in a user interface of the first terminal.
Correspondingly, the second terminal can acquire the two-dimensional code displayed by the first terminal and acquire the target transmission identifier represented by the two-dimensional code. For example, the user may call the camera function through the second terminal, scan the two-dimensional code displayed by the first terminal, and decode the two-dimensional code to obtain the target transmission identifier.
Furthermore, the second terminal may send the target transmission identifier to the server, and the network resource to be transmitted to the first terminal at this time (i.e. the target network resource), after the server receives the target network resource and the target transmission identifier, the server may determine, according to the recorded correspondence between the transmission identifier and the terminal identifier, the terminal identifier corresponding to the target transmission identifier, where the first terminal to which the terminal identifier belongs is the terminal that receives the target network resource at this time, and further, the server may perform transmission of the target network resource with the first terminal.
In step S203, in one implementation manner, after determining that the first terminal is the terminal that receives the target network resource, the server may directly send the target network resource to the first terminal, and correspondingly, the first terminal may receive the target network resource sent by the server.
Based on the above processing, the server can directly forward to the first terminal after obtaining the target network resource, so that the transmission time of the network resource can be saved, and further, the transmission efficiency of the network resource can be improved.
In one embodiment of the present invention, before step S203, the method may further include the steps of:
step one, when receiving the reminding message sent by the server, sending a second request message for requesting the target network resource to the server.
And step two, when a second response message corresponding to the second request message sent by the server is received, extracting a resource downloading link carried in the second response message.
Accordingly, step S203 may include the steps of: and obtaining the target network resource from the storage space indicated by the resource download link.
The reminding message is used for reminding the first terminal that the server has acquired the target network resource from the second terminal.
In one implementation manner, after determining that the first terminal is the terminal that receives the target network resource, the server may remind the first terminal that the server has acquired the target network resource from the second terminal. Further, the first terminal may request the server to acquire the target network resource after receiving the alert message.
Correspondingly, after receiving the second request message, the server may send a response message (i.e., a second response message) carrying a resource download link corresponding to the target network resource to the first terminal.
After receiving the second response message, the first terminal may extract the resource download link carried in the second response message.
In one implementation, after extracting the resource download link, the first terminal may directly obtain the target network resource from the storage space indicated by the resource download link.
In another implementation, the first terminal may display the resource download link in the user interface after extracting the resource download link. When the target network resource needs to be acquired, the user can click on the resource downloading link displayed by the first terminal, and then the first terminal can acquire the target network resource from the storage space indicated by the resource downloading link.
The storage space indicated by the resource download link may be a storage space in a server, or may be a storage space of another storage device for storing network resources.
Therefore, after the first terminal acquires the resource downloading link, the first terminal can acquire the target network resource according to the instruction of the user when the user needs, so that the personalized requirement of the user can be met, and the user experience is improved.
In addition, after the target network resource is obtained, if the target network resource is a compressed file, the first terminal may decompress the target network resource to obtain the network resource transmitted at this time.
Referring to fig. 3, fig. 3 is a flowchart of a network resource transmission method provided by an embodiment of the present invention, where the method is applied to a second terminal, and a network resource transmission system to which the second terminal belongs further includes a first terminal and a server, and the method may include the following steps:
s301: and acquiring the target transmission identification from the first terminal.
The target transmission identifier is a transmission identifier obtained by the first terminal from the server and used for representing the current resource transmission.
S302: and sending the target network resource to be transmitted to the first terminal to the server, and sending the target transmission identifier to the server, so that the server determines the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier after receiving the target network resource and the target transmission identifier, and transmits the target network resource with the first terminal.
Based on the network resource transmission method provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the second terminal to the storage space of the first terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
In one embodiment of the present invention, step S301 may include the steps of:
step 1, acquiring a two-dimensional code displayed by a first terminal.
And step 2, acquiring a target transmission identifier represented by the two-dimensional code.
Wherein the first terminal and the second terminal may be referred to the detailed description in the above embodiments.
In one implementation, when a user needs to transmit a network resource stored in the second terminal to the first terminal, the user may input a resource transmission instruction to the first terminal. Correspondingly, when the first terminal receives the resource transmission instruction, a first request message carrying the terminal identification of the first terminal can be sent to the server.
After receiving the first request message, the server may generate a target transmission identifier for indicating the current resource transmission, and send a first response message carrying the target transmission identifier to the first terminal.
After receiving the first response message, the first terminal may extract the target transmission identifier from the first response message, and then the first terminal may generate and display a two-dimensional code for representing the target transmission identifier.
Correspondingly, the second terminal can acquire the two-dimensional code displayed by the first terminal, and decode the acquired two-dimensional code to obtain the target transmission identifier represented by the two-dimensional code. For example, the user may call the camera function through the second terminal, scan the two-dimensional code displayed by the first terminal, and decode the two-dimensional code to obtain the target transmission identifier.
In step S302, in one implementation, after the second terminal obtains the target transmission identifier, the second terminal may directly send the target transmission identifier to the server, and the target network resource to be transmitted to the first terminal at this time.
Based on the processing, the transmission time of the network resource can be saved, and the transmission efficiency of the network resource can be improved.
In one embodiment of the present invention, step S302 may include the steps of:
step one, a third request message carrying a target transmission identifier is sent to a server.
And step two, when a third response message corresponding to the third request message sent by the server is received, sending the target network resource to the server.
The third response message is used for notifying the second terminal to start the current resource transmission.
In one implementation, after acquiring the target transmission identifier, the second terminal may send a request message (i.e., a third request message) carrying the target transmission identifier to the server, so as to request to start transmitting the target network resource from the server. In addition, the third request message may further carry a terminal identifier of the second terminal, where the terminal identifier of the second terminal may be represented by a user ID of a user currently logged in to the second terminal.
The server may send a third response message to the second terminal after receiving the third request message to inform the second terminal of the transmission target network resource. Further, the second terminal may send the target network resource to the server after receiving the third response message.
After receiving the target network resource, the server can search the corresponding relation between the recorded transmission identifier and the terminal identifier, determine the terminal identifier corresponding to the received target transmission identifier, wherein the first terminal to which the terminal identifier belongs is the terminal for receiving the target network resource, and further, the server can transmit the target network resource with the first terminal.
In one embodiment of the present invention, the method may further comprise the steps of, prior to sending the target network resource to the server: and displaying the resource identification of the alternative network resource.
Accordingly, step S302 may include the steps of: when a resource selection instruction is received, compressing network resources to which the resource identifier indicated by the resource selection instruction in the displayed resource identifiers belongs to, so as to obtain target network resources; and sending the target network resource to the server.
Wherein the alternative network resource may comprise a network resource stored locally by the second terminal. For example, the alternative network resource may be a video resource, a music resource, an office document, etc., stored locally by the second terminal. The resource identifier of the candidate network resource may be a resource name of each candidate network resource, or may be a thumbnail of each candidate network resource, but is not limited thereto.
In one implementation, the second terminal may display the resource identification of the locally stored network resource (i.e., the alternative network resource) after receiving the third response message. Accordingly, the user may browse the resource identifier displayed by the second terminal, and select the resource identifier (may be referred to as a target resource identifier) of the network resource to be transmitted to the first terminal this time.
Correspondingly, the second terminal can determine the target resource identifier selected by the user, obtain the network resource to which the target resource identifier belongs from the local, and then compress the obtained network resource to obtain the compressed network resource (i.e. the target network resource). Further, the second terminal may send the target network resource to the server.
In addition, the second terminal may also directly send the network resource to which the target resource identifier belongs to the server.
In one implementation manner, if the number of network resources to which the target resource identifier belongs is multiple, the second terminal may sequentially send the network resources to which the target resource identifier belongs to the server according to the order in which the user selects the target resource identifier, and after sending the last network resource to the server, the second terminal may further send a reminder message for reminding the server that the current resource transmission is completed to the server.
Referring to fig. 4, fig. 4 is a flowchart of a network resource transmission method provided by an embodiment of the present invention, where the method is applied to a server, and a network resource transmission system to which the server belongs further includes a first terminal and a second terminal, and the method may include the following steps:
s401: when a first request message which is sent by a first terminal and carries a terminal identifier of the first terminal is received, a target transmission identifier for representing the current resource transmission is generated.
S402: and recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal so that the first terminal provides the target transmission identifier for the second terminal.
S403: when receiving a target network resource and a target transmission identifier, which are sent by a second terminal, the second terminal transmits the target network resource and the target transmission identifier to the first terminal, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier, and transmitting the target network resource with the first terminal.
Based on the network resource transmission method provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the second terminal to the storage space of the first terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
In step S401, when the user needs to transmit the network resource stored in the second terminal to the first terminal, the user may input a resource transmission instruction to the first terminal. When the first terminal receives the resource transmission instruction, a first request message carrying a terminal identifier of the first terminal can be sent to the server.
Accordingly, after receiving the first request message, the server may generate a transmission identifier (i.e., a target resource transmission identifier) for indicating the current resource transmission. For example, the server may create a room for representing the correspondence between the terminals, and the terminals joining the same room may perform resource transmission with each other, and the target transmission identifier may be a room ID of the room created at this time.
In step S402, the server may further extract the terminal identifier of the first terminal carried in the first request message, record the correspondence between the target transmission identifier and the terminal identifier of the first terminal, and then send a response message (i.e., the first response message) carrying the target transmission identifier to the first terminal.
After receiving the first response message, the first terminal can extract the target transmission identifier carried in the first response message and provide the target transmission identifier for the second terminal. Correspondingly, the second terminal can acquire the target transmission identifier from the first terminal, and further, the second terminal can send the target transmission identifier and the target network resource to be transmitted to the first terminal to the server.
In step S403, after receiving the target network resource, the server may store the target network resource locally, or the server may store the target network resource in another storage device for storing network resources.
In one embodiment of the present invention, step S403 may include the steps of:
step 1, when a third request message carrying a target transmission identifier and sent by a second terminal is received, a third response message corresponding to the third request message is sent to the second terminal.
And step 2, when receiving the target network resource to be transmitted to the first terminal by the second terminal according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier.
The third response message is used for notifying the second terminal to start the current resource transmission.
In one implementation, after acquiring the target transmission identifier, the second terminal may send a request message (i.e., a third request message) carrying the target transmission identifier to the server, so as to request to start transmitting the target network resource from the server.
After receiving the third request message, the server may send a third response message to the second terminal to inform the second terminal to start transmitting the target network resource. Correspondingly, after receiving the third response message, the second terminal may send the target network resource to be transmitted to the first terminal to the server.
After receiving the target network resource, the server can search the corresponding relation between the locally recorded transmission identifier and the terminal identifier, determine the terminal identifier corresponding to the received target transmission identifier, and further, the server can determine the first terminal to which the terminal identifier belongs, namely the terminal receiving the target network resource.
In one implementation, after determining that the first terminal is the terminal that receives the target network resource, the server may directly send the target network resource to the first terminal. Accordingly, the first terminal may receive the target network resource.
Based on the above processing, the server can directly forward to the first terminal after obtaining the target network resource, so that the transmission time of the network resource can be saved, and further, the transmission efficiency of the network resource can be improved.
In one embodiment of the present invention, step S403 may include the steps of:
Step one, a reminding message is sent to a first terminal.
Step two, after receiving a second request message for requesting the target network resource sent by the first terminal, sending a second response message carrying a resource download link of the target network resource to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and obtaining the target network resource from the storage space indicated by the resource download link.
The reminding message is used for reminding the first terminal that the server has acquired the target network resource from the second terminal.
In one implementation, after determining the first terminal that receives the target network resource, the server may further remind the first terminal that the server has acquired the target network resource from the second terminal. Correspondingly, after receiving the reminding message, the first terminal can request the server to acquire the target network resource.
After receiving the second request message, the server may determine a storage space storing the target network resource and generate a resource download link for representing the storage space, and then the server may send a response message (i.e., a second response message) carrying the resource download link to the first terminal.
Correspondingly, after receiving the second response message, the first terminal may download the storage space indicated by the link from the resource carried in the second response message, and acquire the target network resource. The method for the first terminal to acquire the target network resource may be described in detail in the above embodiment.
Referring to fig. 5, fig. 5 is a flowchart of an example of a network resource transmission method according to an embodiment of the present invention, where the method may include the following steps:
s501: when receiving the resource transmission instruction, the first terminal sends a first request message carrying a terminal identifier of the first terminal to the server.
S502: when the first request message is received, the server generates a target transmission identifier for representing the current resource transmission, and records the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal.
S503: the server sends a first response message carrying the target transmission identification to the first terminal.
S504: when the first response message is received, the first terminal extracts the target transmission identification from the first response message and displays the target transmission identification in the form of a two-dimensional code.
S505: the second terminal obtains the two-dimension code displayed by the first terminal and obtains the target transmission identification represented by the two-dimension code.
S506: and the second terminal sends a third request message carrying the target transmission identification to the server.
S507: and when the third request message is received, the server sends a third response message corresponding to the third request message to the second terminal.
The third response message is used for notifying the second terminal to start the current resource transmission.
And S508, when the third response message is received, the second terminal sends the target network resource to be transmitted to the first terminal to the server.
S509: when receiving the target network resource, the server determines a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier.
S5010: and the server sends a reminding message to the first terminal.
The reminding message is used for reminding the first terminal that the server has acquired the target network resource from the second terminal.
S5011: when the reminding message is received, the first terminal sends a second request message to the server.
Wherein the second request message is for requesting the target network resource from the server.
S5012: and when the second request message is received, the server sends a second response message carrying a resource downloading link corresponding to the target network resource to the first terminal.
S5013: and when the second response message is received, the first terminal extracts the resource downloading link carried in the second response message.
S5014: and the first terminal acquires the target network resource from the storage space indicated by the resource download link.
Corresponding to the method embodiment of fig. 2, referring to fig. 6, fig. 6 is a block diagram of a network resource transmission device provided by the embodiment of the present invention, where the device is applied to a first terminal, and the network resource transmission system to which the first terminal belongs further includes a second terminal and a server, and the device includes:
a first sending module 601, configured to send, when receiving a resource transmission instruction, a first request message carrying a terminal identifier of the first terminal to the server;
a first extracting module 602, configured to extract, when a first response message corresponding to the first request message sent by the server is received, a target transmission identifier from the first response message, so that after the second terminal obtains the target transmission identifier from the first terminal, send, to the server, a target network resource to be transmitted to the first terminal by the second terminal this time, and send, to the server, the target transmission identifier, where the target transmission identifier is a transmission identifier that is generated by the server when the first request message is received and used to represent transmission of this time resource;
An obtaining module 603, configured to obtain the target network resource from the server.
Optionally, the apparatus further includes:
the generating module is used for generating a two-dimensional code used for representing the target transmission identifier and displaying the two-dimensional code so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
Optionally, the apparatus further includes:
the second sending module is used for sending a second request message for requesting the target network resource to the server when receiving the reminding message sent by the server, wherein the reminding message is used for reminding the first terminal, and the server acquires the target network resource from the second terminal;
the second extraction module is used for extracting a resource downloading link carried in the second response message when receiving the second response message corresponding to the second request message sent by the server;
the obtaining module 603 is specifically configured to obtain the target network resource from the storage space indicated by the resource download link.
Based on the network resource transmission device provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the first terminal to the storage space of the second terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
Corresponding to the method embodiment of fig. 3, referring to fig. 7, fig. 7 is a block diagram of a network resource transmission device provided by the embodiment of the present invention, where the device is applied to a second terminal, and the network resource transmission system to which the second terminal belongs further includes a first terminal and a server, and the device includes:
an obtaining module 701, configured to obtain a target transmission identifier from the first terminal, where the target transmission identifier is a transmission identifier obtained by the first terminal from a server and used to represent current resource transmission;
and the sending module 702 is configured to send, to the server, a target network resource to be transmitted to the first terminal, and send, to the server, the target transmission identifier, so that after the server receives the target network resource and the target transmission identifier, the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs is determined according to the recorded correspondence between the transmission identifier and the terminal identifier, and the transmission of the target network resource is performed with the first terminal.
Optionally, the acquiring module 701 is specifically configured to acquire the two-dimensional code displayed by the first terminal;
and acquiring a target transmission identifier represented by the two-dimensional code.
Optionally, the sending module 702 is specifically configured to send a third request message carrying the target transmission identifier to the server;
and when a third response message corresponding to the third request message sent by the server is received, sending a target network resource to be transmitted to the first terminal this time to the server, wherein the third response message is used for notifying the second terminal to start the transmission of the resource this time.
Optionally, the apparatus further includes:
the display module is used for displaying resource identifiers of alternative network resources, wherein the alternative network resources comprise network resources locally stored by the second terminal;
the sending module 702 is specifically configured to compress, when receiving a resource selection instruction, a network resource to which a resource identifier indicated by the resource selection instruction belongs in the displayed resource identifiers, so as to obtain the target network resource;
and sending the target network resource to the server.
Based on the network resource transmission device provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the first terminal to the storage space of the second terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
Corresponding to the method embodiment of fig. 4, referring to fig. 8, fig. 8 is a block diagram of a network resource transmission device provided by the embodiment of the present invention, where the device is applied to a server, and the network resource transmission system to which the server belongs further includes a first terminal and a second terminal, and the device includes:
a generating module 801, configured to generate, when receiving a first request message sent by the first terminal and carrying a terminal identifier of the first terminal, a target transmission identifier for indicating the current resource transmission;
a recording module 802, configured to record a correspondence between the target transmission identifier and a terminal identifier of the first terminal, and send a first response message carrying the target transmission identifier to the first terminal, so that the first terminal provides the target transmission identifier to the second terminal;
and the determining module 803 is configured to determine, when receiving the target network resource and the target transmission identifier, which are sent by the second terminal and are to be transmitted to the first terminal by the second terminal, a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded correspondence between the transmission identifier and the terminal identifier, and transmit the target network resource with the first terminal.
Optionally, the determining module 803 is specifically configured to send a reminder message to the first terminal, where the reminder message is used to remind the first terminal that the server has acquired the target network resource from the second terminal;
when a second request message for requesting the target network resource, which is sent by the first terminal, is received, a second response message carrying a resource download link corresponding to the target network resource is sent to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
Optionally, the determining module 803 is specifically configured to, when receiving a third request message sent by the second terminal and carrying the target transmission identifier, send a third response message corresponding to the third request message to the second terminal, where the third response message is used to notify the second terminal to start the current resource transmission;
when the second terminal receives the target network resource to be transmitted to the first terminal at this time according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the corresponding relation between the recorded transmission identifier and the terminal identifier.
Based on the network resource transmission device provided by the embodiment of the invention, the second terminal can acquire the target transmission identifier for representing the current resource transmission from the first terminal, and send the target network resource and the target transmission identifier to be transmitted to the first terminal to the server. After receiving the target network resource, the server may perform transmission of the target network resource with the first terminal. Further, the first terminal may obtain the target network resource from the server. Compared with the prior art, the network resource transmission method provided by the embodiment of the invention has the advantages that the user can manually copy the target network resource from the storage space of the first terminal to the storage space of the second terminal, so that the user operation can be simplified, and the network resource transmission efficiency can be improved.
The embodiment of the present invention also provides an electronic device, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 perform communication with each other through the communication bus 904,
a memory 903 for storing a computer program;
the processor 901 is configured to implement the steps of the network resource transmission method described in the above embodiment when executing the program stored in the memory 903.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium, in which a computer program is stored, the computer program implementing the steps of the network resource transmission method described in the above embodiment when being executed by a processor.
In yet another embodiment of the present invention, a computer program product containing instructions, which when run on a computer, causes the computer to perform the network resource transmission method described in the above embodiment is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, systems, electronic devices, computer readable storage media, and computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant points are found in the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (17)

1. A network resource transmission system, the network resource transmission system comprising: the system comprises a first terminal, a second terminal and a server, wherein:
the first terminal is used for sending a first request message carrying a terminal identifier of the first terminal to the server when receiving a resource transmission instruction;
the server is used for generating a target transmission identifier for representing the current resource transmission when receiving the first request message, recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal;
the first terminal is further configured to extract, when the first response message is received, the target transmission identifier from the first response message;
the second terminal is configured to obtain the target transmission identifier from the first terminal, send a target network resource to be transmitted to the first terminal to the server, and send the target transmission identifier to the server;
The server is further configured to determine, when the target network resource and the target transmission identifier are received, a first terminal to which a terminal identifier corresponding to the target transmission identifier belongs according to a recorded correspondence between the target transmission identifier and the terminal identifier, and perform transmission of the target network resource with the first terminal;
the second terminal is specifically configured to display a resource identifier of an alternative network resource, where the alternative network resource includes a network resource locally stored by the second terminal; when a resource selection instruction is received, compressing network resources to which the resource identification indicated by the resource selection instruction belongs in the displayed resource identifications to obtain the target network resources; transmitting the target network resource to the server;
the server is specifically configured to, when receiving a third request message sent by the second terminal and carrying the target transmission identifier, send a third response message corresponding to the third request message to the second terminal, where the third response message is used to notify the second terminal to start the current resource transmission; when receiving the target network resource to be transmitted to the first terminal by the second terminal according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier;
The first terminal is specifically configured to send, when receiving a reminder message sent by the server, a second request message for requesting the target network resource to the server, where the reminder message is used to remind the first terminal, and the server has acquired the target network resource from the second terminal; when a second response message corresponding to the second request message sent by the server is received, extracting a resource downloading link carried in the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
2. A network resource transmission method, wherein the method is applied to a first terminal, and the network resource transmission system to which the first terminal belongs further comprises a second terminal and a server, and the method comprises:
when a resource transmission instruction is received, a first request message carrying a terminal identifier of the first terminal is sent to the server;
when a first response message corresponding to the first request message sent by the server is received, extracting a target transmission identifier from the first response message, so that the second terminal sends a target network resource to be transmitted to the first terminal by the second terminal to the server after acquiring the target transmission identifier from the first terminal, and sends the target transmission identifier to the server, wherein the target transmission identifier is a transmission identifier which is generated by the server when the first request message is received and used for representing the current resource transmission;
Acquiring the target network resource from the server;
before the obtaining the target network resource from the server, the method further comprises:
when a reminding message sent by the server is received, a second request message for requesting the target network resource is sent to the server, wherein the reminding message is used for reminding the first terminal, and the server acquires the target network resource from the second terminal;
when a second response message corresponding to the second request message sent by the server is received, extracting a resource downloading link carried in the second response message;
the obtaining the target network resource from the server includes:
and downloading the storage space indicated by the link from the resource to acquire the target network resource.
3. The method of claim 2, wherein after said extracting the target transmission identity from the first response message, the method further comprises:
generating a two-dimensional code for representing the target transmission identifier, and displaying the two-dimensional code so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
4. A network resource transmission method, wherein the method is applied to a second terminal, and the network resource transmission system to which the second terminal belongs further comprises a first terminal and a server, and the method comprises:
acquiring a target transmission identifier from the first terminal, wherein the target transmission identifier is a transmission identifier which is acquired from a server by the first terminal and used for representing the current resource transmission;
the method comprises the steps of sending a target network resource to be transmitted to the first terminal to the server, sending the target transmission identifier to the server, enabling the server to determine a first terminal to which a terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier after receiving the target network resource and the target transmission identifier, and transmitting the target network resource with the first terminal;
before the sending the target network resource to be transmitted to the first terminal to the server, the method further includes:
displaying resource identifiers of alternative network resources, wherein the alternative network resources comprise network resources locally stored by the second terminal;
The sending the target network resource to be transmitted to the first terminal to the server includes:
when a resource selection instruction is received, compressing network resources to which the resource identification indicated by the resource selection instruction belongs in the displayed resource identifications to obtain the target network resources;
and sending the target network resource to the server.
5. The method of claim 4, wherein the obtaining the target transmission identifier from the first terminal comprises:
acquiring a two-dimensional code displayed by the first terminal;
and acquiring a target transmission identifier represented by the two-dimensional code.
6. The method of claim 4, wherein the sending the target network resource to be transmitted to the first terminal to the server and the target transmission identifier to the server comprise:
sending a third request message carrying the target transmission identifier to the server;
and when a third response message corresponding to the third request message sent by the server is received, sending a target network resource to be transmitted to the first terminal this time to the server, wherein the third response message is used for notifying the second terminal to start the transmission of the resource this time.
7. A network resource transmission method, wherein the method is applied to a server, and the network resource transmission system to which the server belongs further comprises a first terminal and a second terminal, and the method comprises:
when a first request message which is sent by the first terminal and carries a terminal identifier of the first terminal is received, generating a target transmission identifier for representing the current resource transmission;
recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal so that the first terminal provides the target transmission identifier for the second terminal;
when receiving a target network resource and the target transmission identifier, which are transmitted to the first terminal by the second terminal, sent by the second terminal, determining a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier, and transmitting the target network resource with the first terminal;
when receiving the target network resource and the target transmission identifier, which are sent by the second terminal and are to be transmitted to the first terminal by the second terminal, determining, according to the recorded correspondence between the target transmission identifier and the terminal identifier, a first terminal to which the terminal identifier corresponding to the target transmission identifier belongs, including:
When a third request message carrying the target transmission identifier and sent by the second terminal is received, a third response message corresponding to the third request message is sent to the second terminal, wherein the third response message is used for notifying the second terminal to start the current resource transmission;
when the second terminal receives the target network resource to be transmitted to the first terminal at this time according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier.
8. The method of claim 7, wherein the transmitting the target network resource with the first terminal comprises:
sending a reminding message to the first terminal, wherein the reminding message is used for reminding the first terminal that the server has acquired the target network resource from the second terminal;
when a second request message for requesting the target network resource, which is sent by the first terminal, is received, a second response message carrying a resource download link corresponding to the target network resource is sent to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
9. A network resource transmission device, wherein the device is applied to a first terminal, and a network resource transmission system to which the first terminal belongs further comprises a second terminal and a server, and the device comprises:
the first sending module is used for sending a first request message carrying a terminal identifier of the first terminal to the server when receiving a resource transmission instruction;
the first extraction module is configured to, when receiving a first response message corresponding to the first request message sent by the server, extract a target transmission identifier from the first response message, so that after the second terminal obtains the target transmission identifier from the first terminal, send a target network resource to be transmitted to the first terminal by the second terminal to the server, and send the target transmission identifier to the server, where the target transmission identifier is a transmission identifier that is generated by the server when receiving the first request message and is used to represent current resource transmission;
an acquisition module, configured to acquire the target network resource from the server;
the apparatus further comprises:
the second sending module is used for sending a second request message for requesting the target network resource to the server when receiving the reminding message sent by the server, wherein the reminding message is used for reminding the first terminal, and the server acquires the target network resource from the second terminal;
The second extraction module is used for extracting a resource downloading link carried in the second response message when receiving the second response message corresponding to the second request message sent by the server;
the obtaining module is specifically configured to obtain the target network resource from the storage space indicated by the resource download link.
10. The apparatus of claim 9, wherein the apparatus further comprises:
the generating module is used for generating a two-dimensional code used for representing the target transmission identifier and displaying the two-dimensional code so that the second terminal obtains the target transmission identifier based on the two-dimensional code.
11. A network resource transmission device, wherein the device is applied to a second terminal, and a network resource transmission system to which the second terminal belongs further comprises a first terminal and a server, and the device comprises:
the acquisition module is used for acquiring a target transmission identifier from the first terminal, wherein the target transmission identifier is a transmission identifier which is acquired by the first terminal from a server and used for representing the current resource transmission;
the sending module is used for sending the target network resource to be transmitted to the first terminal to the server, and sending the target transmission identifier to the server, so that the server determines the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier after receiving the target network resource and the target transmission identifier, and transmits the target network resource with the first terminal;
The apparatus further comprises:
the display module is used for displaying resource identifiers of alternative network resources, wherein the alternative network resources comprise network resources locally stored by the second terminal;
the sending module is specifically configured to compress, when receiving a resource selection instruction, a network resource to which a resource identifier indicated by the resource selection instruction belongs in the displayed resource identifiers, so as to obtain the target network resource;
and sending the target network resource to the server.
12. The device of claim 11, wherein the acquiring module is specifically configured to acquire the two-dimensional code displayed by the first terminal;
and acquiring a target transmission identifier represented by the two-dimensional code.
13. The apparatus according to claim 11, wherein the sending module is specifically configured to send a third request message carrying the target transmission identifier to the server;
and when a third response message corresponding to the third request message sent by the server is received, sending a target network resource to be transmitted to the first terminal this time to the server, wherein the third response message is used for notifying the second terminal to start the transmission of the resource this time.
14. A network resource transmission device, wherein the device is applied to a server, and a network resource transmission system to which the server belongs further comprises a first terminal and a second terminal, and the device comprises:
the generating module is used for generating a target transmission identifier for representing the current resource transmission when receiving a first request message which is sent by the first terminal and carries a terminal identifier of the first terminal;
the recording module is used for recording the corresponding relation between the target transmission identifier and the terminal identifier of the first terminal, and sending a first response message carrying the target transmission identifier to the first terminal so that the first terminal provides the target transmission identifier for the second terminal;
the determining module is used for determining a first terminal to which a terminal identifier corresponding to a target transmission identifier belongs according to a recorded corresponding relation between the target transmission identifier and the terminal identifier when receiving the target network resource and the target transmission identifier, which are transmitted to the first terminal by the second terminal, and transmitting the target network resource with the first terminal;
The determining module is specifically configured to, when receiving a third request message sent by the second terminal and carrying the target transmission identifier, send a third response message corresponding to the third request message to the second terminal, where the third response message is used to notify the second terminal to start the current resource transmission;
when the second terminal receives the target network resource to be transmitted to the first terminal at this time according to the third response message, determining the first terminal to which the terminal identifier corresponding to the target transmission identifier belongs according to the recorded corresponding relation between the target transmission identifier and the terminal identifier.
15. The apparatus according to claim 14, wherein the determining module is specifically configured to send a reminder message to the first terminal, where the reminder message is used to remind the first terminal that the server has acquired the target network resource from the second terminal;
when a second request message for requesting the target network resource, which is sent by the first terminal, is received, a second response message carrying a resource download link corresponding to the target network resource is sent to the first terminal, so that the first terminal extracts the resource download link carried in the second response message after receiving the second response message; and downloading the storage space indicated by the link from the resource to acquire the target network resource.
16. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 2-3, or 4-6, or 7-8 when executing a program stored on a memory.
17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 2-3, or 4-6, or 7-8.
CN202010382844.2A 2020-05-08 2020-05-08 Network resource transmission method, device and system Active CN112788090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010382844.2A CN112788090B (en) 2020-05-08 2020-05-08 Network resource transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010382844.2A CN112788090B (en) 2020-05-08 2020-05-08 Network resource transmission method, device and system

Publications (2)

Publication Number Publication Date
CN112788090A CN112788090A (en) 2021-05-11
CN112788090B true CN112788090B (en) 2023-06-23

Family

ID=75749132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010382844.2A Active CN112788090B (en) 2020-05-08 2020-05-08 Network resource transmission method, device and system

Country Status (1)

Country Link
CN (1) CN112788090B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070592A (en) * 2021-11-09 2022-02-18 乐美科技股份私人有限公司 Resource downloading method, device, terminal and server
CN114827674B (en) * 2022-03-30 2023-09-05 北京奇艺世纪科技有限公司 Network resource display method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012034309A1 (en) * 2010-09-19 2012-03-22 中兴通讯股份有限公司 Method, terminal and system for file transfers between session initiation protocol (sip) terminals in network address translation (nat) network
CN103475638A (en) * 2013-07-29 2013-12-25 深圳市融创天下科技股份有限公司 Media-data transmission method and system
CN104683403A (en) * 2013-11-29 2015-06-03 中国电信股份有限公司 Method, resource server and system for resource sharing
CN105357321A (en) * 2015-12-11 2016-02-24 北京元心科技有限公司 File transmission method based on abstract value, terminal, and file server
CN106170023A (en) * 2016-08-31 2016-11-30 网宿科技股份有限公司 The processing method of a kind of Internet resources, device, system and server
CN109729043A (en) * 2017-10-30 2019-05-07 华为技术有限公司 Prevent the methods, devices and systems of attack message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012034309A1 (en) * 2010-09-19 2012-03-22 中兴通讯股份有限公司 Method, terminal and system for file transfers between session initiation protocol (sip) terminals in network address translation (nat) network
CN103475638A (en) * 2013-07-29 2013-12-25 深圳市融创天下科技股份有限公司 Media-data transmission method and system
CN104683403A (en) * 2013-11-29 2015-06-03 中国电信股份有限公司 Method, resource server and system for resource sharing
CN105357321A (en) * 2015-12-11 2016-02-24 北京元心科技有限公司 File transmission method based on abstract value, terminal, and file server
CN106170023A (en) * 2016-08-31 2016-11-30 网宿科技股份有限公司 The processing method of a kind of Internet resources, device, system and server
CN109729043A (en) * 2017-10-30 2019-05-07 华为技术有限公司 Prevent the methods, devices and systems of attack message

Also Published As

Publication number Publication date
CN112788090A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
CN108495185B (en) Video title generation method and device
CN104508689B (en) A kind of Quick Response Code processing method and terminal
CN111159269B (en) Data processing method, device and system
WO2019019645A1 (en) Method and apparatus for executing information pushing task, and computer device and storage medium
CN104253741A (en) Information sending method and device and system thereof
CN112788090B (en) Network resource transmission method, device and system
US20150379471A1 (en) Management system for transmission of electronic business card based on telephone number linkage and method therefor
CN108334516B (en) Information pushing method and device
CN104811485A (en) Resource sharing method
CN110838969B (en) Picture transmission method, device, equipment and medium
CN104639973B (en) Information pushing method and device
AU2018403361B2 (en) Data transmission
CN103023730A (en) Systems and methods for performing quick link communications
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN108255898B (en) Page display method and device
CN112764838A (en) Target content display method and device and electronic equipment
CN102916999A (en) Server apparatus and information processing apparatus
CN109408758B (en) Page display method, device, server and medium based on data processing
CN114979256B (en) Message pushing method and device, electronic equipment and computer readable medium
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN109391537B (en) Information processing method and device and computer storage medium
CN112016280B (en) File editing method and device and computer readable medium
CN111414495B (en) Multimedia data acquisition method, device and computer readable storage medium
CN107423410A (en) A kind of data managing method, device and mobile terminal

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
GR01 Patent grant
GR01 Patent grant