File sharing method, device and mobile equipment
First Claim
1. A file sharing method, applicable to a first mobile equipment, comprising:
- fetching a sharing instruction directed to a file to be shared;
after starting a network sharing function of the first mobile equipment, performing a network connection to a second mobile equipment that requests network sharing such that a direct connection is established through the network sharing function between the first mobile equipment and the second mobile equipment; and
intercepting and redirecting a browser-based network request sent by the second mobile equipment, and sending, via the direct connection, the file to be shared as the result of the request corresponding to the browser-based network request to the second mobile equipment,wherein, the browser-based network request sent by the second mobile equipment is generated by the second mobile equipment after detecting any address information that is input by a user in an address bar of a browser of the second mobile equipment sufficient to cause the second mobile equipment to make a network request, andwherein intercepting and redirecting the browser-based network request sent by the second mobile equipment is realized by means of setting rules of iptables in the operation system of the first mobile equipment when the current user name of the operation system of the first mobile equipment is the one with administrator authority.
1 Assignment
0 Petitions
Accused Products
Abstract
The present application discloses a file sharing method, device and mobile equipment. The method for file sharing, applicable to a first mobile equipment, comprises: fetching the sharing instruction directed to the file to be shared; performing network connection to a second mobile equipment that requests network sharing after starting the network sharing function of the first mobile equipment; intercepting and redirecting the browser-based network request sent by the second mobile equipment, and using the file to be shared as the result of the request corresponding to the network request and send it to the second mobile equipment. By using this embodiment, a quick file sharing is achieved without producing any network flow, without installing any software or plug-in having file sharing function in the receiving end of the file to be shared, thereby improving the user experience.
-
Citations
18 Claims
-
1. A file sharing method, applicable to a first mobile equipment, comprising:
-
fetching a sharing instruction directed to a file to be shared; after starting a network sharing function of the first mobile equipment, performing a network connection to a second mobile equipment that requests network sharing such that a direct connection is established through the network sharing function between the first mobile equipment and the second mobile equipment; and intercepting and redirecting a browser-based network request sent by the second mobile equipment, and sending, via the direct connection, the file to be shared as the result of the request corresponding to the browser-based network request to the second mobile equipment, wherein, the browser-based network request sent by the second mobile equipment is generated by the second mobile equipment after detecting any address information that is input by a user in an address bar of a browser of the second mobile equipment sufficient to cause the second mobile equipment to make a network request, and wherein intercepting and redirecting the browser-based network request sent by the second mobile equipment is realized by means of setting rules of iptables in the operation system of the first mobile equipment when the current user name of the operation system of the first mobile equipment is the one with administrator authority. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A device for sharing a file applicable to a first mobile equipment, the device comprising:
-
a processor, a memory, a communication interface and a bus; wherein the processor, the memory and the communication interface are connected to one another via the bus and communicate with each other; wherein the memory stores executable program codes; wherein the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory for; fetching a sharing instruction directed to a file to be shared; performing a network connection to a second mobile equipment that requests network sharing after a network sharing function of the first mobile equipment is started such that a direct connection is established through the network sharing function between the first mobile equipment and the second mobile equipment; intercepting and redirecting a browser-based network request sent by the second mobile equipment; and sending, via the direct connection, the file to be shared as the result of the request corresponding to the browser-based network request to the second mobile equipment; wherein, the browser-based network request sent by the second mobile equipment is generated by the second mobile equipment after detecting any address information that is input by a user in an address bar of a browser of the second mobile equipment sufficient to cause the second mobile equipment to make a network request, and wherein intercepting and redirecting the browser-based network request sent by the second mobile equipment is realized by means of setting rules of iptables in the operation system of the first mobile equipment when the current user name of the operation system of the first mobile equipment is the one with administrator authority. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification