CN105142184A - Flow control method and electronic device - Google Patents

Flow control method and electronic device Download PDF

Info

Publication number
CN105142184A
CN105142184A CN201510325681.3A CN201510325681A CN105142184A CN 105142184 A CN105142184 A CN 105142184A CN 201510325681 A CN201510325681 A CN 201510325681A CN 105142184 A CN105142184 A CN 105142184A
Authority
CN
China
Prior art keywords
data
electronic equipment
data link
state
information
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
Application number
CN201510325681.3A
Other languages
Chinese (zh)
Inventor
侯伟
刘晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510325681.3A priority Critical patent/CN105142184A/en
Publication of CN105142184A publication Critical patent/CN105142184A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/04Registration at HLR or HSS [Home Subscriber Server]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a flow control method and an electronic device. The method comprises the following steps: acquiring response information sent by a network server, wherein the response information is the information of response of the network server to request information sent by the electronic device to the network server for requesting first data; acquiring first parameter information in the response information, wherein the first parameter information represents the size of the first data; and controlling the state of a data link of the electronic device based on the first parameter information, wherein the data link is a link established between the electronic device and the network server and used for first data interaction. The invention provides the method in order to solve the technical problem that applications consume flow arbitrarily in the prior art.

Description

A kind of flow control methods and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly a kind of flow control methods and electronic equipment.
Background technology
Along with developing rapidly of mobile communication technology, popularization and application degree as the electronic equipment such as smart mobile phone, panel computer is more and more higher, use the number sharp increase of mobile electronic device online, make originally to become " on hand " based on the information of the Internet and service, the life of people also change by the various application software emerged in an endless stream.Mobile phone flow can be produced, mobile phone flow and carry out the size of the data exchanged between electronic equipment and the webserver when software opened by electronic equipment or carry out internetwork operation.
Present inventor, in the process realizing technical scheme in the embodiment of the present application, finds that prior art exists following technical problem:
If the authority that application program that electronic equipment is installed obtains usage data link just can random use traffic, such as, electronic equipment can consume a lot of data traffic because application program download data, software anomaly, automatic renewal and other modes.Simultaneously on an electronic device in network process, application program there will be pushed information, obtains the content such as locating information, advertisement, and flow also will be caused to expend, and along with in electronic equipment, set up applications is more, traffic consumes is faster, the expense much unnecessary by adding users.
Summary of the invention
The invention provides a kind of flow control methods and electronic equipment, arbitrarily expend the technical problem of flow in order to solve application program of the prior art.
The embodiment of the present application provides a kind of flow control methods on the one hand, and be applied in an electronic equipment, described method comprises:
Obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Obtain the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data;
Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Optionally, the described state controlling the data link of described electronic equipment based on described first parameter information, comprising:
Control described data link based on described first parameter information disconnect or keep described data link.
Optionally, described based on described first parameter information control described data link disconnect or keep described data link, comprising:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Optionally, before the state of the described data link of described control is off state, described method also comprises:
Generate and export information, described information is used for reminding user and determines whether to receive described first data;
The state of the described data link of described control is off state, comprising:
Receive the confirmation disconnecting described data link; Described confirmation generates the operation of described information based on user;
According to described confirmation, the state controlling the data link of described electronic equipment is off state.
Optionally, in described generation and before exporting information, described method also comprises:
Determine that the display of described electronic equipment is in opening.
Optionally, the response message that the described acquisition webserver sends, comprising:
Obtain the HTML (Hypertext Markup Language) head response that the webserver sends;
The first parameter information in the described response message of described acquisition, comprising:
Obtain the data length information in described HTML (Hypertext Markup Language) head response.
The embodiment of the present application provides a kind of electronic equipment on the other hand, comprising:
Housing;
Display, is arranged on described housing;
Receiver, is arranged in described housing, and for receiving the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Processor, is arranged in described housing, is connected with described display and described receiver, and for obtaining the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data; Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Optionally, described processor is used for disconnecting based on described first parameter information control data link or keeping link.
Optionally, described processor is used for:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Optionally, described electronic equipment also comprises input unit, described processor is used for: before the state of the described data link of described control is off state, generates and export information, and described information is used for reminding user and determines whether to receive described first data;
Described processor also for: received the confirmation disconnecting described data link by described input unit; According to described confirmation, the state controlling the data link of described electronic equipment is off state; Wherein, described confirmation generates the operation of described information based on user.
Optionally, described processor is used for: before exporting information, determine that described display is in opening in described generation.
Optionally, described receiver is for obtaining the HTML (Hypertext Markup Language) head response of webserver transmission;
Described processor is for obtaining the data length information in described HTML (Hypertext Markup Language) head response.
The embodiment of the present application provides a kind of electronic equipment on the other hand, comprising:
First acquisition module, obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Second acquisition module, obtains the first parameter information in described response message, and described first parameter information characterizes the data volume size of described first data;
Control module, controls the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
By the embodiment of in the above-described embodiment in the present invention or multiple embodiment, at least following technique effect can be realized:
Electronic equipment sends the request obtaining data to the webserver, and obtain the response message that the webserver returns, in response message, obtain the parameter information of characterization data amount size, electronic equipment controls the state of the data link of described electronic equipment based on parameter information.Such as: when electronic equipment receives the information, audio frequency, video, picture and the other forms of data that send from the webserver, the data link state of electronic equipment can be controlled according to the data volume size of these data, so receive arbitrarily the method for data compared to existing technology, can avoid because reception data are excessive and cause flow to waste, further for user saves communication cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only the embodiment of the present application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The flow chart of a kind of flow control methods that Fig. 1 provides for the embodiment of the present application one;
The structure chart of a kind of electronic equipment that Fig. 2 provides for the embodiment of the present application two;
The structure chart of a kind of electronic equipment that Fig. 3 provides for the embodiment of the present application three.
Embodiment
The embodiment of the present application provides a kind of flow control methods and electronic equipment, arbitrarily expends the technical problem of flow in order to solve application program of the prior art.
Technical scheme in the embodiment of the present application is solve above-mentioned technical problem, and general thought is as follows:
Electronic equipment sends the request obtaining data to the webserver, and obtain the response message that the webserver returns, in response message, obtain the parameter information of characterization data amount size, electronic equipment controls the state of the data link of described electronic equipment based on parameter information.Such as: when electronic equipment receives the information, audio frequency, video, picture and the other forms of data that send from the webserver, the data link state of electronic equipment can be controlled according to the data volume size of these data, so receive arbitrarily the method for data compared to existing technology, can avoid because reception data are excessive and cause flow to waste, further for user saves communication cost.
In order to better understand technique scheme, below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical solution of the present invention, instead of the restriction to technical solution of the present invention, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can combine mutually.
Embodiment one
Please refer to Fig. 1, the application provides a kind of flow control methods, is applied to an electronic equipment.Electronic equipment can be smart mobile phone, panel computer or intelligent watch etc., electronic equipment can run multiple application software, such as micro-letter, Baidu, music box etc., can produce certain data traffic when electronic equipment uses these softwares to carry out internetwork operation and information interaction.
As shown in Figure 1, the main flow of this flow control methods is described below:
S101: obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
S102: obtain the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data;
S103: the state controlling the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Wherein, in S101, obtain the response message that the webserver sends, specifically, different according to the agreement communicating used between electronic equipment and the webserver, then the type of corresponding response message is also different.When electronic equipment is to web server requests the first data, electronic equipment sends solicited message for asking acquisition first data according to communication protocol to the webserver.The webserver returns the response message of solicited message according to corresponding communication protocol.Now, data link is established between electronic equipment and the webserver.By this data link, electronic equipment can receive the first data or other data.
For example, communicated by HTML (Hypertext Markup Language) (HyperTextTransferProtocol, HTTP) between electronic equipment and the webserver.Set up the mode that HTTP data link uses " request and response ".First electronic equipment sends HTTP request information to the webserver, and solicited message comprises the information of the first data, such as the network address of the first data.Then the webserver returns http response message to electronic equipment.Wherein, http response message comprises statusline, head response, message entity three parts.Statusline comprises: protocol version information, responsive state code and corresponding state description.Head response comprises: the positive writing coding method of entity, entity text language, entity text size, entity text type etc.Message entity is exactly the first data that server returns.Statusline, head response and message entity three parts sequential delivery in a network, namely first transmission state is capable, then transmission response head, last message transfer entity.In this example, electronic equipment can obtain http response head in http response information as the response message in step 101.
For example, user under the state that the mobile network data of electronic equipment is opened or when access WiFi, by Baidu's search client browsing page.Baidu's search client is communicated by http protocol with Baidu server, when user clicks certain news of Baidu's search, first Baidu's search client connects to Baidu's server transmission HTTP request by network, to ask the data of this news, i.e. and the first data.Then Baidu's server returns http response head to Baidu's search client.Thus, establish a HTTP data link between electronic equipment and Baidu's server, user can receive the data of this news by this HTTP data link.
After the response message obtaining webserver transmission in S101, next perform S102, the response message namely sent according to the webserver determines the first parameter information.In practice, the form of carrying of the first parameter information can be the same or different.Different situations can be: because the agreement that electronic equipment communicates used with the webserver is different, the type of response message is different, so cause form of the carrying difference of the first parameter information in response message.Identical situation can be: in the response message of existing agreement, and an extra increase territory or field carry the first parameter information, so now no matter use which kind of agreement, the form of carrying of the first parameter information is identical.Identical or different enforcement scene will be described in detail below.
For example, entity header territory (Content-Length) in http response head, is comprised, for describing the data length of entity in http response message.Therefore, in that case, when the response message in step 101 is http response head, S102 is specially: the data length information in acquisition http response head is as the first parameter information.Data length information has reacted the data volume size of the first data, namely needs the size of the network traffic data expended in communication process.
Such as, when user accesses Yoqoo viewing video, electronic equipment sends HTTP request to Yoqoo server, Yoqoo server obtains video information, and return to electronic equipment by this video information relevant parameter loading http response message, in this process, electronic equipment performs the http response head that S101 obtains http response message.The first parameter information performing S101 acquisition is the Content-Length of http response head, if the data of Content-Length are 10240kb, namely 10,000,000, then illustrate that this excellent cruel video of viewing needs to expend the data traffic of at least 10 million, then the first parameter information that S102 determines is 10240kb.
But for the response message of other agreement, not entity header territory, so will be carried at the first parameter information in other territory of response message.
Another possible execution mode is: the webserver calculates the size of the first data volume, then be carried in the new territory of of response message or in field by unified for the first parameter information of the size of sign first data volume, so no matter adopt which kind of agreement, the first parameter information is all in identical territory or field.
After determining the first parameter information, next perform S103, namely control the state of the data link of electronic equipment according to the first parameter information.Concrete, S103 comprises: disconnect based on the first parameter information control data link or keep described data link.
In practice, S103 has numerous embodiments, below will be described in detail.
The first possible implementation: detect described first parameter information and whether be greater than threshold value; When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, electronic equipment can not receive the data that the webserver sends.
For example, suppose that the flow that user arranges on an electronic device uses threshold value to be 5120kb, namely 5,000,000.When certain application requests first data, the first parameter information that S102 obtains is 10240kb, namely 10,000,000.Obviously threshold value 5,000,000 is used beyond flow, so be in off-state with regard to control data link.When the state of data link is in off-state, just cannot receive the first data, thus, larger traffic consumes can be avoided.Such as: when the state of data link is off state, the message entity of http response message cannot just be received.
Further, when the state of control data link is in off-state, user can also be notified by mode that is visual and/or that can listen, such as: over the display display alarm information " you watch this video and need use 10 megastream amount; exceed threshold value, data link is disconnected ".
The implementation that the second is possible: compared with the implementation that the first is possible, unlike, in the present embodiment, in order to avoid misoperation, such as in some cases, user may need acquisition first data, so before the state controlling described data link is off state, the method also comprises: generate and export information, and described information is used for reminding user and determines whether reception first data.Corresponding, the state controlling described data link is off state, comprising: receive the confirmation disconnecting described data link; Described confirmation generates the operation of described information based on user; According to described confirmation, the state controlling the data link of described electronic equipment is off state.
Concrete, information can be information of voice prompt, or by Word message that display shows.For example, show Word message over the display and " watch this video and need use 10 megastream amount, still continue viewing? ", provide two select buttons, " turn-off data link " and " continuing viewing " simultaneously.
Concrete, electronic equipment can obtain by acoustic input dephonoprojectoscopes such as microphones button that the confirmation of the described link of disconnection of user or electronic equipment detect that user clicks " turn-off data link " and receive the confirmation information.Optionally, can also be when not receiving the confirmation keeping data link within a predetermined period of time, electronic equipment generates the confirmation of turn-off data link.
Certainly, if when user wishes reception the first data, just phonetic entry can continue the phonetic order keeping data link, or continue to keep the instruction of data link by the button input clicking " continuing viewing ", so now, electronic equipment will receive the first data.
The third possible implementation: compared to the implementation that the second is possible, unlike in the present embodiment, when information is text message, is generating and before exporting information, is determining that the display of electronic equipment is in opening.If display is in black state, does not then generate and export information or export information of voice prompt.Such as user is provided with flow and uses threshold value to be 5,000,000, and when the display of electronic equipment is in screen lock state, Baidu's search client is auto-update software when allowing without user.Baidu's server pushes upgrade installation package by http protocol, i.e. the first data, and setting up one with electronic equipment provides the HTTP long-chain of Push Service to connect.The http response head that electronic equipment connects according to HTTP long-chain obtains the first parameter information.Suppose to download the flow that upgrade installation package needs 6,000,000, excess flow uses threshold value 5,000,000, determines that the display of electronic equipment is in screen lock state simultaneously, then generates and export voice reminder information.Voice messaging is such as: " you have software upgrading, need 6 megastream amounts, exceed threshold value, the need of continuation upgrading ".The confirmation information control data link finally returned according to user disconnects or keeps data link.
4th kind of possible implementation, compared to the implementation that the first is possible, unlike in the present embodiment, user may be connected to free cordless communication network, does not need the service condition considering flow.Such as, so before the state controlling described data link is off state, whether detected electrons equipment employs free communication network, and electronic equipment is connected into the situation of network by Wi-Fi.If be in free communication network environment, then continue to keep the data link between electronic equipment and the webserver.Thus, what user can be random connects various server obtaining information by electronic equipment, and the situation that there will not be data link to disconnect.When electronic equipment uses charge network, so link with regard to turn-off data.
Described as can be seen from above, user arranges flow on an electronic device and uses threshold value, when the first parameter information exceeds threshold value, then and transmitted traffic information or directly turn-off data link, thus save data on flows for user, and then saving communication cost.Also can being arranged in Wi-Fi environment simultaneously, even if exceed threshold value also keep data link, making user convenient comfortable when using various application program.
Embodiment two
Based on the inventive concept same with flow control methods in the embodiment of the present application one, the embodiment of the present application provides electronic equipment, please refer to Fig. 2, and described electronic equipment comprises:
Housing 201;
Display 202, is arranged on described housing;
Receiver 203, be arranged in described housing, for receiving the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Processor 204, is arranged in described housing, is connected with described display and described receiver, and for obtaining the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data; Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Specifically, processor 204 can be specifically general central processing unit (CPU), can be that ASIC(Application Specific Integrated Circuit) is (English: ApplicationSpecificIntegratedCircuit, being called for short: ASIC), can be one or more integrated circuits performed for control program.
Further, described electronic equipment can also comprise memory, and the quantity of memory can be one or more.Memory can comprise read-only memory (English: ReadOnlyMemory, be called for short: ROM), random access memory (English: RandomAccessMemory, RAM) and magnetic disc store be called for short:.
Further, described processor 204 for:
Disconnect based on described first parameter information control data link or keep link.
Further, described processor 204 for:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Further, described processor 204 for:
Before the state of the described data link of described control is off state, generates and export information, described information is used for reminding user and determines whether to receive described first data;
Described processor 204 also for: received the confirmation disconnecting described data link by described input unit; According to described confirmation, the state controlling the data link of described electronic equipment is off state; Wherein, described confirmation generates the operation of described information based on user.
Further, described processor 204 for:
Before exporting information, determine that described display is in opening in described generation.
Further, described receiver 203 for:
Obtain the HTML (Hypertext Markup Language) head response that the webserver sends;
Described processor 204 also for: obtain the data length information in described HTML (Hypertext Markup Language) head response.
Various variation pattern in flow control methods in earlier figures 1 embodiment and instantiation are equally applicable to the electronic equipment of the present embodiment, by the aforementioned detailed description to flow control methods, those skilled in the art clearly can know the implementation method of electronic equipment in the present embodiment, so succinct in order to specification, be not described in detail in this.
Embodiment three
Based on the inventive concept same with flow control methods in the embodiment of the present application one, the embodiment of the present application provides electronic equipment, please refer to Fig. 3, and described electronic equipment comprises:
First acquisition module 301, obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Second acquisition module 302, obtains the first parameter information in described response message, and described first parameter information characterizes the data volume size of described first data;
Control module 303, controls the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Further, described control module 303 for:
Control described data link based on described first parameter information disconnect or keep described data link.
Further, described control module 303 for:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Further, described control module 303 for:
Before the state of the described data link of described control is off state, generates and export information, described information is used for reminding user and determines whether to receive described first data; Receive the confirmation disconnecting described data link, described confirmation generates the operation of described information based on user;
According to described confirmation, the state controlling the data link of described electronic equipment is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Further, described control module 303 for:
Before exporting information, determine that the display of described electronic equipment is in opening in described generation.
Further, described first acquisition module 301 for:
Obtain the HTML (Hypertext Markup Language) head response that the webserver sends;
Corresponding, described second acquisition module 302 for:
Obtain the data length information in described HTML (Hypertext Markup Language) head response.
Various variation pattern in flow control methods in earlier figures 1 embodiment and instantiation are equally applicable to the electronic equipment of the present embodiment, by the aforementioned detailed description to flow control methods, those skilled in the art clearly can know the implementation method of electronic equipment in the present embodiment, so succinct in order to specification, be not described in detail in this.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
Electronic equipment sends the request obtaining data to the webserver, and obtain the response message that the webserver returns, in response message, obtain the parameter information of characterization data amount size, electronic equipment controls the state of the data link of described electronic equipment based on parameter information.Such as: when electronic equipment receives the information, audio frequency, video, picture and the other forms of data that send from the webserver, the data link state of electronic equipment can be controlled according to the data volume size of these data, so receive arbitrarily the method for data compared to existing technology, can avoid because reception data are excessive and cause flow to waste, further for user saves communication cost.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Specifically, the computer program instructions that flow control methods in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with flow control methods in storage medium or when being performed, comprise the steps:
Obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Obtain the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data;
Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
Optionally, the described state controlling the data link of described electronic equipment based on described first parameter information, comprising:
Control described data link based on described first parameter information disconnect or keep described data link.
Optionally, described based on described first parameter information control described data link disconnect or keep described data link, comprising:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
Optionally, before the state of the described data link of described control is off state, described method also comprises:
Generate and export information, described information is used for reminding user and determines whether to receive described first data;
The state of the described data link of described control is off state, comprising:
Receive the confirmation disconnecting described data link; Described confirmation generates the operation of described information based on user;
According to described confirmation, the state controlling the data link of described electronic equipment is off state.
Optionally, in described generation and before exporting information, described method also comprises:
Determine that the display of described electronic equipment is in opening.
Optionally, the response message that the described acquisition webserver sends, comprising:
Obtain the HTML (Hypertext Markup Language) head response that the webserver sends;
The first parameter information in the described response message of described acquisition, comprising:
Obtain the data length information in described HTML (Hypertext Markup Language) head response.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (13)

1. a flow control methods, be applied in an electronic equipment, described method comprises:
Obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Obtain the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data;
Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
2. the method for claim 1, is characterized in that, the described state controlling the data link of described electronic equipment based on described first parameter information, comprising:
Control described data link based on described first parameter information disconnect or keep described data link.
3. method as claimed in claim 2, is characterized in that, describedly controls described data link based on described first parameter information and disconnects or keep described data link, comprising:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
4. method as claimed in claim 3, it is characterized in that, before the state of the described data link of described control is off state, described method also comprises:
Generate and export information, described information is used for reminding user and determines whether to receive described first data;
The state of the described data link of described control is off state, comprising:
Receive the confirmation disconnecting described data link; Described confirmation generates the operation of described information based on user;
According to described confirmation, the state controlling the data link of described electronic equipment is off state.
5. method as claimed in claim 4, is characterized in that, in described generation and before exporting information, described method also comprises:
Determine that the display of described electronic equipment is in opening.
6. the method for claim 1, is characterized in that, the response message that the described acquisition webserver sends, and comprising:
Obtain the HTML (Hypertext Markup Language) head response that the webserver sends;
The first parameter information in the described response message of described acquisition, comprising:
Obtain the data length information in described HTML (Hypertext Markup Language) head response.
7. an electronic equipment, comprising:
Housing;
Display, is arranged on described housing;
Receiver, is arranged in described housing, and for receiving the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Processor, is arranged in described housing, is connected with described display and described receiver, and for obtaining the first parameter information in described response message, described first parameter information characterizes the data volume size of described first data; Control the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
8. electronic equipment as claimed in claim 7, is characterized in that, described processor is used for disconnecting based on described first parameter information control data link or keeping link.
9. electronic equipment as claimed in claim 8, it is characterized in that, described processor is used for:
Detect described first parameter information and whether be greater than threshold value;
When described first parameter information is greater than described threshold value, the state controlling described data link is off state, and under described off-state, described electronic equipment can not receive the data that the described webserver sends.
10. electronic equipment as claimed in claim 9, it is characterized in that, described electronic equipment also comprises input unit, described processor is used for: before the state of the described data link of described control is off state, generate and export information, described information is used for reminding user and determines whether to receive described first data;
Described processor also for: received the confirmation disconnecting described data link by described input unit; According to described confirmation, the state controlling the data link of described electronic equipment is off state; Wherein, described confirmation generates the operation of described information based on user.
11. electronic equipments as claimed in claim 10, it is characterized in that, described processor is used for: before exporting information, determine that described display is in opening in described generation.
12. electronic equipments as claimed in claim 7, is characterized in that, the HTML (Hypertext Markup Language) head response that described receiver sends for obtaining the webserver;
Described processor is for obtaining the data length information in described HTML (Hypertext Markup Language) head response.
13. 1 kinds of electronic equipments, comprising:
First acquisition module, obtain the response message that the webserver sends, described response message is the information of the solicited message for asking the first data that described network server response sends in described electronic equipment to the described webserver;
Second acquisition module, obtains the first parameter information in described response message, and described first parameter information characterizes the data volume size of described first data;
Control module, controls the state of the data link of described electronic equipment based on described first parameter information, described data link be set up between described electronic equipment with the described webserver for carrying out linking of the first data interaction.
CN201510325681.3A 2015-06-12 2015-06-12 Flow control method and electronic device Pending CN105142184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510325681.3A CN105142184A (en) 2015-06-12 2015-06-12 Flow control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510325681.3A CN105142184A (en) 2015-06-12 2015-06-12 Flow control method and electronic device

Publications (1)

Publication Number Publication Date
CN105142184A true CN105142184A (en) 2015-12-09

Family

ID=54727361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510325681.3A Pending CN105142184A (en) 2015-06-12 2015-06-12 Flow control method and electronic device

Country Status (1)

Country Link
CN (1) CN105142184A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635994A (en) * 2015-12-30 2016-06-01 广东欧珀移动通信有限公司 Method and terminal for receiving pushed information
CN105657461A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Video playing prompting method and device and mobile terminal
CN105808714A (en) * 2016-03-07 2016-07-27 北京金山安全软件有限公司 Method and device for acquiring network file resources and electronic equipment
CN105848130A (en) * 2016-05-20 2016-08-10 深圳市金立通信设备有限公司 Data traffic management method and terminal
CN107707602A (en) * 2017-06-24 2018-02-16 平安科技(深圳)有限公司 Data communication process terminal, method and computer-readable recording medium
CN113179536A (en) * 2021-03-12 2021-07-27 中国雄安集团数字城市科技有限公司 Traffic control method and system based on NB-IoT narrowband communication technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183950A (en) * 2006-11-14 2008-05-21 乐金电子(中国)研究开发中心有限公司 Communication flux accounting display system, terminal and method
EP2110983A1 (en) * 2008-04-16 2009-10-21 TeliaSonera AB Providing a roaming service to a user terminal in a communications system
CN101841605A (en) * 2010-03-23 2010-09-22 中兴通讯股份有限公司 Method and device for alarming flow when mobile phone downloads and flow alarming mobile phone
CN101867593A (en) * 2010-02-03 2010-10-20 宇龙计算机通信科技(深圳)有限公司 Network access control method, network access control system and network access terminal
CN102006576A (en) * 2010-12-08 2011-04-06 东莞宇龙通信科技有限公司 Method and system for displaying surfing flow and mobile terminal
CN103888916A (en) * 2014-03-24 2014-06-25 北京智谷睿拓技术服务有限公司 Information sending method and information sending device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183950A (en) * 2006-11-14 2008-05-21 乐金电子(中国)研究开发中心有限公司 Communication flux accounting display system, terminal and method
EP2110983A1 (en) * 2008-04-16 2009-10-21 TeliaSonera AB Providing a roaming service to a user terminal in a communications system
CN101867593A (en) * 2010-02-03 2010-10-20 宇龙计算机通信科技(深圳)有限公司 Network access control method, network access control system and network access terminal
CN101841605A (en) * 2010-03-23 2010-09-22 中兴通讯股份有限公司 Method and device for alarming flow when mobile phone downloads and flow alarming mobile phone
CN102006576A (en) * 2010-12-08 2011-04-06 东莞宇龙通信科技有限公司 Method and system for displaying surfing flow and mobile terminal
CN103888916A (en) * 2014-03-24 2014-06-25 北京智谷睿拓技术服务有限公司 Information sending method and information sending device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657461A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Video playing prompting method and device and mobile terminal
CN105635994A (en) * 2015-12-30 2016-06-01 广东欧珀移动通信有限公司 Method and terminal for receiving pushed information
CN105808714A (en) * 2016-03-07 2016-07-27 北京金山安全软件有限公司 Method and device for acquiring network file resources and electronic equipment
CN105808714B (en) * 2016-03-07 2019-05-17 北京金山安全软件有限公司 Method and device for acquiring network file resources and electronic equipment
CN105848130A (en) * 2016-05-20 2016-08-10 深圳市金立通信设备有限公司 Data traffic management method and terminal
CN107707602A (en) * 2017-06-24 2018-02-16 平安科技(深圳)有限公司 Data communication process terminal, method and computer-readable recording medium
WO2018233141A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Data communication processing terminal and method and computer readable storage medium
CN107707602B (en) * 2017-06-24 2021-06-04 平安科技(深圳)有限公司 Data communication processing terminal, method and computer readable storage medium
CN113179536A (en) * 2021-03-12 2021-07-27 中国雄安集团数字城市科技有限公司 Traffic control method and system based on NB-IoT narrowband communication technology

Similar Documents

Publication Publication Date Title
CN105142184A (en) Flow control method and electronic device
CN108990110B (en) Network traffic management method, device, storage medium and terminal
CN107656768B (en) Method and system for controlling page jump
CN102902733A (en) Information push method, device and system based on content subscription
CN105049423A (en) Authority management system, device and method
CN104601205A (en) Content sharing method and device
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN103167031A (en) Communication between Web applications
CN103530175A (en) Application program sorting and processing method and device
CN110059273A (en) A kind of method showing Rich Media on mobile terminals and mobile terminal
CN104580019A (en) Network service supplying method and device
CN104092815A (en) Method and device for inter-application information interaction based on Android system
CN105376719A (en) Information pushing method and device
CN103647756A (en) Advertisement broadcasting method, server, client and system
CN104216982A (en) Information processing method and electronic equipment
CN108427549B (en) Method and device for processing sound of notification message, storage medium and terminal
CN103631621A (en) Method and device for prompting information
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN104615622A (en) Document opening method and device and mobile terminal
CN104639973A (en) Information pushing method and device
CN112291799B (en) Method and device for determining download network speed, user equipment and storage medium
CN111367592B (en) Information processing method and device
CN113778367A (en) Voice interaction method, device, equipment and computer readable medium
CN106788829B (en) The broadcasting method and device of emergency event
CN113992645B (en) Request processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209

RJ01 Rejection of invention patent application after publication