CN106534268B - Data sharing method and device - Google Patents

Data sharing method and device Download PDF

Info

Publication number
CN106534268B
CN106534268B CN201610913562.4A CN201610913562A CN106534268B CN 106534268 B CN106534268 B CN 106534268B CN 201610913562 A CN201610913562 A CN 201610913562A CN 106534268 B CN106534268 B CN 106534268B
Authority
CN
China
Prior art keywords
terminal
data
shared
sharing
link path
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
CN201610913562.4A
Other languages
Chinese (zh)
Other versions
CN106534268A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610913562.4A priority Critical patent/CN106534268B/en
Publication of CN106534268A publication Critical patent/CN106534268A/en
Application granted granted Critical
Publication of CN106534268B publication Critical patent/CN106534268B/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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Landscapes

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

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a data sharing method and a device, wherein the method comprises the following steps: receiving data sharing information sent by a first terminal, wherein the data sharing information comprises a physical storage address of shared data; generating a shared link path according to the data sharing information, wherein the shared link path is used for indicating a network storage address of the shared data; receiving a data sharing request sent by a second terminal, wherein the data sharing request is used for requesting to acquire the shared data; and sending the sharing link path to the second terminal to trigger the second terminal to acquire the sharing data according to the sharing link path. By implementing the embodiment of the invention, the data sharing efficiency between the terminals can be improved.

Description

Data sharing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data sharing method and apparatus.
Background
The continuous development of the information age accelerates the communication of data information. In the information era, the realization of data sharing can make people fully use the existing data resources, and reduce the repeated labor and corresponding cost of data collection, data acquisition and the like. For example, when a user works at a home computer, the user can share the data of the company computer to the home computer through the cloud server without searching the data from the internet again, so that repeated searching of the data is avoided.
However, in practice, it is found that when a user shares data from one terminal to another terminal, the shared data must be transmitted twice, and the shared data is inefficient.
Disclosure of Invention
The embodiment of the invention discloses a data sharing method and device, which can improve the data sharing efficiency between terminals.
The first aspect of the embodiments of the present invention discloses a data sharing method, including:
receiving data sharing information sent by a first terminal, wherein the data sharing information comprises a physical storage address of shared data;
generating a shared link path according to the data sharing information, wherein the shared link path is used for indicating a network storage address of the shared data;
receiving a data sharing request sent by a second terminal, wherein the data sharing request is used for requesting to acquire the shared data;
and sending the sharing link path to the second terminal to trigger the second terminal to acquire the sharing data according to the sharing link path.
A second aspect of an embodiment of the present invention discloses a server, including:
the receiving unit is used for receiving data sharing information sent by a first terminal, and the data sharing information comprises a physical storage address of shared data;
a processing unit, configured to generate a shared link path according to the data sharing information received by the receiving unit, where the shared link path is used to indicate a network storage address of the shared data;
the receiving unit is further configured to receive a data sharing request sent by a second terminal, where the data sharing request is used to request to acquire the shared data;
and the sending unit is used for sending the shared link path generated by the processing unit to the second terminal so as to trigger the second terminal to acquire the shared data according to the shared link path.
In the embodiment of the invention, when the first terminal and the second terminal share data, the first terminal does not need to send the shared data to the server first, the first terminal can send the physical storage address of the shared data to the server, and the server generates a shared link path from the physical storage address; when the second terminal needs to download the shared data, the server may send the shared link path to the second terminal, and trigger the second terminal to obtain the shared data according to the shared link path. Therefore, by implementing the embodiment of the invention, when the data is shared between the terminals, the shared data does not need to be transmitted twice, and the data sharing efficiency between the terminals is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a data sharing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data sharing system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 4 is a computer system based on von neumann architecture for executing the above application interface switching method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items that are shared.
The embodiment can be applied to a scene that a plurality of terminals share data: for example, the first terminal and the second terminal, the first terminal needs to share the shared data a to the second terminal, the first terminal may send a physical storage address stored in the shared data a to the server, and the server generates a shared link path from the physical storage address; when a second terminal needs to share data a, the second terminal may send a data sharing request to the server, and the server may send the sharing link path to the second terminal; the second terminal may download the shared data a according to the shared link path.
The embodiment of the invention discloses a data sharing method and device, which can improve the data sharing efficiency between terminals. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data sharing method according to an embodiment of the present invention. As shown in fig. 1, the data sharing method may include the following steps.
S101, the server receives data sharing information sent by the first terminal, wherein the data sharing information comprises a physical storage address of shared data.
The server may refer to a computer device having computing power, storage capability, stability, and the like. For example, non-86 servers such as mainframes, minicomputers, UNIX servers, and x86 servers such as the colloquially known computer PC (english: personal computer) server, and the like. Alternatively, a personal computer with general performance may be used as the server.
The first terminal may refer to a user Device such as a personal computer, a smart phone, a tablet computer, a palmtop computer, a PDA, and a Mobile Internet Device (MID). In this embodiment, the user equipment related to the second terminal may be the same as the user equipment related to the first terminal, and details are not described here.
The shared data may refer to data stored in the first terminal and the first terminal needs to be shared with other terminals, wherein the shared data may include file material, video, audio, web page or application program. For example, if the first terminal is a personal computer PC, the personal computer PC may share the folder 1 and the folder 2 stored in the C-disc of the personal computer PC to other terminals. Or, the shared data may also refer to data that is stored in an external device connected to the first terminal and that the first terminal needs to share to other terminals, where the external device may refer to a usb disk or a hard disk that is inserted in the first terminal. For example, the USB disk is connected to the personal computer PC via a USB interface, and the personal computer PC can share the folder 3 stored in the USB disk with other terminals.
The physical storage address of the shared data may refer to a storage address of the shared data in the first terminal or an external device connected to the first terminal, for example, the first terminal is a personal computer PC, and the storage location of the shared data folder driver in the personal computer PC is C: \ Drivers, so that the physical storage address of the shared data folder driver is C: \ Drivers; for another example, if the shared data folder music is stored in an F disk, which is a U disk connected to a PC, and the storage location is F: \ music, the physical storage address of the shared data folder music is F: \ music.
S102, the server generates a sharing link path according to the data sharing information, wherein the sharing link path is used for indicating a network storage address of the shared data.
The shared link path may include a network storage address of the shared data generated in conjunction with protocols in the network and a physical storage address of the shared data, i.e., the terminal may access data stored in the terminal at the other end of the network through the shared link path in the network.
The shared link path may include a relative link path, that is, if the terminal sharing the data and the terminal receiving the shared data are in the same network, the same path portion of the two terminals in the network may be omitted, and then different path portions of the shared data are used as the shared link path. For example, a local area network is established between a terminal sharing shared data and a terminal receiving the shared data, the server may generate a shared link path \ \192.164.0.111\ movie according to a physical storage address sent by the terminal sharing the shared data, and the terminal receiving the shared data may access the shared data, i.e., the folder movie, stored in the terminal sharing the shared data according to \ \192.164.0.111\ movie, so that \ \192.164.0.111\ movie may serve as the shared link path.
Or, the shared link path may also include an absolute link path, that is, if the terminal sharing the data and the terminal receiving the shared data are not in the same network, a complete Uniform Resource Locator (URL) of the shared data may be used as the shared link path, for example, the shared link path is http:// localhost/ajax/chap02/page2-11. html.
S103, the server receives a data sharing request sent by the second terminal, wherein the data sharing request is used for requesting to acquire the shared data.
S104, the server sends the sharing link path to the second terminal to trigger the second terminal to acquire the sharing data according to the sharing link path.
When the shared link path is sent to the second terminal, the second terminal may automatically jump to a storage location indicated by the shared link path according to the shared link path; or the user may manually click on the shared link path and then jump to the storage location indicated by the shared link path. For example, if the shared link path is http:// localhost/ajax/chap02/page2-11.html, the user manually clicks http:// localhost/ajax/chap02/page2-11.html to open the web page.
Optionally, the data sharing information further includes an identifier of at least one passive sharing terminal, and the server generates a sharing link path corresponding to the identifier of each passive sharing terminal according to the identifier of each passive sharing terminal and the physical storage address.
The passive sharing terminal may refer to a terminal that passively receives the shared data, that is, a terminal to which the first terminal needs to share the shared data. For example, the first terminal is a terminal a, and the terminal a needs to share shared data with terminals B, C and D, then the terminals B, C and D may be the passive shared terminal. The identifier of the passive sharing terminal can be represented by one or more combinations of letters, numbers, Chinese characters and the like.
The server may receive the identifier and the at least one physical storage address of the at least one passive sharing terminal, and generate a shared link path corresponding to the identifier of each passive sharing terminal according to the received identifier and the received at least one physical storage address of the at least one passive sharing terminal.
For example, as shown in table 1, the identifier of the at least one passive sharing terminal may include terminal B, terminal C, and terminal D, and the at least one sharing link path may include \ \192.164.0.111\ movie, \ \192.164.0.111\ application, and http:// localhost/ajax/chap02/page2-11. html; the server can share the folder movie corresponding to \ \192.164.0.111\ movie to the terminal B, share the folder application corresponding to \ \192.164.0.111\ application to the terminal C and share the web page corresponding to http:// localhost/ajax/chap02/page2-11.html to the terminal D.
TABLE 1
Identification of passively shared terminals Shared link path
Terminal B \\192.164.0.111\movie
Terminal C \ \192.164.0.111\ application program
Terminal D http://localhost/ajax/chap02/page2-11.html
The data sharing request comprises an identifier of the second terminal, and after the data sharing request sent by the second terminal is received, the server judges whether the identifier of the second terminal exists in the identifier of the at least one passive sharing terminal; if the target shared link path exists, the server searches the corresponding target shared link path according to the identifier of the second terminal; the server sends the target sharing link path to the second terminal so as to trigger the second terminal to acquire the sharing data according to the target sharing link path.
The identification of the second terminal can be represented by one or a combination of numbers, letters or Chinese characters. For example, referring to table 1, if the identifier of the second terminal is terminal B, the server searches for \ \192.164.0.111\ movie, which is a target shared link path corresponding to terminal B; if the identifier of the second terminal is terminal C, the server searches for that the target shared link path corresponding to terminal C is \ \192.164.0.111\ application program, etc.
In the implementation of this embodiment, the server may selectively share data with respect to the passive sharing terminal, for example, the server may share important shared data to the terminal B instead of the terminals C and D, thereby avoiding leakage of important data when sharing data and protecting security of shared data.
Optionally, the data sharing information further includes an identifier of at least one passive sharing terminal and at least one shared data type, where the identifier of each passive sharing terminal corresponds to at least one shared data type, and the server generates a shared link path corresponding to each shared data type according to the physical storage address and each shared data type.
The shared data type may include video, games, applications, and the like.
As shown in table 2, the identities of the passive sharing terminals may be terminal B and terminal C, and the sharing data types may be video, games and applications. The shared data types corresponding to the terminal B are videos and games, the shared link paths corresponding to the videos and the games are \ \192.164.0.111\ movie and \ \192.164.0.111\ game respectively, the shared data type corresponding to the terminal C is an application program, and the shared link path corresponding to the application program is \ \192.164.0.111\ application program.
TABLE 2
Figure GDA0002232425030000061
Optionally, the data sharing request includes an identifier and a data type of the second terminal, and after the server receives the data sharing request sent by the second terminal, the server determines whether the identifier of the second terminal exists in the identifier of the at least one passive sharing terminal; if the target data type exists, the server searches the corresponding target data type according to the identifier of the second terminal; the server judges whether the target data type has the data type; if yes, the server searches a corresponding target shared link path according to the data type; and the server sends the target shared link path to the second terminal.
For example, referring to table 2, if the identifier of the second terminal is terminal B and the data type is video, the server searches for the target data type corresponding to terminal B as video and game, and searches for the target shared link path \ \192.164.0.111\ movie corresponding to the video, or, if the data type is game, the server may search for the target shared link path \ \192.164.0.111\ game, etc. corresponding to the game.
In this embodiment, by classifying the shared data, the second terminal may download a specific type of data in the shared data, instead of downloading all shared data, so that the download amount of the data packet in the system is reduced, and communication resources are saved.
In the method described in fig. 1, when the first terminal and the second terminal share data, the first terminal does not need to send the shared data to the server first, the first terminal may send a physical storage address of the shared data to the server, and the server generates a shared link path from the physical storage address; when the second terminal needs to download the shared data, the server may send the shared link path to the second terminal, and trigger the second terminal to obtain the shared data according to the shared link path. It can be seen that, by implementing the method described in fig. 1, when data is shared between terminals, it is not necessary to transmit the shared data twice, which improves the efficiency of sharing data between terminals.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data sharing system according to an embodiment of the present invention. As shown in fig. 2, the data sharing system may include the following steps.
S201, data sharing information sent by the first terminal, where the data sharing information includes a physical storage address of shared data.
The shared data may refer to data stored in the first terminal and the first terminal needs to be shared with other terminals, wherein the shared data may include file material, video, audio, web page or application program. For example, if the first terminal is a personal computer PC, the personal computer PC may share the folder 1 and the folder 2 stored in the C-disc of the personal computer PC to other terminals. Or, the shared data may also refer to data that is stored in an external device connected to the first terminal and that the first terminal needs to share to other terminals, where the external device may refer to a usb disk or a hard disk that is inserted in the first terminal. For example, the USB disk is connected to the personal computer PC via a USB interface, and the personal computer PC can share the folder 3 stored in the USB disk with other terminals.
The physical storage address of the shared data may refer to a storage address of the shared data in the first terminal or an external device connected to the first terminal, for example, the first terminal is a personal computer PC, and the storage location of the shared data folder driver in the personal computer PC is C: \ Drivers, so that the physical storage address of the shared data folder driver is C: \ Drivers; for another example, if the shared data folder music is stored in an F disk, which is a U disk connected to a PC, and the storage location is F: \ music, the physical storage address of the shared data folder music is F: \ music.
S202, the server receives the data sharing information and generates a sharing link path according to the data sharing information, wherein the sharing link path is used for indicating a network storage address of the shared data.
The shared link path may include a network storage address of the shared data generated in conjunction with protocols in the network and a physical storage address of the shared data, i.e., the terminal may access data stored in the terminal at the other end of the network through the shared link path in the network.
The shared link path may include a relative link path, that is, if the terminal sharing the data and the terminal receiving the shared data are in the same network, the same path portion of the two terminals in the network may be omitted, and then different path portions of the shared data are used as the shared link path. For example, a local area network is established between a terminal sharing shared data and a terminal receiving the shared data, the server may generate a shared link path \ \192.164.0.111\ movie according to a physical storage address sent by the terminal sharing the shared data, and the terminal receiving the shared data may access the shared data, i.e., the folder movie, stored in the terminal sharing the shared data according to \ \192.164.0.111\ movie, so that \ \192.164.0.111\ movie may serve as the shared link path.
Or, the shared link path may also include an absolute link path, that is, if the terminal sharing the data and the terminal receiving the shared data are not in the same network, a complete Uniform Resource Locator (URL) of the shared data may be used as the shared link path, for example, the shared link path is http:// localhost/ajax/chap02/page2-11. html.
S203, a data sharing request sent by the second terminal to the server, where the data sharing request is used to request to acquire the shared data.
And S204, the server receives the data sharing request sent by the second terminal and sends the sharing link path to the second terminal.
S205, the second terminal obtains the shared data according to the shared link path.
When the shared link path is sent to the second terminal, the second terminal may automatically jump to a storage location indicated by the shared link path according to the shared link path; or the user may manually click on the shared link path and then jump to the storage location indicated by the shared link path. For example, if the shared link path is http:// localhost/ajax/chap02/page2-11.html, the user manually clicks http:// localhost/ajax/chap02/page2-11.html to open the web page.
It can be seen that, when the method described in fig. 2 is implemented, when data is shared between terminals, it is not necessary to transmit the shared data twice, which improves the efficiency of sharing data between terminals.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention. Wherein, the server shown in fig. 3 may include:
a receiving unit 301, configured to receive data sharing information sent by the first terminal, where the data sharing information includes a physical storage address of shared data.
The shared data may refer to data stored in the first terminal and the first terminal needs to be shared with other terminals, wherein the shared data may include file material, video, audio, web page or application program. For example, if the first terminal is a personal computer PC, the personal computer PC may share the folder 1 and the folder 2 stored in the C-disc of the personal computer PC to other terminals. Or, the shared data may also refer to data that is stored in an external device connected to the first terminal and that the first terminal needs to share to other terminals, where the external device may refer to a usb disk or a hard disk that is inserted in the first terminal. For example, the USB disk is connected to the personal computer PC via a USB interface, and the personal computer PC can share the folder 3 stored in the USB disk with other terminals.
The physical storage address of the shared data may refer to a storage address of the shared data in the first terminal or an external device connected to the first terminal, for example, the first terminal is a personal computer PC, and the storage location of the shared data folder driver in the personal computer PC is C: \ Drivers, so that the physical storage address of the shared data folder driver is C: \ Drivers; for another example, if the shared data folder music is stored in an F disk, which is a U disk connected to a PC, and the storage location is F: \ music, the physical storage address of the shared data folder music is F: \ music.
A processing unit 302, configured to generate a shared link path according to the data sharing information received by the receiving unit 301, where the shared link path is used to indicate a network storage address of the shared data.
The shared link path may include a network storage address of the shared data generated in conjunction with protocols in the network and a physical storage address of the shared data, i.e., the terminal may access data stored in the terminal at the other end of the network through the shared link path in the network.
The shared link path may include a relative link path, that is, if the terminal sharing the data and the terminal receiving the shared data are in the same network, the same path portion of the two terminals in the network may be omitted, and then different path portions of the shared data are used as the shared link path. For example, a local area network is established between a terminal sharing shared data and a terminal receiving the shared data, the server may generate a shared link path \ \192.164.0.111\ movie according to a physical storage address sent by the terminal sharing the shared data, and the terminal receiving the shared data may access the shared data, i.e., the folder movie, stored in the terminal sharing the shared data according to \ \192.164.0.111\ movie, so that \ \192.164.0.111\ movie may serve as the shared link path.
Or, the shared link path may also include an absolute link path, that is, if the terminal sharing the data and the terminal receiving the shared data are not in the same network, a complete Uniform Resource Locator (URL) of the shared data may be used as the shared link path, for example, the shared link path is http:// localhost/ajax/chap02/page2-11. html.
The receiving unit 301 is further configured to receive a data sharing request sent by the second terminal, where the data sharing request is used to request to acquire the shared data.
A sending unit 303, configured to send the shared link path generated by the processing unit 302 to the second terminal, so as to trigger the second terminal to obtain the shared data according to the shared link path.
Optionally, the data sharing information further includes an identifier of at least one passive sharing terminal, and the processing unit 302 is specifically configured to generate a sharing link path corresponding to the identifier of each passive sharing terminal according to the identifier of each passive sharing terminal and the physical storage address.
Optionally, the data sharing request includes an identifier of the second terminal, and the processing unit 302 is further configured to determine whether the identifier of the second terminal exists in the identifier of the at least one passive sharing terminal after the receiving unit 301 receives the data sharing request sent by the second terminal; if the target shared link path exists, searching the corresponding target shared link path according to the identifier of the second terminal.
The sending unit 303 is specifically configured to send the target sharing link path searched by the processing unit 302 to the second terminal, so as to trigger the second terminal to obtain the shared data according to the target sharing link path.
The identification of the second terminal can be represented by one or a combination of numbers, letters or Chinese characters. For example, referring to table 1, if the identifier of the second terminal is terminal B, the server searches for \ \192.164.0.111\ movie, which is a target shared link path corresponding to terminal B; if the identifier of the second terminal is terminal C, the server searches for that the target shared link path corresponding to terminal C is \ \192.164.0.111\ application program, etc.
Optionally, the data sharing information further includes an identifier of at least one passive sharing terminal and at least one sharing data type, where the identifier of each passive sharing terminal corresponds to at least one sharing data type, and the processing unit 302 is specifically configured to generate a sharing link path corresponding to each sharing data type according to the physical storage address and each sharing data type when the step of generating a sharing link path according to the data sharing information is executed.
Optionally, the data sharing request includes an identifier and a data type of the second terminal, and the processing unit 302 is further configured to determine whether the identifier of the second terminal exists in the identifier of the at least one passive sharing terminal after the data sharing request sent by the second terminal is received; if yes, searching a corresponding target data type according to the identifier of the second terminal; judging whether the target data type has the data type; if yes, searching a corresponding target shared link path according to the data type.
The sending unit 303 is specifically configured to send the target sharing link path searched by the processing unit 302 to the second terminal, so as to trigger the second terminal to obtain the shared data according to the target sharing link path.
For example, referring to table 2, if the identifier of the second terminal is terminal B and the data type is video, the server searches for the target data type corresponding to terminal B as video and game, and searches for the target shared link path \ \192.164.0.111\ movie corresponding to the video, or, if the data type is game, the server may search for the target shared link path \ \192.164.0.111\ game, etc. corresponding to the game.
It can be seen that the implementation of the server described in fig. 3 can improve the efficiency of sharing data between terminals.
Fig. 4 shows a computer system based on the von neumann architecture running the above application interface switching method. The computer system can be a user terminal device such as a smart phone, a tablet computer, a palm computer, a notebook computer or a personal computer. Specifically, an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included. The external input interface 1001 may include a touch screen 10016, and optionally a network interface 10018. Memory 1003 can include external memory 10032 (e.g., a hard disk, optical or floppy disk, etc.) and internal memory 10034. Output interfaces 1004 may include devices such as a display 10042 and speakers 10044.
In the present embodiment, the method is based on a computer program, the program file of which is stored in the external memory 10032 of the aforementioned von neumann-based computer system, loaded into the internal memory 10034 at runtime, then compiled into machine code and then passed to the processor 1002 for execution, so that a logical operation monitoring module, a fingerprint detection module, an interface switching module, a pressure value judgment module, a first step length determination module and a second step length determination module are formed in the computer system based on the Von Neumann system, in the execution process of the application interface switching method, the input parameters are all received through the external input interface 1001 and are transmitted to the memory 1003 for caching, then, the data is inputted into the processor 1002 for processing, and the result data of the processing is buffered in the memory 1003 for subsequent processing or transferred to the output interface 1004 for output.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the server in the embodiment of the invention can be merged, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program instructing associated hardware, the program may be stored in a computer-readable storage medium including Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable rewritable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other medium readable by a computer that can be used to carry or store data.
The above detailed description is provided for a data sharing method and apparatus disclosed in the embodiments of the present invention, and the principle and the implementation of the present invention are explained in detail by applying specific examples, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (2)

1. A method for data sharing, the method comprising:
receiving data sharing information sent by a first terminal, wherein the data sharing information comprises at least one physical storage address of shared data, at least one corresponding identifier of a passive shared terminal and at least one shared data type; the identification of each passive sharing terminal corresponds to at least one sharing data type;
generating an identifier of each passive sharing terminal and a shared link path corresponding to each shared data type according to the identifier of each passive sharing terminal, the corresponding at least one physical storage address and each shared data type, wherein the shared link path is used for indicating a network storage address of the shared data;
receiving a data sharing request sent by a second terminal, wherein the data sharing request comprises an identifier and a data type of the second terminal, and the data sharing request is used for requesting to acquire the shared data;
judging whether the identifier of the second terminal exists in the identifiers of the at least one passive sharing terminal;
if the target data type exists, searching the corresponding target data type according to the identifier of the second terminal;
judging whether the data type of the second terminal exists in the target data type or not;
if yes, searching a corresponding target shared link path according to the data type;
and sending the target sharing link path to the second terminal to trigger the second terminal to acquire the shared data according to the target sharing link path.
2. A server, characterized in that the server comprises:
the receiving unit is used for receiving data sharing information sent by a first terminal, wherein the data sharing information comprises at least one physical storage address of shared data, at least one corresponding identifier of a passive shared terminal and at least one shared data type; the identification of each passive sharing terminal corresponds to at least one sharing data type;
a processing unit, configured to generate, according to an identifier of each passive shared terminal and at least one corresponding physical storage address, a shared link path corresponding to the identifier of each passive shared terminal and each shared data type, where the shared link path is used to indicate a network storage address of the shared data;
the receiving unit is further configured to receive a data sharing request sent by a second terminal, where the data sharing request includes an identifier of the second terminal and a data type, and the data sharing request is used to request to acquire the shared data;
the processing unit is further configured to, after the receiving unit receives a data sharing request sent by a second terminal, determine whether an identifier of the second terminal exists in the identifier of the at least one passive sharing terminal, and if the identifier of the second terminal exists, search for a corresponding target data type according to the identifier of the second terminal; judging whether the data type of the second terminal exists in the target data type or not; if yes, searching a corresponding target shared link path according to the data type;
and the sending unit is used for sending the target sharing link path searched by the processing unit to the second terminal so as to trigger the second terminal to acquire the shared data according to the target sharing link path.
CN201610913562.4A 2016-10-19 2016-10-19 Data sharing method and device Active CN106534268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913562.4A CN106534268B (en) 2016-10-19 2016-10-19 Data sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913562.4A CN106534268B (en) 2016-10-19 2016-10-19 Data sharing method and device

Publications (2)

Publication Number Publication Date
CN106534268A CN106534268A (en) 2017-03-22
CN106534268B true CN106534268B (en) 2020-01-10

Family

ID=58332686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913562.4A Active CN106534268B (en) 2016-10-19 2016-10-19 Data sharing method and device

Country Status (1)

Country Link
CN (1) CN106534268B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451260A (en) * 2017-07-31 2017-12-08 珠海市魅族科技有限公司 A kind of network access information sharing method and system
CN108289057B (en) * 2017-12-22 2020-01-21 北京达佳互联信息技术有限公司 Video editing method and device and intelligent mobile terminal
CN108491148B (en) * 2018-03-12 2021-06-08 维沃移动通信有限公司 Application sharing method and terminal
CN108667896B (en) * 2018-03-22 2022-04-26 京东方艺云科技有限公司 Data sharing method, device and system of sharing equipment and computer equipment
CN110648196B (en) * 2019-08-29 2022-06-07 深圳市新系区块链技术有限公司 Equipment data sharing method and system and storage medium
CN113535662B (en) * 2020-07-09 2023-04-07 抖音视界有限公司 Information position indicating method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580364A (en) * 2014-12-01 2015-04-29 百度在线网络技术(北京)有限公司 Resource sharing method and device
CN105227594A (en) * 2014-06-09 2016-01-06 中兴通讯股份有限公司 Document transmission method, Apparatus and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891889B (en) * 2012-09-26 2015-07-29 腾讯科技(深圳)有限公司 A kind of information sharing method and device
WO2014183404A1 (en) * 2013-10-21 2014-11-20 中兴通讯股份有限公司 Data transmission method, apparatus, system and terminal
TWI599892B (en) * 2014-06-25 2017-09-21 D-Link Corp Home network system file management and sharing methods
US9306941B2 (en) * 2014-08-26 2016-04-05 Exhibeo, LLC Local, paperless document sharing, editing, and marking system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227594A (en) * 2014-06-09 2016-01-06 中兴通讯股份有限公司 Document transmission method, Apparatus and system
CN104580364A (en) * 2014-12-01 2015-04-29 百度在线网络技术(北京)有限公司 Resource sharing method and device

Also Published As

Publication number Publication date
CN106534268A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106534268B (en) Data sharing method and device
CN107948314B (en) Business processing method and device based on rule file and server
CN105930528B (en) Webpage caching method and server
CN106933871B (en) Short link processing method and device and short link server
EP2985705A2 (en) Webpage access method and apparatus, and router
CN110083789B (en) Applet page acquisition method, server, client and electronic equipment
CN109951435B (en) Equipment identifier providing method and device and risk control method and device
US10693858B2 (en) CDN-based access control method and related device
CN106919634B (en) Method for sharing data across applications and web browser
CN106649446B (en) Information pushing method and device
CN104767775A (en) Webpage application information push method and webpage application information push system
CN107239701B (en) Method and device for identifying malicious website
CN104933363A (en) Method and device for detecting malicious file
CN110197075B (en) Resource access method, device, computing equipment and storage medium
WO2015021873A1 (en) Method, platform server, and system of data pushing
WO2014090088A1 (en) Method, server, and system for data sharing in social networking service
CN104010035A (en) Method and system for application program distribution
CN104811485A (en) Resource sharing method
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN103440281A (en) Method, device and equipment for acquiring download file
CN110929129A (en) Information detection method, equipment and machine-readable storage medium
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN111767481A (en) Access processing method, device, equipment and storage medium
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant