CN101945055A - Instant communication system and instant communication method - Google Patents

Instant communication system and instant communication method Download PDF

Info

Publication number
CN101945055A
CN101945055A CN2009101086422A CN200910108642A CN101945055A CN 101945055 A CN101945055 A CN 101945055A CN 2009101086422 A CN2009101086422 A CN 2009101086422A CN 200910108642 A CN200910108642 A CN 200910108642A CN 101945055 A CN101945055 A CN 101945055A
Authority
CN
China
Prior art keywords
client
instant
recipient
transmit leg
server end
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
CN2009101086422A
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.)
SHENZHEN IPI APPLICATION SYSTEM CO LID
Original Assignee
SHENZHEN IPI APPLICATION SYSTEM CO LID
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 SHENZHEN IPI APPLICATION SYSTEM CO LID filed Critical SHENZHEN IPI APPLICATION SYSTEM CO LID
Priority to CN2009101086422A priority Critical patent/CN101945055A/en
Publication of CN101945055A publication Critical patent/CN101945055A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the instant communication technology and provides an instant communication system and an instant communication method by aiming at the defect of poor availability of the existing instant communication product based on a browser. The system comprises a sender client side, a receiver client side and a server side, wherein the sender client side is used for receiving an instant message input through a browser, packaging the instant message into an instant message data packet of the JSON format and sending the message data packet to the server side by an ajax asynchronous mode; and the server side is used for receiving the instant data packet, determining the current position information of the sender client side and pushing the instant data packet and the current position information to the receiver client side through a maintained comet connection with the receiver client side. The invention also provides the instant communication method. The browser-based instant communication product which is built on the basis of the ajax mode and the comet connection can effectively solve the problems of overhigh network flow or data updating missing in the existing pulling mode.

Description

A kind of instantaneous communication system and instant communicating method
Technical field
The present invention relates to instant messaging, more particularly, relate to a kind of instantaneous communication system and instant communicating method.
Background technology
In the web2.0 epoch, SNS (Social Networking Service, social network service) product has a great vogue, and the type systematic of chatting with friends then is a basic functional components indispensable in this series products.In view of existing SNS product is based on browser more, therefore need the instant messaging product that cooperates with it based on browser.Yet current most instant messaging products (as QQ, MSN etc.) but all are based on desktop.In view of the limitation of http protocol self such as disconnected and stateless characteristic or the like, based on the condition managing of the instant messaging product of browser difficulty relatively.And following regulation arranged in the HTTP1.1 standard: " being connected not between the client of unique user and server or the acting server should above 2 ", and this rule is comprised that most browsers of IE and Firefox observe.There is significant limitation in so just feasible instant messaging product based on browser.Therefore, comparatively lack ripe, stable, the good instant messaging product of availability on the current market based on browser.
In addition, adopt of current instant messaging product based on browser pulls mode more, pulls in the method this, and client removes to check latest data on the server the definable time interval with the user.Be not difficult to find out thus, this mode or cause higher network traffics (check frequency too high), or cause missing data updated (inspection underfrequency).
Therefore, need a kind of instant messaging product, effectively to overcome the above-mentioned defective that exists among the prior art based on browser.
Summary of the invention
The technical problem to be solved in the present invention is, at the existing not good defective of instant messaging product availability based on browser, provides a kind of instantaneous communication system and instant communicating method.
A kind of instantaneous communication system comprises transmit leg client, recipient's client and the server end that is connected with recipient's client communication with the transmit leg client,
Described transmit leg client is used for:
Reception is by the instant message of browser input;
This instant message is packaged into the message packets of JSON form;
By the ajax asynchronous system this message packets is mail to described server end;
Described server end is used for:
Receive described instant packet, determine the current location information of transmit leg client;
The comet with recipient's client that passes through to be safeguarded is connected, and described instant packet and current location information are pushed to recipient's client.
In instantaneous communication system provided by the invention, described transmit leg client is a Desktop Computing equipment, and described server end is determined its current location information according to the IP address of this transmit leg client.
In instantaneous communication system provided by the invention, described transmit leg client is a mobile communication terminal, and described server end is according to determining the current location information of this transmit leg client for this transmit leg client provides the base station IDs of the mobile base station of service.
In instantaneous communication system provided by the invention, comprise recipient's client identification in the described message packets, described server end is used for searching according to this recipient's client identification the comet connection of recipient's client.
In instantaneous communication system provided by the invention, described server end employing keepalive mode is safeguarded with the comet of described recipient's client and is connected.
The present invention also provides a kind of instantaneous communication system, comprising:
The transmit leg client is used for:
Reception is by the instant message of browser input;
This instant message is packaged into the message packets of JSON form;
By the ajax asynchronous system this message packets is mail to described server end;
Server end is used for:
Receive described instant packet, determine the current location information of transmit leg client;
The comet with recipient's client that passes through to be safeguarded is connected, and described instant packet and current location information are pushed to recipient's client.
In instant communicating method provided by the invention, described transmit leg client is a Desktop Computing equipment, and described server end is determined its current location information according to the IP address of this transmit leg client.
In instant communicating method provided by the invention, described transmit leg client is a mobile communication terminal, and described server end is according to determining the current location information of this transmit leg client for this transmit leg client provides the base station IDs of the mobile base station of service.
In instant communicating method provided by the invention, comprise recipient's client identification in the described message packets, described server end is used for searching according to this recipient's client identification the comet connection of recipient's client.
In instant communicating method provided by the invention, described server end employing keepalive mode is safeguarded with the comet of described recipient's client and is connected.
Implement technical scheme of the present invention, have following beneficial effect: be connected the instant messaging product based on browser that makes up with comet based on the ajax mode, it is too high or miss the more problem of new data effectively to solve the existing network traffics that exist in the mode that pull.In addition, technical scheme provided by the invention also can transmit user's current location information in instant communication process, improve the user experience effect.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the flow chart according to the instant communicating method of a preferred embodiment of the present invention;
Fig. 2 is the logical construction schematic diagram according to the instantaneous communication system of a preferred embodiment of the present invention;
Fig. 3 is the logical construction schematic diagram according to the instantaneous communication system of a preferred embodiment of the present invention;
Fig. 4 is the flow chart based on the instant communicating method 400 of the client of browser according to a preferred embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides and a kind ofly be connected the instant messaging product based on browser that makes up with comet based on the ajax mode, it is too high or miss the more problem of new data effectively to solve the existing network traffics that exist in the mode that pull.In addition, technical scheme provided by the invention also can transmit user's current location information in instant communication process, improve the user experience effect.Below just with specific embodiment technical scheme provided by the invention is described in detail in conjunction with the accompanying drawings.
Fig. 1 is the flow chart according to the instant communicating method 100 of a preferred embodiment of the present invention.As shown in Figure 1, method 100 starts from step 102.
Subsequently, at next step 104, receive the instant message of user by the browser input.
Subsequently, at next step 106, this instant message is packaged into the message packets of JSON form.
Subsequently, at next step 108, this message packets is mail to described server end by the ajax asynchronous system.
Subsequently,, receive described instant packet, determine transmit leg client current location information at next step 110.In the specific implementation process, if the transmit leg client is a Desktop Computing equipment, then server end is determined its current location information according to the IP address of this transmit leg client.If the transmit leg client is a mobile communication terminal, then server end is according to determining the current location information of this transmit leg client for this transmit leg client provides the base station IDs of the mobile base station of service.
Subsequently,, connect, described instant packet and current location information are pushed to recipient's client by comet at next step 112.In the specific implementation process, comprise recipient's client identification in the message packets, the comet that searches recipient's client that server end is safeguarded according to this recipient's client identification connects.Wherein, server end employing keepalive mode is safeguarded with the comet of recipient's client and is connected.The keepAlive characteristic makes client arrive the connection continuous and effective of server end, and when the subsequent requests that occurs server, the Keep-Alive function has avoided setting up or rebuliding connection.In a specific embodiment of the present invention, recipient's client can be according to the transmit leg client current location information of receiving, the indicated place of this current location information shows the information such as head portrait of transmit leg client on map, transmit leg client place honeycomb (regular hexagon) sub-district can be shown simultaneously.When recipient's client receives instant message from a plurality of transmit leg clients, the user who is positioned at same cellular cell will show, and be convenient to link up between the user, make friends.
The present invention also provides a kind of instantaneous communication system, is described in greater detail below in conjunction with Fig. 2.
Fig. 2 is the logical construction schematic diagram according to the instantaneous communication system 200 of a preferred embodiment of the present invention.As shown in Figure 2, instantaneous communication system 200 comprises transmit leg client 202, server end 204 and recipient's client 206.
Transmit leg client 202 is used to receive the instant message by the browser input; This instant message is packaged into the message packets of JSON form; By the ajax asynchronous system this message packets is mail to server end 204.
Server end 204 is used to receive described instant packet, determines the current location information of transmit leg client; The comet with recipient's client that passes through to be safeguarded is connected, and described instant packet and current location information are pushed to recipient's client.In the specific implementation process, if transmit leg client 202 is a Desktop Computing equipment, then server end 204 is determined its current location information according to the IP address of this transmit leg client 202.If transmit leg client 202 is a mobile communication terminal, then server end 204 is according to determining the current location information of this transmit leg client for this transmit leg client provides the base station IDs of the mobile base station of service.
In addition, in the specific implementation process, comprise recipient's client identification in the message packets, described server end 204 is used for searching according to this recipient's client identification the comet connection of recipient's client 206.Wherein, server end 204 employing keepalive modes are safeguarded with the comet of described recipient's client and are connected.
Below in conjunction with instantiation technical scheme of the present invention is described.
Fig. 3 is the logical construction schematic diagram according to the instantaneous communication system 300 of a preferred embodiment of the present invention.As shown in Figure 3, wherein show client browser 302, portable terminal 304, Web server 306, transmission server 308, registrar 310, management server 316, GIS server 314 and message server 316.Wherein, client browser 302 and portable terminal 304 communicate to connect by the Internet 318.
As shown in Figure 3, the client of support of the present invention can be client 302 or the portable terminal 304 that browser is installed, the client 302 (as IE, Firefox etc.) that browser wherein is installed does not need to install any program or plug-in unit, and directly use can be logined in the address (as URL) of input server end in browser's address bar.
Web server 306 is responsible for browser client and is inserted and message management services.
Transmission server 308 is responsible for deciphering, encryption and the forwarding of message packets, and the access of portable terminal 304.
Registrar 310 is responsible for services such as user's registration, login, authentication password.
Management server 316 is responsible for management of information services such as subscriber data, close friend.
Geographical position management service is for information about managed and followed to GIS server 314 charge maps.
Message server 316 is responsible for management of information services such as chat messages, broadcast.
Each subsystem of server end adopts the UDP mode to connect in the specific implementation process, reduces the expense of server establishment of connection and maintenance, and is convenient to transmit message.Simultaneously, TCP connects with the UDP simulation, and the head at each UDP bag has added the ordinal number of giving out a contract for a project, with number and the order of guaranteeing the UDP bag.And set up rigorous retransmission mechanism, guaranteed that data send and the integrality that receives.
Fig. 4 is the flow chart based on the instant communicating method 400 of the client of browser according to a preferred embodiment of the present invention.As shown in Figure 4, method 400 starts from step 402.
Subsequently, at next step 404, after the user imports chat message and clicks transmission, chat message is converted to the message packets of JSON form based on the client of browser, by Ajax mode asynchronous process,, and send to the WEB server via Comet assembly tissue.
Subsequently, at next step 406, the WEB server is resolved it after receiving message packets, is forwarded to transmission server after being packaged into the message packets based on internal agreement.
Subsequently, at next step 408, after the above-mentioned message packets based on internal agreement of transmission server checking is effective, send it to message server.
Subsequently, at next step 410, message server is given to transmission server after being responsible for finding the targeted customer also will reorganize based on the message packets of internal agreement.
Subsequently, at next step 412, the message packets after transmission server will reorganize is forwarded on the Web server.
Subsequently, at next step 414, the message packets after Web server will reorganize is forwarded to portable terminal.
At last, method 400 ends at step 416.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. instantaneous communication system, comprise transmit leg client, recipient's client with transmit leg client and the server end that recipient's client communication is connected, it is characterized in that:
Described transmit leg client is used for:
Reception is by the instant message of browser input;
This instant message is packaged into the message packets of JSON form;
By the ajax asynchronous system this message packets is mail to described server end;
Described server end is used for:
Receive described instant packet, determine the current location information of transmit leg client;
The comet with recipient's client that passes through to be safeguarded is connected, and described instant packet and current location information are pushed to recipient's client.
2. instantaneous communication system according to claim 1 is characterized in that, described transmit leg client is a Desktop Computing equipment, and described server end is determined its current location information according to the IP address of this transmit leg client.
3. according to right 1 described instantaneous communication system, it is characterized in that, comprise recipient's client identification in the described message packets, described server end is used for searching according to this recipient's client identification the comet connection of recipient's client.
4. according to right 1 described instantaneous communication system, it is characterized in that described server end employing keepalive mode is safeguarded with the comet of described recipient's client and is connected.
5. an instantaneous communication system is characterized in that, comprising:
The transmit leg client is used for:
Reception is by the instant message of browser input;
This instant message is packaged into the message packets of JSON form;
By the ajax asynchronous system this message packets is mail to described server end;
Server end is used for:
Receive described instant packet, determine the current location information of transmit leg client;
The comet with recipient's client that passes through to be safeguarded is connected, and described instant packet and current location information are pushed to recipient's client.
6. instant communicating method according to claim 5 is characterized in that, described transmit leg client is a Desktop Computing equipment, and described server end is determined its current location information according to the IP address of this transmit leg client.
7. according to right 5 described instant communicating methods, it is characterized in that, comprise recipient's client identification in the described message packets, described server end is used for searching according to this recipient's client identification the comet connection of recipient's client.
8. according to right 5 described instant communicating methods, it is characterized in that described server end employing keepalive mode is safeguarded with the comet of described recipient's client and is connected.
CN2009101086422A 2009-07-09 2009-07-09 Instant communication system and instant communication method Pending CN101945055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101086422A CN101945055A (en) 2009-07-09 2009-07-09 Instant communication system and instant communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101086422A CN101945055A (en) 2009-07-09 2009-07-09 Instant communication system and instant communication method

Publications (1)

Publication Number Publication Date
CN101945055A true CN101945055A (en) 2011-01-12

Family

ID=43436836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101086422A Pending CN101945055A (en) 2009-07-09 2009-07-09 Instant communication system and instant communication method

Country Status (1)

Country Link
CN (1) CN101945055A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095551A (en) * 2011-11-01 2013-05-08 北京神州泰岳软件股份有限公司 Method of achieving seeking contact person and system thereof
CN104035657A (en) * 2013-03-08 2014-09-10 国际商业机器公司 Method and system for changing user equipment theme
CN104348713A (en) * 2014-10-17 2015-02-11 国家电网公司 Instant messaging method based on comet of network platform under B/S (Browser/Server) architecture
CN109274585A (en) * 2018-10-12 2019-01-25 山东鲁能软件技术有限公司 Instant message desktop system and method under B/S mode based on AJAX
CN109543131A (en) * 2018-11-15 2019-03-29 国电南瑞科技股份有限公司 A kind of realization system and method for the distribution terminal model maintenance tool based on B/S framework

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079839A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 Friend display device and display method based on instant communication
CN101119327A (en) * 2006-08-04 2008-02-06 陆悦 Instant chatting implementation system and method thereof
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119327A (en) * 2006-08-04 2008-02-06 陆悦 Instant chatting implementation system and method thereof
CN101079839A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 Friend display device and display method based on instant communication
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周婷: "Comet:基于 HTTP 长连接的"服务器推"技术", 《IBM DEVELOPERWORKS》 *
崔冬华等: "基于AJAX的持久通信模式研究", 《微计算机信息》 *
陆晓春: "基于服务器端Push的Web框架设计与实现", 《中国优秀硕士论文电子期刊网》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095551A (en) * 2011-11-01 2013-05-08 北京神州泰岳软件股份有限公司 Method of achieving seeking contact person and system thereof
CN104035657A (en) * 2013-03-08 2014-09-10 国际商业机器公司 Method and system for changing user equipment theme
CN104348713A (en) * 2014-10-17 2015-02-11 国家电网公司 Instant messaging method based on comet of network platform under B/S (Browser/Server) architecture
CN109274585A (en) * 2018-10-12 2019-01-25 山东鲁能软件技术有限公司 Instant message desktop system and method under B/S mode based on AJAX
CN109543131A (en) * 2018-11-15 2019-03-29 国电南瑞科技股份有限公司 A kind of realization system and method for the distribution terminal model maintenance tool based on B/S framework

Similar Documents

Publication Publication Date Title
CN103096435B (en) Connect keeping method, device and mobile terminal
CN102790798B (en) Transparent proxy implementation, equipment and system in a kind of content distributing network
CN103907315B (en) System and method for network quality estimation, connectivity detection and load management
US9571409B2 (en) Maximum transmission unit negotiation method and data terminal
CN103297934B (en) Information-pushing method, system and mobile terminal
CN103581248A (en) Method and device for providing content distribution network CDN service
US20100042693A1 (en) Method and arrangement for delivering electronic messages
CN101945055A (en) Instant communication system and instant communication method
WO2016090995A1 (en) Method of communication between page and long-connection server, and client end
CN101778053A (en) Inter-instant messenger communication method and device
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN103907314B (en) System and method for network quality estimation, connectivity detection and load management
CN104283972B (en) Information push method, equipment and system based on browser
KR101375133B1 (en) Mobile sns intergrated gateway
CN101272380A (en) Method, system and device for network action management
CN102035655A (en) Implementation method for end-to-end instant messaging, and end-to-end instant messaging terminal and system
CN103916489B (en) The many IP of a kind of single domain name domain name analytic method and system
CN101547214A (en) Method and network side equipment for pushing inside data of enterprise
CN105592038B (en) Portal authentication method and device
CN103312586B (en) A kind of method of instant messaging, system and server
WO2019196218A1 (en) Self-organizing network networking method and system
CN101557354A (en) Method for sending picture by client service personnel on line
CN103546487A (en) Mobile office device based on IOS platform
CN106713437A (en) Method used by server to send message to client in NAT network
CN103501343A (en) Method for accelerating web page opening speed and interposing cache page content in web page

Legal Events

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

Application publication date: 20110112