CN106161510B - The client of network application and resource loading method for client - Google Patents
The client of network application and resource loading method for client Download PDFInfo
- Publication number
- CN106161510B CN106161510B CN201510147627.4A CN201510147627A CN106161510B CN 106161510 B CN106161510 B CN 106161510B CN 201510147627 A CN201510147627 A CN 201510147627A CN 106161510 B CN106161510 B CN 106161510B
- Authority
- CN
- China
- Prior art keywords
- information
- resource file
- client
- resource
- downloader
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/59—Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
Abstract
The invention discloses a kind of client of network application and for the resource loading method of client.The client of the network application includes application program and downloader.Wherein, downloader is configured as: in information acquisition request of any one process from application program that receives for any one resource file, judging whether the resource file has completely been downloaded on the user terminal that client is mounted on;And if resource file is completely downloaded on user terminal, the location information of resource file is then sent to process, if resource file is not yet completely downloaded on user terminal, resource file is downloaded from server-side and sends the location information of resource file to process after resource file is completely downloaded to user terminal.The present invention can promote the stability and speed of download of client, while can guarantee good user experience.
Description
Technical field
The present invention relates to computer field, relate more specifically to a kind of client of network application and for client
Resource loading method.
Background technique
In general, the network application of such as online game, instant messaging tools, information publishing platform etc includes for running
Client (that is, client-side program) on the subscriber terminal and for running server-side on the server (that is, server journey
Sequence) two parts.In order to use network application, user needs by the client downloads of network application and to be installed to user terminal first
On, then interacted to by the server-side of the client of network application and network application using network application.
As the content of network application is more and more, the data volume that the client of network application includes is inevitably more next
It is bigger, thus download the time required for the client of network application and also increasingly grow, this will cause user for network application
Use on inconvenience, so as to cause the customer churn of network application.In order to save required for the client of downloading network application
Time, some network applications use micro- client-side technology.
The core concept of micro- client-side technology is resource separation and on demand downloading, and its specific implementation includes: to set
When counting the client of network application only by initially use network application when required program file and some dynamically loads that are unable to
Resource file include in the client of network application, then user use network application during according to actual needs by
Step downloads other resource files.Current micro- client-side technology mainly uses following two resource request/loading scheme: 1) being based on
Resource request/loading scheme of individual files;With resource request/loading scheme 2) based on scene.
But above two resource request/loading scheme have the following deficiencies: 1) resource request based on individual files/
Mobile device of the loading scheme for viewing on type client and for being mounted on such as smart phone, tablet computer etc
Lightweight client, but be not appropriate for the terminal for being mounted on such as desktop computer, laptop etc
Marquee account end because the system resource that the marquee account end on terminal needs is high, and terminal is most
Number situation is all mechanical hard disk, and random access performance is very poor;2) although resource request/loading scheme based on scene is suitable for
Marquee account end on terminal is installed, but the usage experience of user is poor, because entering new scene user all every time
It waits for a long time.
Summary of the invention
In view of above-described one or more problems, the present invention provides a kind of client of novel network application and
Resource loading method for client.
The client of network application according to an embodiment of the present invention, including application program and downloader.Wherein, downloader quilt
It is configured that in the information acquisition request for any one resource file for receiving any one process from application program
When, judge whether the resource file has completely been downloaded on the user terminal that client is mounted on;And if resource
File is completely downloaded on user terminal, then the location information of resource file is sent to process, if resource file is still
It is not downloaded on user terminal completely, then download resource file from server-side and is completely downloaded to user's end in resource file
The location information of resource file is sent behind end to process.
Resource loading method according to an embodiment of the present invention for client, which includes application program and downloading
Device, the resource loading method include: that any one process of application program is sent to downloader for any one resource file
Information acquisition request;Downloader judges whether resource file has completely been downloaded to the user terminal that client is mounted on
On, if resource file is completely downloaded on user terminal, the location information of resource file is sent to process, if
Resource file is not yet completely downloaded on user terminal, then downloads resource file and in resource file by under complete from server-side
It is downloaded to the location information for sending resource file after user terminal to process;And process is read according to the location information of resource file
Resource file.
The present invention can promote the stability and speed of download of client, while can guarantee good user experience.Cause
This, the present invention can be such that the new churn rate for entering network application by client reduces, so that it is new to better play importing
The effect of user.
Detailed description of the invention
The present invention may be better understood from the description with reference to the accompanying drawing to a specific embodiment of the invention,
In:
Fig. 1 is the block diagram for showing the network application including client according to an embodiment of the present invention;
Fig. 2 is the structural schematic diagram for showing shared drive according to an embodiment of the present invention;
Fig. 3 is the resource load for showing any one process of client application according to an embodiment of the present invention and realizing
The flow chart of process;
Fig. 4 is the structural schematic diagram for showing file packet according to an embodiment of the present invention;
Fig. 5 is the stream for showing the response process for information acquisition request that downloader according to an embodiment of the present invention is realized
Cheng Tu.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below.In following detailed description
In, many details are proposed, in order to provide complete understanding of the present invention.But to those skilled in the art
It will be apparent that the present invention can be implemented in the case where not needing some details in these details.Below to implementation
The description of example is used for the purpose of providing by showing example of the invention and better understanding of the invention.The present invention never limits
In any concrete configuration set forth below and algorithm, but cover under the premise of without departing from the spirit of the present invention element,
Any modification, replacement and the improvement of component and algorithm.In the the accompanying drawings and the following description, well known structure and skill is not shown
Art is unnecessary fuzzy to avoid causing the present invention.
The client of network application according to an embodiment of the present invention is described in detail with reference to the accompanying drawing and for client
Resource loading method.
Fig. 1 is the block diagram for showing the network application 100 including client according to an embodiment of the present invention.As shown in Figure 1, net
Network includes client 112 and server-side 104 using 100, and wherein client 112 includes downloader 102 and client application
Process 106,108 and 110.In other embodiments, client may include the more or fewer of client application
Process.
Server-side 104 is configured as storage client application, client by all user sharings of network application
End application program resource file that is required but being unable to dynamically load and can be by client 112 in visitor when bringing into operation
The resource file of dynamic download in the operational process of family end application program, and one is directed to from client 112 receiving
The downloading of these resource files is provided to client 112 when the file download request of a or multiple resource files.
Downloader 102 is the center of client 112, and the process 106,108 and 110 of client application is via downloader
102 communicate with server-side 104.Specifically, downloader 102 is configured as receiving from any one of client application
The information acquisition request for any one resource file (for example, resource file F-1) of a process (for example, process 106)
In the case of, judge whether resource file F-1 has completely been downloaded on the user terminal that client 112 is mounted on;If
It is that the location information of resource file F-1 is then directly sent to the process of client application 106, otherwise first from server-side 104
It downloads resource file F-1 and is completely downloaded to the user terminal that client 112 is mounted in resource file F-1 and write
The process 106 for entering corresponding document Bao Houxiang client application sends the location information of resource file F-1.Client application journey
The process 106 of sequence receive downloader 102 transmission the location information comprising resource file F-1 acquisition of information respond after,
Resource file F-1 is read into the position indicated by the location information of resource file F-1.
In the present embodiment, downloader 102 be sent to the process 106 of client application acquisition of information response in addition to
Other than location information including resource file F-1, can also including the size information of resource file F-1, encryption scheme information, with
And one of compress mode information or much information.In this way, the process 106 of client application can be according to from downloading
Above- mentioned information in the acquisition of information response of device 102, it is correct read resource file F-1 and resource file F-1 is decrypted and
Decompression.
In the present embodiment, if the process 106 of client application is predetermined after sending information acquisition request
It is not received by time in the acquisition of information response from downloader 102 or the acquisition of information response received and does not include money
The location information of source file F-1, encryption scheme information or compress mode information (so as to cause client application into
Journey 106 can not read or not be available resource file F-1), then the process 106 of client application will be from client 112
Specific position on the user terminal being mounted on reads alternate resources file and temporarily uses, until receiving resource file F-1
All relevant informations until or until no longer needing resource file F-1.
In the present embodiment, the process of first starting in the process of client application 106,108 and 110
When (for example, process 108) is activated, client 112 first determine whether downloader 102 and client application version whether be
It is newest, if not then client application and downloader 102 are updated to latest edition by being communicated with server-side 104
This.Here update is intended merely to guarantee that the necessary file such as client application and downloader 102 is latest edition, can't
Download resource file.Next, the process 108 of client application judges whether downloader 102 has been actuated while, if under
It carries device 102 and has been actuated while that then the process 108 of client application continues to run client application;If downloader
102 are not activated also, then client application process 108 start downloader 102 and confirmation downloader 102 by
Client application is continued to run after starting.
In the present embodiment, downloader 102 will create one piece of shared drive on startup and be used for and client application
One or more process communications, wherein the shared drive be further subdivided into multiple memory blocks for cache respectively from visitor
The information acquisition request of one or more processes of family end application program and/or from downloader 102 acquisition of information response.
Fig. 2 is the structural schematic diagram for showing shared drive 200 according to an embodiment of the present invention.As shown in Fig. 2, shared drive
200 be divided into N number of memory block 202-1,202-2,202-3 ... 202-N (N is greater than 0 integer), each memory block is used for
Information acquisition request or acquisition of information response of the caching for any one resource file.In the present embodiment, acquisition of information is asked
It asks to respond with acquisition of information and uses identical message structure, i.e., the transmission process mark of the message is preserved on the head of each message
Know symbol (that is, sending process ID) and receiving process identifier (that is, receiving process ID), and the main part of each message is protected
There are the details of the message.It should be understood that transmission process is client for the message as information acquisition request
The process of application program is held, and its receiving process is the process of downloader 102;For the message responded as acquisition of information,
Its transmission process is the process of downloader 102, and its receiving process is the process of client application.It is asked in acquisition of information
It asks and is downloaded after device 102 receives, the memory block for caching the information acquisition request will be emptied further for caching
Information acquisition request or acquisition of information response;And it responds in acquisition of information and is connect by the corresponding process of client application
After receiving, the memory block for caching acquisition of information response will be emptied for cache further information acquisition request or
The response of person's acquisition of information.
Downloader 102 is can read on startup in the All Files packet on the user terminal that client 112 is mounted on
The relevant information of resource file, location information, size information, integrity information, cipher mode letter including each resource file
Breath and compress mode information.Specifically, the location information of each resource file may include following both sides information: include
Offset information of the identification information and the resource file of the file packet of the resource file in the file packet comprising it.
Client 112 according to an embodiment of the present invention reads and writees operation by separate file, significantly reduces
Coupling between the functional module of client, to ensure that the stability of client.In addition, according to an embodiment of the present invention
File download operation is concentrated in downloader 102 handling by client 112, can support multiple processes of client application
It runs simultaneously, the stationary problem without regard to the reading and writing of files between the process of client application.
In the present embodiment, it is contemplated that the calculated performance of network and user terminal, downloader 102 are configured as receiving
When multiple information acquisition requests of one or more processes from client application, these information can't be obtained simultaneously
It takes request to be responded, but these information acquisition requests can be added in request queue, then successively in request queue
Information acquisition request is responded.In addition, when the needs of downloader 102 download multiple resource files from server-side 104, it will not
These resource files are downloaded simultaneously, but downloading queue can will be added for the file download request of these resource files
In, then successively resource file corresponding to the file download request in downloading queue is downloaded.That is, downloader
102 all use similar team when handling information acquisition request, downloading resource file and return information and obtaining response
Column operation, such multi-queue similar to assembly line, which operates, ensure that when single flow processing is slow, will not be to other
Process have an impact, have very big promotion for the processing capacity instantaneously largely requested.
Similarly, divide when any one process (for example, process 106) of client application is sent to downloader 102
When safety pin is to multiple information acquisition requests of multiple resource files, the process 106 of client application can be by these information
Acquisition request, which is added to obtain, sends these information acquisition requests in queue and successively to downloader 102.Equally, work as client application
When any one process (for example, process 106) of program reads multiple resource files, the process 106 of client application
The multiple file read requests for being directed to these resource files respectively can be added and be read in queue, and successively utilize these texts
Part read requests read corresponding resource file.
In the present embodiment, each resource file has an initial priority, according to priority difference, downloader
102 or the process 106 of client application different resource files can be handled according to sequencing.Meanwhile visitor
The process 106 of family end application program can according in the type, extent for multiplexing and importance of resource file it is one or more because
Element modifies to the priority of resource file, and by new priority notification to downloader 102, under downloader 102 will be preferential
Carry the high file of priority.
With reference to the accompanying drawing, any one process (for example, process 106) realization of client application is described in detail
The response process for information acquisition request that resource loading procedure and downloader 102 are realized.
Fig. 3 is the resource loading procedure for showing the process 106 of client application according to an embodiment of the present invention and realizing
Flow chart.As shown in figure 3, the process 106 of client application realize for any one resource file (for example, money
Source file F-X) resource loading procedure include:
At 302, when the process 106 of client application needs resource file F-X, whether client 112 is judged
The location information of cache resource file F-X.If the location information of resource file F-X is buffered, 314 are gone to,
Otherwise 304 are gone to.
At 304, the process 106 of client application is obtained to the transmission of downloader 102 for the information of resource file F-X
Take request (for convenience of description, hereinafter referred to as information acquisition request R-X).Specifically, the process of client application 106 times
It goes through shared drive and finds idle memory block, if there is no idle memory block in shared drive, be added in shared drive
One new memory block and the memory block that information acquisition request R-X is written to the new addition, otherwise write information acquisition request R-X
Enter any one idle memory block in shared drive.
At 306, the process 106 of client application judges whether to have received downloader 102 in the given time
It is sent to its acquisition of information response (for convenience of description, the hereinafter referred to as acquisition of information response Q- for resource file F-X
X).Specifically, whether the process 106 of client application traverses shared drive, judge to have in shared drive the receiving process be
The acquisition of information for resource file F-X of itself responds Q-X.If the process 106 of client application is in pre- timing
The interior acquisition of information response Q-X got in shared drive for resource file F-X, then go to 308;If client
The process 106 of application program does not get the acquisition of information sound for resource file F-X from shared drive in the given time
Q-X is answered, then goes to 310.
At 308, the process 106 of client application will be directed to the file read request of resource file F-X (in order to say
Bright convenience, hereinafter simply referred to as FR-X) it is added and reads queue.
At 310, the process 106 of client application sends the substitution money for resource file F-X to downloader 102
The information acquisition request TR-X of source file T-X.
At 312, the process 106 of client application receives downloader 102 and is sent to the literary for alternate resources of its
The acquisition of information of part TR-X responds TQ-X.Then, at 308, the process 106 of client application will be for alternate resources text
The file read request TR-X of part TR-X, which is added, reads queue.
In the present embodiment, during the process of client application 106 traverses shared drive, if it find that having
The receiving process identifier of message is the identifier of this process, then receives the message, and will be for resource corresponding to the message
The file read request of file, which is added to read, lines up.In reading is lined up, priority is not to influence the sequence of resource file
Single factor usually can also be ranked up resource file according to the location information of resource file (this is because according to resource
The storage order of resource file indicated by the location information of file is read out compared to not according to resource file resource file
Storage order (that is, out-of-order access resource file) is read out to resource file, performance is more preferable).For example, such as Fig. 4
Shown, the priority of resource file A, B, C are respectively 10,20,30, and the position where them is respectively file packet D
1024 bytes, 2048 bytes of file packet E, 4096 bytes of file packet D, so the reading order of these three files is A, C, B.
Specifically, the process 106 of client application by for resource file A, B, C file read request ReadA, ReadB,
The sequence that ReadC write-in is read in queue can be ReadA, ReadC, ReadB, therefore resource file A, B, C are according to A, C, B
Sequence is read.
Fig. 5 is the stream for showing the response process for information acquisition request that downloader according to an embodiment of the present invention is realized
Cheng Tu.As shown in figure 5, downloader 102 realize for any one information acquisition request (for example, information acquisition request R-X)
Response process include:
At 502, downloader 102 is being received for example, the acquisition of information of the process 106 from client application is asked
When seeking R-X, request queue is added in information acquisition request R-X.Specifically, downloader 102 starts time after creating shared drive
Go through shared drive, with detect one or more processes from client application for one or more resource files
Information acquisition request.
At 504, downloader 102 judges information acquisition request R-X requested resource file (for example, resource file F-
X the user terminal that client 112 is mounted on) whether has completely been downloaded to.If resource file F-X is complete
Ground downloads to client 112 and installs on the subscriber terminal, then goes to 516, otherwise go to 506.
At 506, downloader 102 will be added in downloading queue for the file download request D-X of resource file F-X.
At 508, downloader 102 downloads resource file F-X from server-side 104 according to putting in order in downloading queue.
At 510, downloader 102 judges whether completely to download resource file F-X.If resource file F-X is
It is completely downloaded, then goes to 512, otherwise go to 518.
At 512, resource file F-X is added in I/O (input/output) queue downloader 102, and according to I/O team
Resource file F-X is written in corresponding document packet (for convenience of description, hereinafter referred to as file packet D-1) sequence in column.
At 514, downloader 102 judges whether resource file F-X is successfully written in file packet D-1.
At 516, if resource file F-X has been successfully written to file packet D-1, it will include resource file F-X's
The acquisition of information response Q-X of location information is added in notification queue, otherwise by the failed download information comprising resource file F-X
Acquisition of information responds Q-X and is added in notification queue.
At 518, downloader 102 judges whether the number for downloading the failure of resource file F-X is also less than pre-determined number
(for example, 3 times).If it is, going to 508, otherwise go to 516 (at 516, will believe comprising the failed download of resource file F-X
The acquisition of information response Q-X of breath is added in notification queue).
520, acquisition of information response Q-X is sent to the process 106 of client application by downloader 102.
It should be understood that each information acquisition request requested resource file have initial priority, downloader 102
The information acquisition request in request queue is ranked up according to the priority of information acquisition request requested resource file, and
The high information acquisition request of the priority of 102 preferential answering requested resource file of downloader is (that is, preferential download priority is high
Resource file).Meanwhile the priority of the information acquisition request requested resource file in request queue is not unalterable
, the process of client application can be according to one in the type, extent for multiplexing and importance of requested resource file
Or the multinomial priority to resource file carries out dynamic modification, and by new priority notification to downloader 102.Downloader 102
It can be resequenced according to the new priority of resource file to the information acquisition request in request queue, then according to request queue
In rearrangement after putting in order for information acquisition request these information acquisition requests are responded.According to user terminal
Performance it is different, the resource file for having different number is simultaneously downloaded.For example, in the central processing unit (CPU) of user terminal
In the case where for CPU of the double-core without hyperthread, 2 resource files can be downloaded simultaneously;It and is 4 cores 8 in the CPU of user terminal
In the case where the CPU of thread, 8 resource files can be downloaded simultaneously.When resource file starts downloading, for the resource file
File download request can from downloading queue in be removed.I/O lines up and what is sorted by priority orderly lines up, and priority is high
File can by preferentially be written file packet.
Information acquisition request, file read request, file download request etc. in various queues mentioned above be by
According to priority ranking, and in the operational process of client application, the priority of these requests is not unalterable
, this results in these sequences of request in respective queue to change with the variation of their priority.In the exemplary embodiment,
In the operational process of client application, the resource that can be potentially encountered the resource file of reuse or be released is literary
Part.If a resource file by one or more process requested mistakes of client application, the resource file
Priority can be because the resource file be reused and improves.In addition, if the importance of a resource file improves,
The priority of the resource file can also improve.Similarly, if a resource file is released, priority can be reduced.
When the priority of resource file changes, the process of client application can be directed to the resource file sending to downloader
The modified priority of the resource file is notified while information acquisition request to downloader, downloader receives resource text
After the modified priority of part, processing message, downloading file, write-in file can be adjusted and return to lining up for message, in turn
Complete adjustment of the priority for user experience.
As described above, in the present invention, the process that client application is handled by downloader adds resource file
Request is carried, influence of the down operation to client application is avoided, ensure that the stability of client application.Client
It is communicated between end application program and downloader by shared drive, rather than traditional pipeline or socket (socket) are even
It connects, so that the performance communicated between client application and downloader reaches the level close to program internal communication.Downloader
The multistage that internal each process uses similar CPU assembly line lines up treatment mechanism, a large amount of requests can be handled at leisure, into one
Step improves the performance and stability of reading and writing of files.And the introducing of priority mechanism then provides dynamic adjustresources distribution plan
Ability slightly, so that can be promoted than existing scheme in network application to the experience of user very much.
It will be understood by those skilled in the art that there is also can be used for realizing the embodiment of the present invention more optional embodiments and
Improved procedure, and above embodiment and example are only the explanations of one or more embodiments.Therefore, the scope of the present invention is only
It is limited by the appended claims.
Claims (14)
1. a kind of resource loading method for client, the client include application program and downloader, the resource adds
Support method includes:
Any one process of the application program sends the acquisition of information for being directed to any one resource file to the downloader
Request, wherein the downloader creates shared drive for one or more processes with client application on startup
Communication, wherein the shared drive be divided into multiple memory blocks for caching respectively from one of client application or
The information acquisition request of multiple processes and/or from downloader acquisition of information response;
The downloader judges whether the resource file has completely been downloaded to user's end that the client is mounted on
On end,
If the resource file is completely downloaded on the user terminal, the resource text is sent to the process
The location information of part,
If the resource file is not yet completely downloaded on the user terminal, the resource file is downloaded from server-side
And believe after the resource file is completely downloaded to the user terminal to the position that the process sends the resource file
Breath;And
The process reads the resource file according to the location information of the resource file;
When the downloader receives the multiple information acquisition requests for being directed to multiple resource files respectively, the downloader is by institute
Multiple information acquisition requests are stated to be added in first queue and successively respond the multiple information acquisition request, and/or
When the downloader downloads the multiple resource file, the downloader will be directed to the multiple resource file respectively
Multiple file download requests are added in second queue and successively download the multiple resource file, and/or
When corresponding file packet is written in the multiple resource file by the downloader, the downloader is by the multiple resource
File is added in third queue and successively by the multiple resource file and is written in corresponding file packet.
2. the resource loading method according to claim 1 for client, which is characterized in that the downloader is to institute
While the process of stating sends the location information of the resource file, the following information of the resource file is also sent to the process
One of or much information: size information, encryption scheme information and compress mode information.
3. the resource loading method according to claim 1 for client, which is characterized in that the downloader is starting
When read be already present in the following information of each resource file in the user terminal, relevant to the client
One or more information: location information, size information, integrity information, encryption scheme information and compress mode information.
4. the resource loading method according to claim 1 for client, which is characterized in that the downloader is according to institute
Institute is added in the multiple information acquisition request by least one of precedence information and the location information for stating multiple resource files
It states in first queue, and/or the second queue is added in the multiple file download request, and/or by the multiple resource
The third queue is added in file.
5. the resource loading method according to claim 1 for client, which is characterized in that
The process determines the priority of the resource file according to one or more of the following items: the resource file
The importance of type, the extent for multiplexing of the resource file and the resource file, and
The process is when sending the information acquisition request for being directed to the resource file to the downloader, by the resource
The priority notification of file gives the downloader.
6. the resource loading method according to claim 1 for client, which is characterized in that when the process is to institute
State downloader send respectively be directed to multiple resource files multiple information acquisition requests when, the process obtains the multiple information
It takes request to be added in the 4th queue and successively to the downloader and sends the multiple information acquisition request.
7. the resource loading method according to claim 1 for client, which is characterized in that when process reading is more
When a resource file, the 5th queue is added in the multiple file read requests for being directed to the multiple resource file respectively by the process
In, and successively the multiple resource file is read using the multiple file read request.
8. the resource loading method according to claim 1 for client, which is characterized in that the downloader is starting
When creation be divided into the shared drives of multiple memory blocks, each memory block is used to cache the letter for being directed to any one resource file
Acquisition request/acquisition of information response is ceased, wherein
The acquisition of information response further includes the size of the resource file other than including the location information of the resource file
One of information, encryption scheme information and compress mode information or much information.
9. a kind of client of network application, wherein the client includes application program and downloader, and the downloader is matched
It is set to:
It is asked in the acquisition of information for any one resource file for receiving any one process from the application program
When asking, judge whether the resource file has completely been downloaded on the user terminal that the client is mounted on;And
If the resource file is not yet completely downloaded on the user terminal, the resource file is downloaded from server-side
And believe after the resource file is completely downloaded to the user terminal to the position that the process sends the resource file
Breath;
When receiving the multiple information acquisition requests for being directed to multiple resource files respectively, the multiple information acquisition request is added
Enter and is responded in first queue and successively to the multiple information acquisition request, and/or
When downloading the multiple resource file, the multiple file download requests for being directed to the multiple resource file respectively are added
The multiple resource file in second queue and successively is downloaded, and/or
The multiple resource file be written corresponding file packet when, by the multiple resource file be added third queue in and according to
It is secondary that the multiple resource file is written in corresponding file packet;
Wherein, the downloader is also configured to
Creation shared drive is for one or more process communications with client application on startup, wherein described shared
Memory is divided into information of multiple memory blocks for caching respectively from one or more processes of client application and obtains
Take request and/or the acquisition of information response from downloader.
10. the client of network application according to claim 9, which is characterized in that the downloader is further configured
Are as follows:
While sending the location information of the resource file to the process, the resource file also is sent to the process
One of following information or much information: size information, encryption scheme information and compress mode information.
11. the client of network application according to claim 9, which is characterized in that the downloader is further configured
Are as follows:
On startup read be already present on each resource file in the user terminal, relevant to the client with
One of lower information or much information: location information, size information, integrity information, encryption scheme information and compression side
Formula information.
12. the client of network application according to claim 9, which is characterized in that the downloader is further configured
Are as follows:
According at least one of the precedence information of the multiple resource file and location information, by the multiple acquisition of information
Request is added in the first queue, and/or the second queue is added in the multiple file download request, and/or by institute
It states multiple resource files and the third queue is added.
13. the client of network application according to claim 9, which is characterized in that the downloader is further configured
Are as follows:
Creation is divided into the shared drive of multiple memory blocks on startup, and each memory block is for caching for any one money
The information acquisition request of source file/acquisition of information response.
14. a kind of non-transient computer-readable storage media for being stored with computer executable instructions, the computer is executable
Instruction can be realized when executed the resource loading method according to any one of claim 1 to 8 for client,
Or the client of the network application according to any one of claim 9 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510147627.4A CN106161510B (en) | 2015-03-31 | 2015-03-31 | The client of network application and resource loading method for client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510147627.4A CN106161510B (en) | 2015-03-31 | 2015-03-31 | The client of network application and resource loading method for client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161510A CN106161510A (en) | 2016-11-23 |
CN106161510B true CN106161510B (en) | 2019-09-03 |
Family
ID=57337845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510147627.4A Active CN106161510B (en) | 2015-03-31 | 2015-03-31 | The client of network application and resource loading method for client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161510B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111555B (en) * | 2016-11-25 | 2021-07-27 | 斑马智行网络(香港)有限公司 | Method and system for controlling installation package downloading process |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
CN104158896A (en) * | 2014-08-22 | 2014-11-19 | 百度在线网络技术(北京)有限公司 | Application recommendation method and system as well as application store server |
CN105988809A (en) * | 2015-02-13 | 2016-10-05 | 广州四三九九信息科技有限公司 | Online loading method for game resources and micro-end engine |
-
2015
- 2015-03-31 CN CN201510147627.4A patent/CN106161510B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
CN104158896A (en) * | 2014-08-22 | 2014-11-19 | 百度在线网络技术(北京)有限公司 | Application recommendation method and system as well as application store server |
CN105988809A (en) * | 2015-02-13 | 2016-10-05 | 广州四三九九信息科技有限公司 | Online loading method for game resources and micro-end engine |
Also Published As
Publication number | Publication date |
---|---|
CN106161510A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017185616A1 (en) | File storage method and electronic equipment | |
CN106909448A (en) | Method, system and client device for performing application | |
CN108933805A (en) | A kind of document transmission method and system | |
US20110296437A1 (en) | Method and apparatus for lockless communication between cores in a multi-core processor | |
US20150120674A1 (en) | Virtual program installation and state restoration | |
WO2010142196A1 (en) | Method and apparatus for maintaining data | |
CN111414389A (en) | Data processing method and device, electronic equipment and storage medium | |
CN109690478A (en) | Software update system, aerial firmware update system and the method for updating client terminal device | |
CN106161393B (en) | Method and device for realizing operation of multiple content management services | |
EP2859448A2 (en) | System and method for providing low latency to applications using heterogeneous processors | |
CN113411404A (en) | File downloading method, device, server and storage medium | |
CN112073240A (en) | Blue-green deployment system and method based on registration center component and storage medium | |
CN102571938A (en) | Electronic magazine reading system and electronic magazine client side reading system | |
CN106161510B (en) | The client of network application and resource loading method for client | |
CN115955590A (en) | Video processing method, video processing device, computer equipment and medium | |
CN108111598B (en) | Cloud disk data issuing method and device and storage medium | |
US11947553B2 (en) | Distributed data processing | |
CN107644020B (en) | Data storage and calling method and device | |
CN111090818B (en) | Resource management method, resource management system, server and computer storage medium | |
JP2017156914A (en) | Information processing system, information processing device, and information processing method | |
CN113253956B (en) | Print file processing method and device | |
CN108090087B (en) | File processing method and device | |
CN110069506A (en) | Maintaining method, device and the server of business datum | |
CN109491807A (en) | Data exchange method, device and system | |
CN112688980B (en) | Resource distribution method and device, and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |