CN101075955B - Method and apparatus for accessing Internet simultaneously by browser and instant communicator - Google Patents

Method and apparatus for accessing Internet simultaneously by browser and instant communicator Download PDF

Info

Publication number
CN101075955B
CN101075955B CN2006101683006A CN200610168300A CN101075955B CN 101075955 B CN101075955 B CN 101075955B CN 2006101683006 A CN2006101683006 A CN 2006101683006A CN 200610168300 A CN200610168300 A CN 200610168300A CN 101075955 B CN101075955 B CN 101075955B
Authority
CN
China
Prior art keywords
network
access request
communication module
network access
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2006101683006A
Other languages
Chinese (zh)
Other versions
CN101075955A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2006101683006A priority Critical patent/CN101075955B/en
Publication of CN101075955A publication Critical patent/CN101075955A/en
Application granted granted Critical
Publication of CN101075955B publication Critical patent/CN101075955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method comprise: presetting up a unified communication module for the browser and real time communication unit in the mobile phone, which is used for the communication between the mobile phone and the network; when needing to access the network, the browser and real time communication unit sends the access request packet to the network communication module; the network communication module sends the access request packet to the network; the network returns the network data packet via the network communication module.

Description

A kind of browser and instant communicator be the method and apparatus of accesses network simultaneously
Technical field
The present invention relates to the technology of mobile phone access network, particularly relate to a kind of browser and the instant communicator method and apparatus of accesses network simultaneously.
Background technology
Along with the development of mobile communication technology, mobile phone can pass through browser and the instant communicator accesses network of self respectively.Described herely be often referred to by browser browsing page etc. by the browser access network, and instant communicator just is meant chat tool, as the QQ chat tool, by the instant communicator accesses network is exactly to receive or send the message that carries user's chat content by network, thus the instant messaging between realization and the good friend.
Browser in the mobile phone and instant communicator normally independently and can not occupy Internet resources simultaneously.That is to say, when needs surf the web webpage, the browser handles opening, and instant communicator is in closed condition; When needs were chatted, instant communicator was in opening, and browser is in closed condition.
In the practical application, the user may wish browsing page and chat simultaneously, needs browser and instant communicator while accesses network in the mobile phone.In order to reach browser and the instant communicator purpose of accesses network simultaneously, a kind of method of web instant messaging is proposed at present, its basic thought is with instant communicator webization, promptly chats by webpage, thus the user's request of satisfying online and chatting.
But in the method for above-mentioned web instant messaging, when the user chats, the webpage of opening will be used to show chat content, if the user needs browsing page, also need to open new webpage and will browse.Like this, the user just need be switched between different webpages back and forth, and experience effect is bad.
In addition, because user's chat content is presented in the webpage, need obtain new chat content by the mode of refreshed web page.Refreshed web page generally has manual refreshing and refreshes dual mode automatically, and manual refreshing need all start the process that once webpage is refreshed at set intervals by the user, implements cumbersomely, and the user experience effect is bad; Automatically refresh the browser that then needs in the mobile phone and support that script refreshes,, refresh automatically by script every a bit of time.Regardless of being manual refreshing or refreshing automatically that all need the content of whole webpage is all upgraded, data quantity transmitted is all bigger, need take more Internet resources.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of browser and the instant communicator method and the device of accesses network simultaneously, can be in satisfying mobile phone under the requirement of Internet resources exclusivity characteristics, reach browser and the instant communicator purpose of accesses network simultaneously.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of browser and instant communicator be the method for accesses network simultaneously, for browser and instant communicator in the mobile phone are provided with unified network communication module, is used for the communication between mobile phone and the network in advance, and this method is:
A, browser and instant communicator send to the network communication module with the network access request bag that produces;
B, network communication module send to network with the network access request bag, network returns network packet to the network communication module, the network communication module is according to determining that described network access request bag is the situation that browser or instant communicator produce, if being browser, the network access request bag produces, then described network packet is returned to browser, otherwise, return to instant communicator.
In the such scheme, set up a transmit queue in advance in the network communication module, further comprise between described step a and the step b: the network communication module is added the network access request bag that receives in the transmit queue to as rear of queue;
Described step b is:
Bx1, network communication module send to network with the network access request bag in the queue heads;
Bx2, network return network packet at queue heads to the network communication module; The network communication module produces if the network access request bag is a browser according to determining that described network access request bag is the situation that browser or instant communicator produce, and then described network packet is returned to browser, otherwise, return to instant communicator;
Bx3, network communication module deletion queue heads, with the next node in the formation as queue heads, execution in step bx1 again, all network access request bag in sending formation.
In the such scheme, comprise module id information in the described network access request bag, described module id information is used to identify the module that produces this network access request bag, further comprises between described step a and the step b: the described module id information of network communication module records;
Described step bx2 is: the network communication module receives the network packet of returning from network at queue heads earlier, if the module id information of record is the browser identification information in advance, then the network packet of returning is sent to browser; If the module id information of record is instant communicator in advance, then the network packet of returning is sent to instant communicator.
In the such scheme, set in advance and be used to the network state sign of representing whether Internet resources are monopolized, further comprise before the described transmission network access request of the step bx1 bag: described network state sign is set to busy condition;
The described network communication module of step bx2 further comprises after receiving network packet: described network state sign is set to idle condition.
In the such scheme, set in advance transmission time interval, every during through a transmission time interval, this method further comprises:
Described network communication module judges according to the network state sign whether Internet resources are available, if available, execution in step b then; Otherwise, do not deal with.
In the such scheme, set up a transmit queue in advance in the network communication module, further comprise between described step a and the step b: the network communication module is added the network access request bag that receives in the transmit queue to as rear of queue;
The method of the described transmission network access request of step b bag is specially:
By1, network communication module send to network with the network access request bag in the queue heads;
By2, network communication module deletion queue heads as queue heads, and returns the next node in the formation to step by1, all network access request bag in sending formation.
In the such scheme, if the reference field of sign instant communicator is arranged in the inclusion of the network packet of returning at instant communicator, then the described definite network access request bag of step b is that the method that browser or instant communicator produce is:
The network communication module is resolved the network packet of returning from network earlier, determines that according to packet header the type of network packet is a text type, judges whether to contain reference field in the inclusion again, if having, then is defined as instant communicator; Otherwise, be defined as browser.
In the such scheme, the network access request bag that described instant communicator produces carries the serial number of identification data packet sequence, the network packet that described network returns also carries corresponding serial number, and then the described definite network access request bag of step b is that the method that browser or instant communicator produce is:
The network communication module is resolved the network packet of returning from network earlier, and has judged whether serial number, if having, then is defined as instant communicator; Otherwise, be defined as browser.
In the such scheme, set in advance and be used to the network state sign of representing whether Internet resources are monopolized,
Further comprise before the described transmission network access request of the step by1 bag: described network state sign is set to busy condition;
Further comprise between step by1 and the by2: described network state sign is set to idle condition.
In the such scheme, set in advance transmission time interval, every during through a transmission time interval, this method further comprises:
Described network communication module judges according to the network state sign whether Internet resources are available, if available, execution in step b then; Otherwise, do not deal with.
In the such scheme, the network access request bag that described instant communicator produces is: send user's chat content network access request bag, acquisition request chat content the network access request bag or obtain the network access request bag of buddy list.
In the such scheme, if instant communicator produces the network access request bag of acquisition request chat content, and be set the time interval of obtaining chat content in advance in instant communicator, the method that then produces the network access request bag that obtains chat content is:
Every through a time interval of obtaining chat content, instant communicator produces a network access request bag that obtains chat content.
In the such scheme, if instant communicator produces the network access request bag that obtains buddy list, and be set the time interval of obtaining buddy list in advance in instant communicator, the method that then produces the network access request bag that obtains buddy list is:
Every through a time interval of obtaining buddy list, instant communicator produces a network access request bag that obtains buddy list.
In the such scheme, carry retransmission flag in the described network access data bag, and set in advance the timeout value that receives the network packet of returning, if the network communication module does not receive the network packet of returning when arriving timeout value, this method further comprises:
Described network communication module is placed on the rear of queue wait with the corresponding network access request package and resends.
Another goal of the invention of the present invention is achieved in that
A kind of browser and instant communicator be the device of accesses network simultaneously, and described device is a mobile phone, comprises browser and instant communicator at least, and this device further comprises: the network communication module;
Wherein,
Described browser is used for sending the network access request bag to the network communication module, and receives the network packet of returning, and realizes browsing page;
Described instant communicator is used for sending the network access request bag to the network communication module, and receives the network packet of returning, and realizes chat;
Described network communication module, be used for and send to network from the network access request bag of browser and instant communicator, the network packet that reception is returned, according to determining that described network access request bag is the situation that browser or instant communicator produce, if being browser, the network access request bag produces, then described network packet is returned to browser, otherwise, return to instant communicator.
In sum, the present invention proposes the method and apparatus of a kind of browser and instant communicator while accesses network, because for browser and instant communicator are provided with unified network communication module, can send the network access data bag uniformly, and the unified network packet of returning that receives, in satisfying mobile phone, under the requirement of Internet resources exclusivity characteristics, reach browser and the instant communicator purpose of accesses network simultaneously.
Description of drawings
Fig. 1 is a flow chart of the present invention;
Fig. 2 is the flow chart of embodiment one;
Fig. 3 is a transmit queue schematic diagram among the embodiment one;
Fig. 4 is the flow chart of embodiment two;
Fig. 5 is the inner basic block diagram of mobile device of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Basic thought of the present invention is: for the browser in the mobile phone and instant communicator are provided with unified network communication module, described network communication module is responsible for the communication between mobile phone and the network.When browser and instant communicator needed accesses network, browser and instant communicator were undertaken alternately by network communication module and network with regard to unified, the realization access to netwoks.
Fig. 1 is a flow chart of the present invention.As shown in Figure 1, the present invention realizes that the method for browser and instant communicator while accesses network may further comprise the steps:
Step 101: browser and instant communicator send to the network communication module with the network access request bag that produces.
Step 102: the network communication module sends to network with the network access request bag, and network returns network packet by the network communication module again.
Among the present invention, when the browser access network, exactly the network access request bag is sent to the server that certain provides webpage, realize the purpose of mobile phone browsing page; And during the instant communicator accesses network, exactly the network access request bag is sent to the server that chatting service is provided, realize and other purposes of chatting.Owing to the server of webpage is provided and provides the server of chatting service all to be in network side, for convenience, the present invention will be respectively and the server of webpage is provided and provide mutual between the server of chatting service directly to be called and network between mutual, that is: the network access request bag is sent to network, network returns network packet by the network communication module again.How to realize mutual with mobile phone then belonging to prior art as for network side, the present invention repeats no more.
Among the present invention, between network communication module and the network two kinds of patterns are arranged alternately: a kind of is synchronous mode, and a kind of is asynchronous mode.
The characteristics of synchronous mode are: after sending certain network access request bag, the network communication module need receive after the network packet of returning, and just sends next network access request bag.
Synchronous mode specific implementation method is: set up a transmit queue in advance in the network communication module, when the network access request bag that receives from browser or instant communicator, network communication is added the network access request bag that receives in the transmit queue to as rear of queue; At this moment, described step 102 is specially:
Bx1, network communication module send to network with the network access request bag in the queue heads;
Bx2, network return network packet at queue heads by the network communication module;
Because synchronous mode is after by the time network packet is returned, just to send next network access request bag,, still belong to instant communicator so the network communication module is easy to determine that the network packet of returning belongs to browser.Such as: comprise module id information in the network access request bag, described module id information is used to identify the module that produces this network access request bag.
When receiving the network access request bag, the network communication module is just noted described module id information, so, the method of this step is specially: the network communication module receives the network packet of returning from network at queue heads earlier, if the module id information of record is the browser identification information in advance, then the network packet of returning is sent to browser; If the module id information of record is instant communicator in advance, then the network packet of returning is sent to instant communicator.
In the practical application, also can not comprise module id information in the network access request bag, be that browser or instant communicator produce as long as the network communication module can be determined the network access request bag that receives.Such as: browser and instant communicator are that the mode by call function sends to the network communication module with certain network access request bag, the network communication module directly just can determine that from the example that calls self the network access request bag that receives is that browser or instant communicator produce: if the example of browser calls this function, determine that then this network access data bag is produced by browser, the network packet of returning also should send to browser; Otherwise, then use and send to instant communicator.
Bx3, network communication module deletion queue heads, with the next node in the formation as queue heads, execution in step bx1 again, all network access request bag in sending formation.
The characteristics of asynchronous mode are: the network communication module needn't be returned network packet by the time after sending network access request, as long as Internet resources can be used, just immediately next network access request bag is sent.
The implementation method of asynchronous mode is: set up a transmit queue in advance in the network communication module, when the network access request bag that receives from browser or instant communicator, network communication is added the network access request bag that receives in the transmit queue to as rear of queue; At this moment, the method for the described transmission network access request of step 102 bag is specially:
By1, network communication module send to network with the network access request bag in the queue heads;
By2, network communication module deletion queue heads as queue heads, and returns the next node in the formation to step by1, all network access request bag in sending formation.
Here, only having narrated the method that asynchronous mode issues SCN Space Cable Network access request bag, is independently and receive the network packet of returning with sending network access request, needs the network communication module to distinguish and sends to browser or instant communicator.During specific implementation, can in the network access request bag that instant communicator sends, increase the reference field of an instant communicator, write special value such as the 1st~the 4th field, produce by instant communicator to identify this network access request packet at inclusion; Correspondingly, the network packet of returning also can be carried identical reference field.
In addition, the packet that sends in the chat process generally is a text type, and whether the network communication module can first judgment data bag be text type, if not text type, then directly sends to browser; If text type just need further judge whether to comprise described reference field.
So, the described method of returning network packet by the network communication module of step 102 can be resolved the network packet of returning from network earlier for: network communication module, determine that according to packet header the type of network packet is a text type, judge again and whether contain reference field in the inclusion, if have, then described network packet is sent to instant communicator; Otherwise, send to browser.
In the practical application, because the process of chat is normally sequential, webpage is not then not in proper order, so, can in the network access request bag that instant communicator sends, not increase reference field yet, but the serial number of carrying the identification data packet sequence, the network packet of returning also carries corresponding serial number.In this case, the described method of returning network packet by the network communication module of step 102 is:
The network communication module is resolved the network packet of returning from network earlier, and has judged whether serial number, if having, then described network packet is sent to instant communicator; Otherwise, send to browser.
In addition, no matter be synchronous mode, or asynchronous mode, the network communication module all can only send the network access request bag under the situation that Internet resources can be used, and perhaps receives the network packet of returning.In the practical application, detect whether available can the detection by the underlying operating system of mobile phone of Internet resources, then belong to prior art as for how to detect, the present invention no longer is described in detail.
For the present invention program is described better, be described in detail with real-time example below.
Embodiment one
In the present embodiment, the mutual employing synchronous mode between network communication module and the network; Set up a transmit queue in advance in the network communication module, when whenever receiving a network access request bag, all will add in the formation as rear of queue, its formation as shown in Figure 2; In the present embodiment, instant communicator produces two network access data bags earlier, can be expressed as IMData1 and IMData2, and browser produces a network access data bag again, is expressed as WebData1; In the present embodiment, carry module id information in the network access request bag, the module id information among IMData1 and the IMData2 is IM, and expression is produced by instant communicator; Module id information among the WebData1 is WebBrowing, and expression is produced by browser.
In addition, because the Internet resources in the mobile phone have exclusivity, can set in advance and be used to the network state sign of representing whether Internet resources are monopolized, the network communication module just can determine according to the network state sign whether network is available.
Fig. 3 is the flow chart of present embodiment.As shown in Figure 3, present embodiment realizes that the method for browser and instant communicator while accesses network may further comprise the steps:
Step 301: network access request bag IMData1, IMData2 and WebData1 that instant communicator and browser will produce separately send to the network communication module.
Step 302: the network communication module is added the network access request bag that receives in the transmit queue to.
In the process that sends existing network access request bag,, still it is added in the transmit queue as rear of queue if the network communication module receives new network access request bag again.
Step 303: the module id information of carrying in the network communication module records queue heads network access request bag, and the network state sign is set to busy condition.
Step 304: the network communication module sends the network access request bag in the queue heads.
Because present embodiment adopts synchronous mode, after the network access request bag is sent, the network packet that the network communication module is returned wait.
Step 305: the network communication module receives the network packet of returning from network at queue heads.
Step 306: the network communication module determines that the module id information of record is instant communicator in advance, and the network packet of returning is transmitted to instant communicator.
Step 307: network communication module deletion queue heads, with the next node in the formation as queue heads.
Step 308: the described network state sign of network communication module is set to idle condition.
Step 309: the network communication module judges whether to handle network access data bags all in the formation, if handle, withdraws from this flow process; Otherwise, return step 303.
Present embodiment is provided with the network state sign, can whether available for other functional module requester network resource in the mobile phone, certainly,, also the network state sign can be set if there is not other functional module to utilize Internet resources.
In the present embodiment, if there is the network access request bag in the transmit queue, the network communication module will initiate to send the function of network access request bag automatically.During specific implementation, can set in advance transmission time interval, every during through a transmission time interval, the network communication module can judge whether Internet resources are available according to the network state sign, if available, initiate the function of transmission network access request bag, promptly execution in step 303; Otherwise, do not deal with.
Like this, when the network communication module receives the network access request bag for the first time, can when arriving transmission time interval, initiate to send the function of network access request bag automatically.After this, network access request bag of every transmission, whether the network communication module all sends active detecting, if do not send, repeats to initiate to send the function of network access request bag again.
Embodiment two
In the present embodiment, the mutual employing asynchronous mode between network communication module and the network, and set up a transmit queue, its formation is still as shown in Figure 2; In the present embodiment, comprise a serial number in the network access request bag that instant communicator produces, the network packet of returning also carries corresponding serial number; In addition, in the present embodiment, suppose that the network communication module sends network access request bags all in the formation after, just receive the network packet of returning.
Fig. 4 is the flow chart of present embodiment.As shown in Figure 4, present embodiment realizes that the method for browser and instant communicator while accesses network may further comprise the steps:
Step 401~step 402 is identical with step 301~step 302 among the embodiment one, repeats no more herein.
Step 403: the module id information of carrying in the network communication module records queue heads network access request bag, and the network state sign is set to busy condition.
Step 404: the network communication module sends the network access request bag in the queue heads.
Step 405: network communication module deletion queue heads, with the next node in the formation as queue heads.
Step 406: the described network state sign of network communication module is set to idle condition.
Step 407: the network communication module is judged and is not handled network access data bags all in the formation, returns step 403.
Similar to embodiment one, in the present embodiment, also can set in advance transmission time interval, every during through a transmission time interval, the network communication module can judge whether Internet resources are available according to the network state sign, if available, initiate the function of transmission network access request bag, promptly execution in step 403; Otherwise, do not deal with.Like this, when the network communication module receives the network access request bag for the first time, can when arriving transmission time interval, initiate to send the function of network access request bag automatically.After this, network access request bag of every transmission, whether the network communication module all sends active detecting, if do not send, repeats to initiate to send the function of network access request bag again.
Step 408: the network communication module receives the network packet of returning and resolves.
In the present embodiment,, can also in the network communication module, be provided with one and return formation in order to receive the network packet of returning.
When preparing to receive the network packet of returning, the network access request bag is the same with sending, and the network communication module also needs the network state sign to be set to busy condition, and after receiving, the network state sign is set to idle condition.
Step 409~step 411: network communication judges according to the result who resolves whether network packet has serial number, if having, then described network packet is sent to instant communicator; Otherwise, send to browser.
In order to narrate conveniently, after the present embodiment hypothesis sends all network access data bags earlier, just the network communication module receives the network packet of returning.And in the practical application, the network packet that transmission network access data bag and reception are returned may be interlocked and be carried out.But no matter be in which kind of mode to carry out, send and receive and need realize under the situation that Internet resources can be used that all promptly the network state sign is set to busy condition earlier, sends or receives, the network state sign is set to idle condition then.
No matter be embodiment one or embodiment two, the structure of the network access request bag described in the present invention is: the network address, requesting method, HTTP packet header parameter list and HTTP inclusion.If the network access request bag that instant communicator produces, then the type of network access request bag can also be divided into: send user's chat content network access request bag, acquisition request chat content the network access request bag or obtain the network access request bag of buddy list.
Wherein, if obtain the network access request bag of chat content, can also be set the time interval of obtaining chat content in advance in instant communicator, the method that produces the network access request bag that obtains chat content is:
Every through a time interval of obtaining chat content, instant communicator produces a network access request bag that obtains chat content.
If obtain the network access request bag of buddy list, can also be set the time interval of obtaining buddy list in advance in instant communicator, the method that then produces the network access request bag that obtains buddy list is:
Every through a time interval of obtaining buddy list, instant communicator produces a network access request bag that obtains buddy list.
Can determine voluntarily by the user who uses the present invention program as for the time interval of obtaining chat content and time interval of obtaining buddy list.
In addition, in the practical application, if network failure, the network communication module possibly can't receive the network packet of returning, if wait for the network packet that can't receive always at all, then may cause the interruption of browsing page or chat service.
In order to prevent that network from breaking down, can't receive the network packet of returning, can at the network access data bag retransmission flag be set earlier, and set in advance the timeout value of receiving network data bag.If the network communication module does not still receive the network packet of returning when arriving timeout value, the network communication module just can be placed on the corresponding network access request package rear of queue wait and resend.
Further, can also a field that retransmit number of times be set at the network access data bag, and the number of times of this network access data bag of record transmission, when arriving the repeating transmission number of times, just can abandon this network access data bag, no longer resend.
In the practical application, experience better, can also unified user interface be set for browser and instant communicator in order to make the user.Such as: the user starts instant communicator by this user interface earlier, and information such as input ID users and password are produced the network access request bag and sent realization chat login by the network communication module by instant communicator.In addition, the user can also be on same user interface clickthrough, realize browsing of webpage.
At the method for browser and instant communicator accesses network, the present invention also proposes a kind of mobile phone state.As shown in Figure 5, the mobile phone of the present invention's proposition comprises at least: browser 501, instant communicator 502 and network communication module 503.
Wherein,
Described browser 501 is used for sending the network access request bag to network communication module 503, and receives the network packet of returning, and realizes browsing page;
Described instant communicator 502 is used for sending the network access request bag to network communication module 503, and receives the network packet of returning, and realizes chat;
Described network communication module 503 is used for sending to network from the network access request bag of browser 501 and instant communicator 502, and will return network packet and be transmitted to browser 501 and instant communicator 502.
In the practical application, for convenience of user experience browser 501 and instant communicator 502 effect after reunification, also need unified subscriber interface module to be set, provide browsing page and the unified interface of chat for the user by subscriber interface module for browser 501 and instant communicator 502.
Use the present invention program, because for browser and instant communicator are provided with unified network communication module, can send the network access data bag uniformly, and the unified network packet of returning that receives, in satisfying mobile phone under the requirement of Internet resources exclusivity characteristics, reach browser and the instant communicator purpose of accesses network simultaneously, to strengthen user's experience effect.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. browser and the instant communicator method of accesses network simultaneously is characterized in that for browser and instant communicator in the mobile phone are provided with unified network communication module, be used for the communication between mobile phone and the network in advance, this method is:
A, browser and instant communicator send to the network communication module with the network access request bag that produces;
B, network communication module send to network with the network access request bag, network returns network packet to the network communication module, the network communication module is according to determining that described network access request bag is the situation that browser or instant communicator produce, if being browser, the network access request bag produces, then described network packet is returned to browser, otherwise, return to instant communicator.
2. method according to claim 1, it is characterized in that, set up a transmit queue in advance in the network communication module, further comprise between described step a and the step b: the network communication module is added the network access request bag that receives in the transmit queue to as rear of queue;
Described step b is:
Bx1, network communication module send to network with the network access request bag in the queue heads;
Bx2, network return network packet at queue heads to the network communication module; The network communication module produces if the network access request bag is a browser according to determining that described network access request bag is the situation that browser or instant communicator produce, and then described network packet is returned to browser, otherwise, return to instant communicator;
Bx3, network communication module deletion queue heads, with the next node in the formation as queue heads, execution in step bx1 again, all network access request bag in sending formation.
3. method according to claim 2, it is characterized in that, comprise module id information in the described network access request bag, described module id information is used to identify the module that produces this network access request bag, further comprises between described step a and the step b: the described module id information of network communication module records;
Described step bx2 is: the network communication module receives the network packet of returning from network at queue heads earlier, if the module id information of record is the browser identification information in advance, then the network packet of returning is sent to browser; If the module id information of record is instant communicator in advance, then the network packet of returning is sent to instant communicator.
4. method according to claim 2, it is characterized in that, set in advance and be used to the network state sign of representing whether Internet resources are monopolized, further comprise before the described transmission network access request of the step bx1 bag: described network state sign is set to busy condition;
The described network communication module of step bx2 further comprises after receiving network packet: described network state sign is set to idle condition.
5. method according to claim 4 is characterized in that, sets in advance transmission time interval, and every during through a transmission time interval, this method further comprises:
Described network communication module judges according to the network state sign whether Internet resources are available, if available, execution in step b then; Otherwise, do not deal with.
6. method according to claim 1, it is characterized in that, set up a transmit queue in advance in the network communication module, further comprise between described step a and the step b: the network communication module is added the network access request bag that receives in the transmit queue to as rear of queue;
The method of the described transmission network access request of step b bag is specially:
By1, network communication module send to network with the network access request bag in the queue heads;
By2, network communication module deletion queue heads as queue heads, and returns the next node in the formation to step by1, all network access request bag in sending formation.
7. method according to claim 6, it is characterized in that, if the reference field of sign instant communicator is arranged in the inclusion of the network packet of returning at instant communicator, then the described definite network access request bag of step b is that the method that browser or instant communicator produce is:
The network communication module is resolved the network packet of returning from network earlier, determines that according to packet header the type of network packet is a text type, judges whether to contain reference field in the inclusion again, if having, then is defined as instant communicator; Otherwise, be defined as browser.
8. method according to claim 6, it is characterized in that, the network access request bag that described instant communicator produces carries the serial number of identification data packet sequence, the network packet that described network returns also carries corresponding serial number, and then the described definite network access request bag of step b is that the method that browser or instant communicator produce is:
The network communication module is resolved the network packet of returning from network earlier, and has judged whether serial number, if having, then is defined as instant communicator; Otherwise, be defined as browser.
9. method according to claim 6 is characterized in that, sets in advance to be used to the network state sign of representing whether Internet resources are monopolized,
Further comprise before the described transmission network access request of the step by1 bag: described network state sign is set to busy condition;
Further comprise between step by1 and the by2: described network state sign is set to idle condition.
10. method according to claim 9 is characterized in that, sets in advance transmission time interval, and every during through a transmission time interval, this method further comprises:
Described network communication module judges according to the network state sign whether Internet resources are available, if available, execution in step b then; Otherwise, do not deal with.
11. according to each described method of claim 1 to 10, it is characterized in that the network access request bag that described instant communicator produces is: send user's chat content network access request bag, acquisition request chat content the network access request bag or obtain the network access request bag of buddy list.
12. according to each described method of claim 1 to 10, it is characterized in that, if instant communicator produces the network access request bag of acquisition request chat content, and the time interval of obtaining chat content is set in instant communicator in advance, the method that then produces the network access request bag that obtains chat content is:
Every through a time interval of obtaining chat content, instant communicator produces a network access request bag that obtains chat content.
13. according to each described method of claim 1 to 10, it is characterized in that, if instant communicator produces the network access request bag that obtains buddy list, and the time interval of obtaining buddy list is set in instant communicator in advance, the method that then produces the network access request bag that obtains buddy list is:
Every through a time interval of obtaining buddy list, instant communicator produces a network access request bag that obtains buddy list.
14. according to each described method of claim 2 to 10, it is characterized in that, carry retransmission flag in the described network access data bag, and set in advance the timeout value that receives the network packet return, if the network communication module does not receive the network packet of returning when arriving timeout value, this method further comprises:
Described network communication module is placed on the rear of queue wait with the corresponding network access request package and resends.
15. browser and instant communicator be the device of accesses network simultaneously, described device is a mobile phone, comprises browser and instant communicator at least, it is characterized in that, this device further comprises: the network communication module;
Wherein,
Described browser is used for sending the network access request bag to the network communication module, and receives the network packet of returning, and realizes browsing page;
Described instant communicator is used for sending the network access request bag to the network communication module, and receives the network packet of returning, and realizes chat;
Described network communication module, be used for and send to network from the network access request bag of browser and instant communicator, the network packet that reception is returned, according to determining that described network access request bag is the situation that browser or instant communicator produce, if being browser, the network access request bag produces, then described network packet is returned to browser, otherwise, return to instant communicator.
CN2006101683006A 2006-12-25 2006-12-25 Method and apparatus for accessing Internet simultaneously by browser and instant communicator Active CN101075955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101683006A CN101075955B (en) 2006-12-25 2006-12-25 Method and apparatus for accessing Internet simultaneously by browser and instant communicator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101683006A CN101075955B (en) 2006-12-25 2006-12-25 Method and apparatus for accessing Internet simultaneously by browser and instant communicator

Publications (2)

Publication Number Publication Date
CN101075955A CN101075955A (en) 2007-11-21
CN101075955B true CN101075955B (en) 2011-05-11

Family

ID=38976781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101683006A Active CN101075955B (en) 2006-12-25 2006-12-25 Method and apparatus for accessing Internet simultaneously by browser and instant communicator

Country Status (1)

Country Link
CN (1) CN101075955B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137079B (en) * 2007-09-27 2011-10-05 腾讯科技(深圳)有限公司 Method and apparatus for combining web page browsing and instant communication based on mobile terminal
CN102917432A (en) * 2011-08-05 2013-02-06 希姆通信息技术(上海)有限公司 Connection management device and method for packet switch (PS) domain network of mobile phone
CN107800611B (en) * 2016-09-07 2021-06-18 腾讯科技(深圳)有限公司 Page switching method and page switching device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050171999A1 (en) * 2004-02-03 2005-08-04 At&T Corp. Methods and apparatus for utilizing user software to communicate with network-resident services
CN1719823A (en) * 2004-07-08 2006-01-11 腾讯科技(深圳)有限公司 Method for directly alternating information with instant communication system on web page
US20060101119A1 (en) * 2004-11-10 2006-05-11 Microsoft Corporation Integrated electronic mail and instant messaging application
CN1812381A (en) * 2001-03-26 2006-08-02 腾讯科技(深圳)有限公司 Method for binding immediate communication identify code and radio communication identify code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812381A (en) * 2001-03-26 2006-08-02 腾讯科技(深圳)有限公司 Method for binding immediate communication identify code and radio communication identify code
US20050171999A1 (en) * 2004-02-03 2005-08-04 At&T Corp. Methods and apparatus for utilizing user software to communicate with network-resident services
CN1719823A (en) * 2004-07-08 2006-01-11 腾讯科技(深圳)有限公司 Method for directly alternating information with instant communication system on web page
US20060101119A1 (en) * 2004-11-10 2006-05-11 Microsoft Corporation Integrated electronic mail and instant messaging application

Also Published As

Publication number Publication date
CN101075955A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
US11438291B2 (en) Message history display system and method
CN101159714B (en) Instant communication method and device
CN100462977C (en) Capture server, distribution server, method and system for generating webpage capture
CN100512235C (en) Instant communication system supporting email function and email sending and receiving method
CN102821056B (en) A kind of transmission method of instant communication message and equipment
CN101447949B (en) Information interaction method and device based on instant messaging system
CN100469061C (en) Display method for instant message in instant communication
CN101179520A (en) Method and system for sensing mail status
CN101119385A (en) Method for enhancing HTTP network velocity using WebPush
CN102404306B (en) Protocol configuration method and device
WO2012000228A1 (en) Method for group communication implemented on common web page
CN107567107A (en) A kind of method and device for transmitting data
TW200849959A (en) Immediate communication system and method based on WAP
CN102111347A (en) Multi-protocol instant message-based processing method and system in unified communication system
CN102111419A (en) Message middleware-based client automatic reconnection method
CN106453414A (en) Third party login authentication method and system, proxy server and client
CN101075955B (en) Method and apparatus for accessing Internet simultaneously by browser and instant communicator
CN105376136B (en) Instant communication method, server and system
CN107872396A (en) Communication means, processing equipment, terminal device and server with overtime control
CN102984266A (en) Interactive processing method and device for data
CN103595611B (en) The realization method and system and equipment of instant messaging application
CN103595744B (en) The method and client of information management
CN202111746U (en) System for realizing information push of mobile terminal
CN101557354A (en) Method for sending picture by client service personnel on line
CN105721274A (en) Method and device for integrating variety of instant messaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant