# US 2014/0156810 A1 · Method and system for loading file in webgame

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0156810 A1
- Document ID: US20140156810A1
- Status: Published application
- Kind: A1
- Application number: 14/235,386
- Filed: 2013-05-07
- Published: 2014-06-05
- Earliest claimed: 2012-05-15
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Gang Liu; Yan Huang; Guowei Fu
- Web page: https://patentgrep.com/patent/US20140156810A1

## CPC

- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- G06F 9/5033: {considering data affinity}
- G06F 16/9574: {of access to content, e.g. by caching}
- H04L 67/104: Peer-to-peer [P2P] networks
- H04L 67/303: Terminal profiles
- H04L 67/563: Data redirection of data network streams
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides a method and a system for loading a file. The method includes: a browser sends a pre-download request to a pre-publish server beforehand, receives a download link fed back by the pre-publish server, downloads a file from a data source server through the download link, and sends a first file identifier of the pre-downloaded file and a user terminal address of a user terminal that runs the browser to a query server for storing. The browser receives a load instruction that carries a second file identifier of a file, and queries whether the file is stored locally, if the file is stored locally, reads the file locally, if the file is not stored locally, sends the load instruction to the query server, receives a user terminal address returned by the query server, sends the load instruction to a user terminal corresponding to the user terminal address according to the received user terminal address, and receives a file fed back by the user terminal.

## Claims

### Claim at position 1

-12. (canceled)

### Claim 13

A method for loading a file in a webgame, comprising:
sending, by a browser, a pre-download request to a pre-publish server beforehand, receiving a download link fed back by the pre-publish server, pre-downloading a file from a data source server through the download link, and sending a first file identifier of the pre-downloaded file and a user terminal address of a user terminal that runs the browser to a query server for storing;
receiving, by the browser, a load instruction that carries a second file identifier of a file to be loaded from a user, and querying whether the file to be loaded is stored locally, and if the file to be loaded is stored locally, reading the file locally, and if the file to be loaded is not stored locally, sending the load instruction to the query server, and receiving a user terminal address returned by the query server; and
sending, by the browser, the load instruction to a user terminal corresponding to the user terminal address according to the received user terminal address, and receiving the file fed back by the user terminal.

### Claim 14 (depends on 13)

The method according to claim 13, wherein before sending, by the browser, the pre-download request to the pre-publish server beforehand, the method further comprises:
uploading, by a publish portal server, the webgame file to the data source server, and sending description information of the file to the pre-publish server for storing, wherein the description information comprises a mapping relationship between the download link and the first file identifier of the file.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the pre-download request carries user terminal information, and, after sending, by the browser, the pre-download request to the pre-publish server, the method further comprises:
judging, by the pre-publish server, whether the user terminal information fulfills pre-download conditions, and, if the user terminal information fulfills pre-download conditions, delivering the download link to the browser.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the user terminal information comprises at least one of a size of free cache space and a network bandwidth value.

### Claim 17 (depends on 13)

The method according to claim 13, wherein after receiving, by the browser, the file fed back by the user terminal, the method further comprises:
sending, by the browser, the second file identifier of the file fed back by the user terminal and the user terminal address of the user terminal that runs the browser to the query server for storing.

### Claim 18 (depends on 13)

The method according to claim 13, wherein after sending, by the browser, the first file identifier of the pre-downloaded file and the user terminal address of the user terminal that runs the browser to the query server for storing, the method further comprises:
reporting, by the browser, load information that comprises the first file identifier of the pre-downloaded file to a statistic server.

### Claim 19 (depends on 13)

The method according to claim 13, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 20

A system for loading a file in a webgame, comprising a browser, a pre-publish server, a data source server, and a query server, wherein:
the browser is configured to: send a pre-download request to the pre-publish server beforehand, wherein the pre-download request carries user terminal information, receive a download link fed back by the pre-publish server, download a file from the data source server through the download link, and send a first file identifier of the pre-downloaded file and a user terminal address of a user terminal that runs the browser to the query server for storing, and the browser is further configured to receive a load instruction that carries a second file identifier of a file to be loaded from a user, query whether the file to be loaded is stored locally, and if the file to be loaded is stored locally, read the file locally, and if the file to be loaded is not stored locally, send the load instruction to the query server, receive a user terminal address returned by the query server; send the load instruction to a user terminal corresponding to the received user terminal address, and receive the file fed back by the user terminal;
the data source server is configured to store webgame files;
the pre-publish server is configured to receive the pre-download request from the browser, and judge whether the user terminal information fulfills pre-download conditions, and, if the user terminal information fulfills the pre-download conditions, deliver the download link to the browser; and
the query server is configured to receive the first file identifier of the pre-downloaded file and the user terminal address from the browser, store the first file identifier of the pre-downloaded file and the user terminal address, correlate the user terminal address to the first file identifier of the pre-downloaded file, receive from the browser the load instruction that carries the second file identifier of the file to be loaded, find a user terminal address corresponding to the second file identifier of the file to be loaded, and send the user terminal address to the browser.

### Claim 21 (depends on 20)

The system according to claim 20, wherein:
the query server comprises a query access apparatus and an application logic apparatus;
the query access apparatus is configured to: receive the first file identifier and the user terminal address from the browser, and send them to the application logic apparatus for storing; receive the load instruction from the browser, and transmit the load instruction to the application logic apparatus; receive the user terminal address returned by the application logic apparatus, and send the user terminal address to the browser; and
the application logic apparatus is configured to store the user terminal address and the first file identifier, correlate the user terminal address to the first file identifier, receive the load instruction from the query access apparatus, find the user terminal address corresponding to the second file identifier of the file to be loaded, and return the user terminal address to the query access apparatus.

### Claim 22 (depends on 20)

The system according to claim 20, wherein:
the system further comprises a publish portal server, configured to upload the webgame files to the data source server, and send description information of the files to the pre-publish server for storing, wherein the description information comprises a mapping relationship between the download link and the first file identifier of each of the files.

### Claim 23 (depends on 22)

The system according to claim 22, wherein the pre-publish server comprises a database for storing the description information of the files.

### Claim 24 (depends on 20)

The system according to claim 20, wherein:
the system further comprises a statistic server;
the browser is further configured to report load information that comprises the first file identifier to the statistic server after sending the first file identifier of the pre-downloaded file and the user terminal address of the user terminal that runs the browser to the query server for storing; and
the statistic server is configured to receive the load information from the browser, and make statistics of the load information.

### Claim 25 (depends on 14)

The method according to claim 14, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 26 (depends on 15)

The method according to claim 15, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 27 (depends on 16)

The method according to claim 16, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 28 (depends on 17)

The method according to claim 17, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 29 (depends on 18)

The method according to claim 18, wherein the pre-downloaded files and the files fed back by the user terminal comprise content files and update files.

### Claim 30 (depends on 21)

The system according to claim 21, wherein:
the system further comprises a statistic server;
the browser is further configured to report load information that comprises the first file identifier to the statistic server after sending the first file identifier of the pre-downloaded file and the user terminal address of the user terminal that runs the browser to the query server for storing; and
the statistic server is configured to receive the load information from the browser, and make statistics of the load information.

### Claim 31 (depends on 22)

The system according to claim 22, wherein:
the system further comprises a statistic server;
the browser is further configured to report load information that comprises the first file identifier to the statistic server after sending the first file identifier of the pre-downloaded file and the user terminal address of the user terminal that runs the browser to the query server for storing; and
the statistic server is configured to receive the load information from the browser, and make statistics of the load information.
