CN106657345A - Server access method and device and terminal - Google Patents
Server access method and device and terminal Download PDFInfo
- Publication number
- CN106657345A CN106657345A CN201611234495.XA CN201611234495A CN106657345A CN 106657345 A CN106657345 A CN 106657345A CN 201611234495 A CN201611234495 A CN 201611234495A CN 106657345 A CN106657345 A CN 106657345A
- Authority
- CN
- China
- Prior art keywords
- server
- time interval
- access
- time
- data
- 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.)
- Pending
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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
-
- 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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a server access method and device and a terminal. According to the serer access method, by comparing first data with second data returned when a server responds to last access when receiving the first data returned when the server responds to present access, regulating a time interval of accessing the server next time according to a comparison result, setting timing time of a timer according to the regulated time interval and accessing the server when the timing time is up, a client can access the server in the varying time interval according to data rules in the server, so that access times during a data stabilization period are reduced, access times during a data varying period are increased, not only traffic and an electricity quantity of the terminal where the client is positioned can be saved during the data stabilization period, access cost of the client is reduced and a processing load of the server is alleviated, but also data of the client can be timely updated during the data varying period, and the problems of excessively high access cost of the client and excessively heavy processing load of the server in the prior art are solved.
Description
【Technical field】
The present invention relates to the communications field, more particularly to a kind of server access method, device and terminal.
【Background technology】
Currently, the terminal such as mobile phone has been obtained for widely using, and these terminals can easily access network.With end
What end was applied constantly weeds out the old and bring forth the new, and the client application installed in terminal is also more and more.
In prior art, some clients in terminal periodically can send request to server, to check on server
Whether data change.It is, every one section of fixed time interval, user end to server sends and once asks to look into
Ask whether data on server change.
However, in most of the cases, these requests are all unnecessary.Since after data stabilization on server, clothes
Data on business device are often in for a long time all without changing.And when the data on server change, recently
Data in a period of time server can change again toward contact.Therefore, when client is regular at regular intervals
During access server, if the time interval of request that user end to server sends arranges too short, number on the server
Substantial amounts of ineffective access is will result according to when being in the stabilization sub stage, the flow of client place terminal has both been wasted, client is wasted again
The electricity of end place terminal so that the access cost of client is too high, and also makes the processing load of server overweight.If objective
The time interval of the request that family end sends to server arranges long, and data on the server are in the normal short-terms for changing of Jing
Stage, client can not update to the data on server again.
In process of the present invention is realized, inventor has found that at least there are the following problems in prior art:
Client regular visit server causes that the access cost of client is too high, server processing load is overweight.
【The content of the invention】
In view of this, a kind of server access method, device and terminal are embodiments provided, it is existing to solve
Client regular visit server causes that the access cost of client is too high, server processing load is overweight asks in technology
Topic.
In a first aspect, the embodiment of the present invention provides a kind of server access method, client, methods described bag are applied to
Include:
When the first data that server is returned in response to this access are received, by first data and the service
Device is compared in response to last the second data for returning that access;
The time interval of the server is accessed according to comparative result adjustment next time;
According to the time interval after adjustment, the timing of timer is set;
In the timing then, the server is accessed.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, according to comparing knot
Fruit adjustment accesses the time interval of the server next time, including:
When first data are identical with second data, extend between the time for accessing the server next time
Every so that the time interval for accessing the server next time is longer than the time interval that this accesses the server.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, extend next time
The time interval of the server is accessed, including:
According to the time interval of this access server, to specify extension system to be accessed the service next time
The very first time interval of device;
The time interval for accessing the server next time is set to into the very first time interval and maximum time interval
Little value in both.
A kind of aspect as above and arbitrary possible implementation, it is further provided implementation, described specifying is prolonged
Long mode is to make the very first time interval equal to the first specified multiple of the time interval of this access server, described
First specified multiple is more than 1, or, make very first time interval equal to this access server time interval with refer to
Determine the sum of prolongation value.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, according to comparing knot
Fruit adjustment accesses the time interval of the server next time, including:
When first data are different from second data, shorten between the time for accessing the server next time
Every so that the time interval for accessing the server next time is shorter than the time interval that this accesses the server.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, shorten next time
The time interval of the server is accessed, including:
The time interval for accessing the server next time is set to into minimum interval.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, shorten next time
The time interval of the server is accessed, including:
According to the time interval of this access server, to specify shortening mode to be accessed the service next time
Second time interval of device;
The time interval for accessing the server next time is set to into second time interval and minimum interval
Big value in both.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, the specified contracting
Short mode is the second specified multiple for making second time interval be equal to the time interval of this access server, described
Second specified multiple is less than 1, or, make very first time interval equal to this access server time interval with refer to
The difference of reduced short value.
Second aspect, the embodiment of the present invention provides a kind of server access device, is arranged at client, described device bag
Include:
Data processing module, for receive server in response to this access return the first data when, will be described
First data are compared with the server in response to last the second data for returning that access;
Time interval adjusting module, for accessing the time interval of the server next time according to comparative result adjustment;
Timer setup module, for arranging the timing of timer according to the time interval after adjustment;
Access modules, then, the server is accessed in the timing.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, between the time
Every adjusting module when for accessing the time interval of the server next time according to comparative result adjustment, specifically for:
When first data are identical with second data, extend between the time for accessing the server next time
Every so that the time interval for accessing the server next time is longer than the time interval that this accesses the server.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, between the time
Every adjusting module when the time interval of the server is accessed next time for prolongation, specifically for:
According to the time interval of this access server, to specify extension system to be accessed the service next time
The very first time interval of device;
The time interval for accessing the server next time is set to into the very first time interval and maximum time interval
Little value in both.
A kind of aspect as above and arbitrary possible implementation, it is further provided implementation, described specifying is prolonged
Long mode is to make the very first time interval equal to the first specified multiple of the time interval of this access server, described
First specified multiple is more than 1, or, make very first time interval equal to this access server time interval with refer to
Determine the sum of prolongation value.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, between the time
Every adjusting module when for accessing the time interval of the server next time according to comparative result adjustment, specifically for:
When first data are different from second data, shorten between the time for accessing the server next time
Every so that the time interval for accessing the server next time is shorter than the time interval that this accesses the server.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, between the time
Every adjusting module when the time interval of the server is accessed next time for shortening, specifically for:
The time interval for accessing the server next time is set to into minimum interval.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, between the time
Every adjusting module when the time interval of the server is accessed next time for shortening, specifically for:
According to the time interval of this access server, to specify shortening mode to be accessed the service next time
Second time interval of device;
The time interval for accessing the server next time is set to into second time interval and minimum interval
Big value in both.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, the specified contracting
Short mode is the second specified multiple for making second time interval be equal to the time interval of this access server, described
Second specified multiple is less than 1, or, make very first time interval equal to this access server time interval with refer to
The difference of reduced short value.
The third aspect, the embodiment of the present invention provides a kind of terminal, and client is provided with the terminal, and the client sets
The server access device being equipped with described in second aspect.
With arbitrary possible implementation in terms of as above, it is further provided a kind of implementation, the terminal is
Mobile phone.
The embodiment of the present invention has the advantages that:
The embodiment of the present invention is by the comparative result adjustment according to this returned data of server and last returned data
The time interval of access server next time so that the data rule that client can be in server is between time for changing
Every access server, the access times during data stabilization are reduced, increase the access times during data variation, so as to can either
The flow and electricity of client place terminal are saved during data stabilization, the access cost of client is reduced, mitigates server
Processing load, the data of the client that can upgrade in time during data variation again.
【Description of the drawings】
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area
For those of ordinary skill, without having to pay creative labor, can be with other attached according to these accompanying drawings acquisitions
Figure.
Fig. 1 is the flow example figure of server access method provided in an embodiment of the present invention.
Fig. 2 is the Application Scenarios-Example figure of server access method provided in an embodiment of the present invention.
Fig. 3 is the functional block diagram of server access device provided in an embodiment of the present invention.
A kind of hardware architecture diagram of the terminal that Fig. 4 is provided by the embodiment of the present invention.
【Specific embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings
State.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
Its embodiment, belongs to the scope of protection of the invention.
The term for using in embodiments of the present invention is, only merely for the purpose of description specific embodiment, and to be not intended to be limiting
The present invention." one kind ", " described " and " being somebody's turn to do " of singulative used in the embodiment of the present invention and appended claims
It is also intended to include most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation of description affiliated partner, represent
There may be three kinds of relations, for example, A and/or B can be represented:Individualism A, while there is A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent forward-backward correlation pair as if a kind of relation of "or".
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detecting (condition or event of statement) ".
Embodiment one
A kind of server access method is embodiments provided, the server access method can apply to client
End.The server access method can realize that the application program can be arranged on mobile phone, panel computer etc. eventually by application program
On end.
Fig. 1 is the flow example figure of server access method provided in an embodiment of the present invention.The server access method stream
Journey is applied to client.As shown in figure 1, in the present embodiment, server access method comprises the steps:
S101, when the first data that server is returned in response to this access are received, by the first data and server
It is compared in response to last the second data for returning that access;
S102, according to comparative result the time interval of access server next time is adjusted;
S103, according to the time interval after adjustment the timing of timer is arranged;
S104, in timing then, access server.
Wherein, in S101, the data purpose that the first data are compared with the second data being to look on server are
It is no to change, so as to the time interval for adjusting access server next time accordingly in S102.If the first data and the second number
According to identical, illustrate that the data on server are not changed in.Now, the data rule in server, it is possible to determine that server
In data stablized, data in the period of one section longer in server all without changing, during this period of time
Continually access server is nonsensical.Therefore, the time interval of access server can now be extended, to reduce visit
The number of times of server is asked, so as to save the flow and electricity of client place terminal, the access cost of client is reduced.Meanwhile,
Because the access times of client are reduced, also therewith response is reduced the response times of server, therefore can also mitigate server
Processing load.In the case where the corresponding client of server is relatively more, for the mitigation effect of the processing load of server
Just become apparent from.
If the first data are different from the second data, illustrate that the data on server there occurs change, now according to service
Data rule in device, it is possible to determine that in a short time the data in server are also possible to change.Therefore, it can shorten access service
The time interval of device, to increase the number of times of access server, so as to enable the client to update to the nearest Jing of server
The data for often changing.
During a concrete implementation, the time interval of access server next time is adjusted according to comparative result, can
To include:When the first data are identical with the second data, extend the time interval of access server next time, so as to visit next time
The time interval for asking server is longer than the time interval of this access server.
Extend the time interval of access server, reduce can access times, so that data stabilization in the server
Period in, can save the flow and electricity of client place terminal, and then reduce the access cost of client.
During a concrete implementation, extend the time interval of access server next time, can include:According to this
The time interval of secondary access server, to specify extension system to obtain the very first time interval of access server next time;By under
The time interval of access server is set to the little value in both very first time interval and maximum time interval.
Wherein it is possible to pre-set a maximum time interval in client, for limit access server time between
Every prolongation degree, it is to avoid because the time interval of access server is long and cause client to upgrade in time data.
During a concrete implementation, it is intended that extension system can be:Very first time interval is made equal to this access
First specified multiple of the time interval of the server, wherein, the first specified multiple be more than 1, or, make the very first time be spaced
It is time interval and specified prolongation value equal to this access server and.
For example, time interval * 2 (symbol " * " is multiplication sign) of very first time interval=this access server, or
Person, the very first time, interval=this accessed the time interval+m of the server, and m is the prolongation value of setting.
During a concrete implementation, the time interval of access server next time is adjusted according to comparative result, can
To include:When the first data are different from the second data, shorten the time interval of access server next time, so as to visit next time
The time interval for asking server is shorter than the time interval of this access server.
Shorten the time interval of access server, increase can access times, so that data variation in the server
Than in more frequently period, client can update to the data in server.
Wherein it is possible to pre-set a minimum interval in client, for limit access server time between
Every shortening degree, it is to avoid cause to cross invalid access more and waste client institute because the time interval of access server is too short
In the flow and electricity of terminal.
During a concrete implementation, shorten the time interval of access server next time, can include:Will be next
The time interval of secondary access server is set to minimum interval.
During a concrete implementation, shorten the time interval of access server next time, can include:According to this
The time interval of secondary access server, to specify shortening mode to obtain the second time interval of access server next time;By under
The time interval of access server is set to the big value in both the second time interval and minimum interval.
During a concrete implementation, it is intended that shortening mode can be:The second time interval is made to access equal to this
Second specified multiple of the time interval of server, wherein, the second specified multiple be less than 1, or, make the very first time interval be equal to
The difference of the time interval of this access server and specified shortening value.
For example, time interval/2 (symbol "/" is the division sign) of the second time interval=this access server, or
Person, the time interval+n of the second time interval=this access server, n is the shortening value of setting.
Fig. 2 is the Application Scenarios-Example figure of server access method provided in an embodiment of the present invention.Referring to Fig. 2, client
Internal processes and the interaction between client and server it is as follows:
Server returns the response data of this access to client;
Client is processed server returned data according to aforesaid S101;
Result of the client based on previous step, according to time intervals of the aforesaid S102 to access server next time
It is adjusted;
Adjustment result of the client based on previous step, according to aforesaid S103 the timing of timer is arranged;
Client timer timing then, according to aforesaid S104, to server access request is sent, with visit
Ask server;
The access request of client is via network transmission to server.
Server access method provided in an embodiment of the present invention, by being returned according to this returned data of server and last time
The comparative result for returning data adjusts the time interval of access server next time so that the number that client can be in server
According to time interval access server of the rule to change, the access times during data stabilization are reduced, during increasing data variation
Access times, so as to save the flow and electricity of client place terminal during data stabilization, reduce client
Access cost, mitigate server processing load, the data of the client that can upgrade in time during data variation again.
Embodiment two
A kind of server access device is embodiments provided, the server access device can realize aforementioned enforcement
Each step of server access method in example one.
Fig. 3 is the functional block diagram of server access device provided in an embodiment of the present invention.In the present embodiment, server is visited
Ask that device is arranged at client, these clients may be mounted in the terminals such as mobile phone.As shown in figure 3, the server access dress
Put including:
Data processing module 310, for when the first data that server is returned in response to this access are received, by the
One data are compared with server in response to last the second data for returning that access;
Time interval adjusting module 320, for adjusting the time interval of access server next time according to comparative result;
Timer setup module 330, for arranging the timing of timer according to the time interval after adjustment;
Access modules 340, in timing then, access server.
During a concrete implementation, time interval adjusting module 320 is for next according to comparative result adjustment
During the time interval of secondary access server, can be specifically for:When the first data are identical with the second data, prolongation is visited next time
The time interval of server is asked, so that between the time that next time time interval of access server is longer than this access server
Every.
During a concrete implementation, time interval adjusting module 320 is being used to extend access server next time
Time interval when, can be specifically for:It is next to specify extension system to obtain according to the time interval of this access server
The very first time interval of secondary access server;By the time interval of access server next time be set to the very first time interval and most
Little value in both big time intervals.
During a concrete implementation, it is intended that extension system can be:Very first time interval is made equal to this access
First specified multiple of the time interval of server, wherein, the first specified multiple be more than 1, or, make the very first time interval be equal to
The time interval of this access server and specified prolongation value and.
During a concrete implementation, time interval adjusting module 320 is for next according to comparative result adjustment
During the time interval of secondary access server, can be specifically for:When the first data are different from the second data, shortening is visited next time
The time interval of server is asked, so that between the time that next time time interval of access server is shorter than this access server
Every.
During a concrete implementation, time interval adjusting module 320 is being used to shorten access server next time
Time interval when, can be specifically for:The time interval of access server next time is set to into minimum interval.
During a concrete implementation, time interval adjusting module 320 is being used to shorten access server next time
Time interval when, can be specifically for:According to the time interval of this access server, to specify shortening mode to obtain next
Second time interval of secondary access server;The time interval of access server next time is set to into the second time interval and most
Big value in both little time intervals.
During a concrete implementation, it is intended that shortening mode can be:The second time interval is made to access equal to this
Second specified multiple of the time interval of server, wherein, the second specified multiple be less than 1, or, make the very first time interval be equal to
The difference of the time interval of this access server and specified shortening value.
The server access method being able to carry out due to the server access device in the present embodiment in previous embodiment one,
The part that the present embodiment is not described in detail, refers to the related description to server access method in previous embodiment one.
Server access device provided in an embodiment of the present invention, by being returned according to this returned data of server and last time
The comparative result for returning data adjusts the time interval of access server next time so that the number that client can be in server
According to time interval access server of the rule to change, the access times during data stabilization are reduced, during increasing data variation
Access times, so as to save the flow and electricity of client place terminal during data stabilization, reduce client
Access cost, mitigate server processing load, the data of the client that can upgrade in time during data variation again.
Embodiment three
A kind of terminal is present embodiments provided, client is installed in the terminal, the client is provided with embodiment two
Server access device described in any one.
Wherein, terminal can be mobile phone.
Fig. 4 is referred to, a kind of hardware architecture diagram of its terminal provided by the embodiment of the present invention.
As shown in figure 4, terminal can include following one or more assemblies:Process assembly 402, memory 404, power supply group
Part 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, Yi Jitong
Letter component 416.
The integrated operation of the usual control terminal of process assembly 402, such as with display, call, data communication, camera behaviour
Make and record the associated operation of operation.Process assembly 402 can carry out execute instruction including one or more processors 420, with
The all or part of step of the server access method in previous embodiment one is completed, is specifically included:Ring server is received
The first data and server should be accessed into the second data for returning in response to last when the first data that this access is returned
It is compared;The time interval of access server next time is adjusted according to comparative result;Arrange according to the time interval after adjustment
The timing of timer;In timing then, access server.For example, process assembly 402 can include multimedia mould
Block, to facilitate the interaction between multimedia groupware 408 and process assembly 402.
Memory 404 is configured to store various types of data to support the operation in terminal.The example of these data
Including the instruction of any application program for operating in terminal or method, contact data, telephone book data, message, figure
Piece, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or combinations thereof reality
Existing, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is only
Read memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory, magnetic
Disk or CD.
Power supply module 406 provides electric power for the various assemblies of terminal.Power supply module 406 can include power-supply management system,
One or more power supplys, and other and the component for generating for terminal, management and distribution electric power are associated.
Multimedia groupware 408 is included in the screen of one output interface of offer between the terminal and user.At some
In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Touch-screen is may be implemented as, to receive the input signal from user.Touch panel includes one or more touch sensors
With the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also the detection duration related to the touch or slide and pressure.In certain embodiments, multimedia
Component 408 includes a front-facing camera and/or post-positioned pick-up head.When terminal is in operator scheme, such as screening-mode or video
During pattern, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and rearmounted
Camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured to output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike
Wind (MIC), when terminal is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is configured to
Receive external audio signal.The audio signal for being received can be further stored in memory 404 or via communication component 416
Send.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
, to provide interface between process assembly 402 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 412
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 414 includes one or more sensors, for providing the state estimation of various aspects for terminal.Example
Such as, sensor cluster 414 can detect the opening/closed mode of terminal, the relative positioning of component, such as described component is whole
The display and keypad at end, sensor cluster 414 can be changed with the position of one component of detection terminal or terminal, Yong Huyu
Presence or absence of, the temperature change of terminal orientation or acceleration/deceleration and terminal of terminal contact.Sensor cluster 414 can be with
Including proximity transducer, the presence of the object near detection when without any physical contact is configured to.Sensor cluster
414 can also include optical sensor, such as CMOS or ccd image sensor, for used in imaging applications.In some embodiments
In, the sensor cluster 414 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature
Degree sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal and other equipment.Terminal can
To access based on the wireless network of communication standard, such as WiFi, 2G, 3G or 4G or combinations thereof.In an exemplary embodiment
In, communication component 416 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal can be by one or more application specific integrated circuit (ASIC), data signals
Processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematic, for example, the module
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple modules or group
Part can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown
Or discuss coupling each other direct-coupling or communication connection can be by the indirect of some interfaces, device or module
Coupling is communicated to connect, and can be electrical, mechanical or other forms.
The module as separating component explanation can be or may not be it is physically separate, it is aobvious as module
The part for showing can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of module therein can according to the actual needs be selected to realize the mesh of this embodiment scheme
's.
In addition, each functional module in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention each
The part steps of embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (18)
1. a kind of server access method, is applied to client, it is characterised in that methods described includes:
When the first data that server is returned in response to this access are received, first data and the server are rung
Should be compared in last the second data for accessing return;
The time interval of the server is accessed according to comparative result adjustment next time;
According to the time interval after adjustment, the timing of timer is set;
In the timing then, the server is accessed.
2. method according to claim 1, it is characterised in that the server is accessed according to comparative result adjustment next time
Time interval, including:
When first data are identical with second data, prolongation accesses the time interval of the server next time, with
The time interval for accessing the server next time is set to be longer than this time interval for accessing the server.
3. method according to claim 2, it is characterised in that prolongation accesses the time interval of the server next time,
Including:
According to the time interval of this access server, to specify extension system to be accessed the server next time
The very first time is spaced;
The time interval for accessing the server next time is set to into both described very first time interval and maximum time interval
In little value.
4. method according to claim 3, it is characterised in that the specified extension system is spaced to make the very first time
Equal to the first specified multiple of the time interval of this access server, first specified multiple is more than 1, or, order
Very first time interval equal to time interval and the specified prolongation value of this access server and.
5. method according to claim 1, it is characterised in that the server is accessed according to comparative result adjustment next time
Time interval, including:
When first data are different from second data, shortening accesses the time interval of the server next time, with
The time interval for accessing the server next time is set to be shorter than this time interval for accessing the server.
6. method according to claim 5, it is characterised in that shortening accesses the time interval of the server next time,
Including:
The time interval for accessing the server next time is set to into minimum interval.
7. method according to claim 5, it is characterised in that shortening accesses the time interval of the server next time,
Including:
According to the time interval of this access server, to specify shortening mode to be accessed the server next time
Second time interval;
The time interval for accessing the server next time is set to into both described second time interval and minimum interval
In big value.
8. method according to claim 7, it is characterised in that the specified shortening mode is to make second time interval
Equal to the second specified multiple of the time interval of this access server, second specified multiple is less than 1, or, order
The very first time interval is equal to the time interval of this access server and the difference of specified shortening value.
9. a kind of server access device, is arranged at client, it is characterised in that described device includes:
Data processing module, for when the first data that server is returned in response to this access are received, by described first
Data are compared with the server in response to last the second data for returning that access;
Time interval adjusting module, for accessing the time interval of the server next time according to comparative result adjustment;
Timer setup module, for arranging the timing of timer according to the time interval after adjustment;
Access modules, then, the server is accessed in the timing.
10. device according to claim 9, it is characterised in that the time interval adjusting module is for according to comparing
When as a result adjusting the time interval for accessing the server next time, specifically for:
When first data are identical with second data, prolongation accesses the time interval of the server next time, with
The time interval for accessing the server next time is set to be longer than this time interval for accessing the server.
11. side's devices according to claim 10, it is characterised in that the time interval adjusting module is under for extending
When once accessing the time interval of the server, specifically for:
According to the time interval of this access server, to specify extension system to be accessed the server next time
The very first time is spaced;
The time interval for accessing the server next time is set to into both described very first time interval and maximum time interval
In little value.
12. devices according to claim 11, it is characterised in that the specified extension system is to make between the very first time
Every the first specified multiple of the time interval equal to this access server, first specified multiple is more than 1, or,
Make very first time interval equal to time interval and the specified prolongation value of this access server and.
13. devices according to claim 9, it is characterised in that the time interval adjusting module is for according to comparing
When as a result adjusting the time interval for accessing the server next time, specifically for:
When first data are different from second data, shortening accesses the time interval of the server next time, with
The time interval for accessing the server next time is set to be shorter than this time interval for accessing the server.
14. devices according to claim 13, it is characterised in that the time interval adjusting module is being used to shorten next
It is secondary access the server time interval when, specifically for:
The time interval for accessing the server next time is set to into minimum interval.
15. devices according to claim 13, it is characterised in that the time interval adjusting module is being used to shorten next
It is secondary access the server time interval when, specifically for:
According to the time interval of this access server, to specify shortening mode to be accessed the server next time
Second time interval;
The time interval for accessing the server next time is set to into both described second time interval and minimum interval
In big value.
16. devices according to claim 15, it is characterised in that the specified shortening mode is to make between second time
Every the second specified multiple of the time interval equal to this access server, second specified multiple is less than 1, or,
The very first time interval is made equal to the time interval of this access server and the difference of specified shortening value.
17. a kind of terminals, it is characterised in that be provided with client in the terminal, the client be provided with claim 9 to
Server access device described in 16 any one.
18. terminals according to claim 17, it is characterised in that the terminal is mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611234495.XA CN106657345A (en) | 2016-12-28 | 2016-12-28 | Server access method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611234495.XA CN106657345A (en) | 2016-12-28 | 2016-12-28 | Server access method and device and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657345A true CN106657345A (en) | 2017-05-10 |
Family
ID=58833262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611234495.XA Pending CN106657345A (en) | 2016-12-28 | 2016-12-28 | Server access method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657345A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020238555A1 (en) * | 2019-05-30 | 2020-12-03 | 深圳壹账通智能科技有限公司 | Method and apparatus for dynamically adjusting time threshold, computer device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104050236A (en) * | 2014-05-23 | 2014-09-17 | 小米科技有限责任公司 | Website content update prompting method, server and client |
CN104199970A (en) * | 2014-09-22 | 2014-12-10 | 北京国双科技有限公司 | Webpage data update processing method and device |
CN104219250A (en) * | 2014-09-26 | 2014-12-17 | 北京国双科技有限公司 | Webpage data acquisition method and apparatus and webpage data transmission method and device |
-
2016
- 2016-12-28 CN CN201611234495.XA patent/CN106657345A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104050236A (en) * | 2014-05-23 | 2014-09-17 | 小米科技有限责任公司 | Website content update prompting method, server and client |
CN104199970A (en) * | 2014-09-22 | 2014-12-10 | 北京国双科技有限公司 | Webpage data update processing method and device |
CN104219250A (en) * | 2014-09-26 | 2014-12-17 | 北京国双科技有限公司 | Webpage data acquisition method and apparatus and webpage data transmission method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020238555A1 (en) * | 2019-05-30 | 2020-12-03 | 深圳壹账通智能科技有限公司 | Method and apparatus for dynamically adjusting time threshold, computer device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219388B (en) | Sound control method and device | |
US10129044B2 (en) | Method and apparatus for controlling smart device | |
CN105512545B (en) | Access rights management method and device | |
CN109658927A (en) | Wake-up processing method, device and the management equipment of smart machine | |
CN107370772A (en) | Account login method, device and computer-readable recording medium | |
CN104125162B (en) | The access processing method and device of Internet resources | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
CN105528055A (en) | Running object processing method and device | |
CN105898032A (en) | Adjusting method and apparatus for warning tone | |
CN104703255B (en) | Method of adjustment in net and device, electronic equipment | |
CN105607818A (en) | Application sorting method and apparatus | |
CN103905442A (en) | Wakeup method and device in data synchronization | |
CN105824474A (en) | Control method and device as well as mobile equipment | |
CN106455002A (en) | Wireless search method and device, and terminal | |
CN106254669A (en) | Data traffic based reminding method and device | |
CN112260787B (en) | Equipment time delay adjustment method and device, electronic equipment and storage medium | |
CN106162612B (en) | Control the method and device of Root authority | |
CN107436782A (en) | Application program silence installation method and device | |
CN107632835A (en) | Using installation method and device | |
CN105512050B (en) | EMS memory management process and device | |
CN106657345A (en) | Server access method and device and terminal | |
CN106451670A (en) | Charge control method, device and terminal equipment | |
CN105893128A (en) | Application program calling management method and device | |
CN106201611A (en) | Run the method and device of application | |
CN106201738A (en) | System broadcasts call method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |