CN101478503B - Expandable instant messaging system and method for expanding the instant messaging system - Google Patents

Expandable instant messaging system and method for expanding the instant messaging system Download PDF

Info

Publication number
CN101478503B
CN101478503B CN2009101049495A CN200910104949A CN101478503B CN 101478503 B CN101478503 B CN 101478503B CN 2009101049495 A CN2009101049495 A CN 2009101049495A CN 200910104949 A CN200910104949 A CN 200910104949A CN 101478503 B CN101478503 B CN 101478503B
Authority
CN
China
Prior art keywords
message
application
applying unit
attribute
server
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
CN2009101049495A
Other languages
Chinese (zh)
Other versions
CN101478503A (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 CN2009101049495A priority Critical patent/CN101478503B/en
Publication of CN101478503A publication Critical patent/CN101478503A/en
Application granted granted Critical
Publication of CN101478503B publication Critical patent/CN101478503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is applicable to the communication field and provides an extensible instant messaging system. The system further comprises an application server and a communication server, wherein, the application server is used for achieving communication between the communication server and application units with extended functions, storing the attributes of the application units, transmitting a start command including corresponding application unit attribute or a stop command including application identifiers for identifying each application units uniquely to the communication server, and transmitting the concerned message to the corresponding application unit according to the stored application unit attribute; and the communication server is used for achieving communication between the client and the application server, and transmitting or stopping transmitting the concerned messages of the corresponding application unit to the application server according to the received start command or stop command. In the invention, the system can be extended conveniently according to the user's conditions by transmitting the concerned messages of the application units through the application server and the communication server.

Description

The method of a kind of extendible instantaneous communication system and expansion instantaneous communication system
Technical field
The invention belongs to the communications field, relate in particular to the method for a kind of extendible instantaneous communication system and expansion instantaneous communication system.
Background technology
The instant messaging field mainly is divided into two kinds of individual instant messaging and enterprise immediate communications: the customer group of individual instant messaging is wider, mainly pays close attention to general functions such as chat, video, transmitting-receiving file; With respect to individual instant communication software, the use occasion of enterprise instant communication system mainly is the instant messaging of enterprises, often needs to merge mutually with other system such as office system, enterprise management system.
Because the service conditions of each enterprise can not be consistent, and is also ever-changing to the functional requirement of enterprise instant communication system, the identical enterprise instant communication system of a cover function can not satisfy all requirement of enterprise.Simultaneously, need expend a large amount of manpower financial capacities at each enterprise's independent enterprise instant communication system of exploitation.Therefore, the enterprise instant communication system of a maturation need have good extended capability, allow the user carries out autgmentability on system framework exploitation satisfying the business demand of self, and existing enterprise's instantaneous communication system is not easy to expansion.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of extendible instantaneous communication system, is intended to solve the problem that existing enterprise's instantaneous communication system is not easy to expand.
The embodiment of the invention is achieved in that a kind of extendible instantaneous communication system, and described system comprises application server, the applying unit and the communication server;
Described application server is used for communicating by letter between the described communication server and the applying unit that is used for expanded function, the attribute of storage applying unit, send the ceasing and desisting order of application identities that comprises the starting command of respective application cell attribute or comprise each applying unit of unique identification to the described communication server, and the message of paying close attention to the described applying unit of respective application unit forwards according to the attribute of the applying unit of storage;
Described applying unit is used to handle the message that expanded function is paid close attention to;
The described communication server is used for communicating by letter between client and the described application server, according to the described starting command that receives or cease and desist order, transmits or stop forwarding the message that the respective application unit is paid close attention to described application server.
Another purpose of the embodiment of the invention is to provide a kind of method of expanding instantaneous communication system, and described method comprises the steps:
The attribute of application server for storage applying unit;
Application server sends the ceasing and desisting order of application identities comprise the starting command of respective application cell attribute or to comprise each applying unit of unique identification to the communication server;
The communication server is according to the described starting command that receives or cease and desist order, and transmits or stop forwarding the message that the respective application unit is paid close attention to application server;
Application server is given the applying unit of paying close attention to this message the forwards that receives according to the attribute of the applying unit of storage.
In embodiments of the present invention, transmit the message of the applying unit concern that realizes expanded function, realized a kind of extendible instantaneous communication system, be convenient to the user and instantaneous communication system expanded at the situation of oneself by the application server and the communication server:
1. exploitation is based on the application extension of application server, and supervisory control system message can easily realize instant messaging (Instant Messaging, IM) functions such as message monitoring, Short Message Service Gateway, attendance checking system.
2. pay close attention to self-defined message as if applying unit, and utilize client plug-in to respond this message, then can form a message channel that belongs to user oneself, can further obtain bigger extending space;
3. the applying unit of realizing expanded function only need connect application server, and need not to pay close attention to the communication logic of the communication server, and is safe.
Description of drawings
Fig. 1 is the structure chart of the extendible instantaneous communication system that provides of the embodiment of the invention;
Fig. 2 is the state diagram of the applying unit life cycle that provides of the embodiment of the invention;
Fig. 3 be in the extendible instantaneous communication system that provides of the embodiment of the invention message flow to schematic diagram;
Fig. 4 is the schematic diagram of the enterprise instant communication system that provides of the embodiment of the invention;
Fig. 5 is the realization flow figure of the method for the expansion instantaneous communication system that provides of the embodiment of the 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.
In embodiments of the present invention, transmit the message of the applying unit concern that realizes expanded function by the application server and the communication server.
Fig. 1 shows the structure of the extendible instantaneous communication system that the embodiment of the invention provides, and only shows the part relevant with the embodiment of the invention for convenience of explanation, wherein:
Applying unit 101 is handled the message that expanded function is paid close attention to.Applying unit 101 can attention location system the message of definition, also can pay close attention to the message of own definition, thereby set up the processing logic of oneself, the realization expanded function.Certainly, for the instantaneous communication system of also not expanding, can not comprise applying unit 101.
Application server 102, be used for communicating by letter between applying unit 101 and the communication server 103, the attribute of storage applying unit, comprise the starting command of respective application cell attribute or comprise ceasing and desisting order of application identities to the communication server 103 transmissions, and transmit the message of its concerns to respective application unit 101 according to the attribute of the applying unit of storing.Wherein, each applying unit of application identities unique identification.Applying unit 101 directly communicates by Transmission Control Protocol with application server 102.Certainly, also can adopt other communication protocol to communicate between applying unit 101 and the application server 102 as required.
The communication server 103 is used for communicating by letter between client and the application server 102, according to the starting command that receives or cease and desist order, transmits or stop forwarding the message that respective application unit 101 is paid close attention to application server 102.The communication server 103 will receive data forwarding to other respective server or client from server or client according to the attribute of the applying unit that starts, and itself does not process.The communication server 103 directly communicates by procotols such as UDP with application server 102, client and other servers.
In embodiments of the present invention, extendible instantaneous communication system can make up a plurality of applying units 101 as required, is responsible for the processing logic that it pays close attention to message, realizes the expansion of corresponding function.Application server 102 is being managed several applying units 101, and 102 message to applying unit 101 its concerns of forwarding that start of application server.Each applying unit 101 that needs to start must be registered the message of its concerns at application server 102 earlier, the message that the applying unit 101 that application server 102 starts to the communication server 103 registrations is again paid close attention to.When the communication server 103 is received a message, can pay close attention to this message by which (or a plurality of) application server of retrieval 102, then message is given to application corresponding server 102, is further given the applying unit 101 of paying close attention to this message forwards by this application server 102.
The IP address and the port of storage application server 102 in the applying unit 101, communicate by letter with application server 102 foundation with port according to stored IP address, applying unit 101 after the startup receives the message that application server 102 is transmitted, and transmits the message that it needs outside output through application server 102.Have in the life cycle of applying unit 101 unregistered, registered, move, stop four kinds of states, Fig. 2 is the state diagram of applying unit life cycle.
Application server 102 comprises first memory cell 1021, administrative unit 1022, filter element 1023, wherein,
First memory cell 1021, the attribute of storage registered applications unit comprises:
1. the address can be the IP address and the port of applying unit 101.
2. application identities, each applying unit 101 of unique identification is so that the forwarding of application server 102 management and message, generally can use GUID (Global Unique Identifier, GUID), certainly, for convenient memory, also can use memonic symbol etc.
3. priority identifies applying unit 101 and obtains to pay close attention to the priority of message, if there are a plurality of applying units 101 to pay close attention to same message, the applying unit 101 that then priority is high will obtain the chance of this message of priority treatment.
4. the message screening mode is supported two kinds of actions: copy and extraction at least.Copy just copies corresponding message from message queue, extracting then is to take out corresponding message and this message of deletion from formation from message queue.When having a plurality of application to pay close attention to same message, copy makes a plurality of applying units 101 processing messages of all having an opportunity.If some applying units 101 have extracted message, then other applying units 101 all will lose this message.
5. the message of Guan Zhuing specifies applying unit 101 will pay close attention to which message, can be system message, also can be self-defined message.
Administrative unit 1022, reception comprises the log-on message or the Stop message of application identities, and start or stop corresponding registered applying unit 101 according to the information that receives, send to the communication server 103 and comprise the starting command of respective application cell attribute or comprise ceasing and desisting order of respective application sign.
First filter element 1023 according to the attribute of the applying unit of first memory cell 1021 storage, is transmitted the message of its concerns and the message of transmitting from applying unit 101 to the communication server 103 to the respective application unit 101 that starts.
Here, an applying unit 101 can only be to application server 102 registrations once, administrative unit 1022 can receive the information that starts or stops that comprises application identities of user's input, also can receive by the automatic information that starts or stops that comprises application identities that produces in other unit of application server 102.The state of registered each applying unit 101 of administrative unit 1022 storages, when receiving log-on message, the status modifier that according to the application identities that comprises with state is registered and off-duty respective application unit is for starting, and sends the starting command that comprises the respective application cell attribute to the communication server 103; When receiving Stop message, according to the application identities that comprises with state for the status modifier of the respective application unit that starts for stopping, and send to the communication server 103 and to comprise ceasing and desisting order that the respective application unit application identifies.Equally, application server 102 does not allow repeated priming or stops same applying unit 101, if the not registration of applying unit 101 that starts or stops, then administrative unit 1022 is ignored the corresponding information that starts or stops.
In addition, the communication server 103 comprises:
Second memory cell 1031, the attribute of the applying unit that storage receives.
Control unit 1032, the attribute of the applying unit that comprises in the starting command that receives is saved in second memory cell 1031, deletes the attribute of the respective application unit of storage in second memory cell 1031 according to receiving the application identities that comprises in ceasing and desisting order.
Second filter element 1033 according to the attribute of the applying unit of storage in second memory cell 1031, is transmitted message of paying close attention to respective application unit 101 and the message that receives from application server 102 to application server 102.
Second memory cell 1031 is an internal memory, when control unit 1032 receives starting command, the attribute of the applying unit that wherein comprises is saved in the internal memory, and second filter element 1033 promptly starts pays close attention to the filtration of message to using unit 101; Control unit 1032 receives when ceasing and desisting order, and according to the attribute of the respective application unit of storing in the application identities deletion internal memory that wherein comprises, second filter element 1033 promptly stops this applying unit 101 is paid close attention to the filtration of message.When the message of certain applying unit 101 concern arrived, second filter element 1033 was transmitted the message that this applying unit 101 is paid close attention to according to the applying unit attribute of storing in the internal memory to application server 102.Certainly, the communication server 103 does not allow repeated priming yet or stops respective application unit 101 is paid close attention to the filtration of message.And,, then stop respective application unit 101 is paid close attention to the filtration of message if the communication server 103 stops service.
Based on the application extension of application server 102, by applying unit 101 can the expanding monitoring system message, function such as IM message monitoring, Short Message Service Gateway, attendance checking system.Further, applying unit 101 can be handled self-defining message, and utilizes client plug-in response application unit 101 to send message, then can form a message channel that belongs to user oneself, can further obtain bigger extending space.
Message flows to schematic diagram as shown in Figure 3 in the extendible instantaneous communication system, the communication server is responsible for communicating by letter between client and the application server, give application server according to the forwards that the attribute of the applying unit of storing in the internal memory is paid close attention to the applying unit that receives, transmit the message of application server output.Application server is responsible for communicating by letter between applying unit and the communication server, and gives the respective application unit that starts according to the forwards that the attribute of the applying unit of storage is paid close attention to the applying unit that receives, and transmits the information of applying unit output.For example, applying unit 1 is paid close attention to message 1, then the communication server is transmitted to client 2, client 3 and application server with the message 1 that client 1 sends, when application server receives the message 1 of the client 1 that the communication server transmits, to once filter again, message 1 is forwarded to the applying unit 1 of the startup of paying close attention to this message, is responsible for handling this message by applying unit 1.
In order to improve the flexibility of applying unit 101 to application server 102 registrations, cancellation, as a preferred embodiment of the present invention, applying unit 101 sends the log-off message that comprises the log-on message of its attribute or comprise its application identities to application server 102; Administrative unit 1022 is saved in first memory cell 1021 with the attribute in the log-on message that receives, and deletes the attribute of the respective application unit of storage in first memory cell 1021 according to the application identities in the log-off message that receives.
The extendible instantaneous communication system that the embodiment of the invention provides can be enterprise instant communication system, by server software development kit (Server Software Development Kit, Server SDK) increases server and use (being above-mentioned applying unit) in service system, server use can be in extendible instantaneous communication system any one client transceive data, also can be by application server and the communication server and other server communications, its system schematic is as shown in Figure 4.Further, a plurality of application servers can also be set in extendible instantaneous communication system as required, to adapt to the situation that applying unit quantity strengthens.
Equally, client also can be passed through client software development kit (Client SoftwareDevelopment Kit, Client SDK), with mode expanded functions such as client plug-in or web application.
Fig. 5 shows the realization flow of the method for the expansion instantaneous communication system that the embodiment of the invention provides, and details are as follows:
In step S501, the attribute of application server for storage applying unit;
In step S502, application server sends the ceasing and desisting order of application identities comprise the starting command of respective application cell attribute or to comprise each applying unit of unique identification to the communication server;
In step S503, the communication server is according to the described starting command that receives or cease and desist order, and transmits or stop forwarding the message that the respective application unit is paid close attention to application server;
In step S504, application server is given the applying unit of paying close attention to this message the forwards that receives according to the attribute of the applying unit of storage.
In embodiments of the present invention, the attribute of the application server for storage registered applications unit of instantaneous communication system, and, the forwards that receives is given the applying unit of this message of concern according to the attribute of applying unit of storage; The communication server of instantaneous communication system is according to the starting command that receives or cease and desist order, and transmits or stop forwarding the message that the respective application unit is paid close attention to application server; Applying unit is handled the message that expanded function is paid close attention to, and realizes the expansion of instantaneous communication system corresponding function by increasing applying unit, and its implementation repeats no more as mentioned above.
In order to improve the flexibility of applying unit to application server registers, cancellation, as a preferred embodiment of the present invention, the method for expansion instantaneous communication system also comprises:
Applying unit sends the log-off message that comprises the log-on message of its attribute or comprise its application identities to application server;
Application server is preserved the attribute in the log-on message that receives or is deleted the attribute of the respective application unit of storage according to the application identities in the log-off message that receives.
In embodiments of the present invention, transmit the message of the applying unit concern that realizes expanded function, realized a kind of extendible instantaneous communication system, be convenient to the user and instantaneous communication system expanded at the situation of oneself by the application server and the communication server:
1. exploitation is based on the application extension of application server, and supervisory control system message can easily realize functions such as IM message monitoring, Short Message Service Gateway, attendance checking system.
2. pay close attention to self-defined message as if applying unit, and utilize client plug-in to respond this message, then can form a message channel that belongs to user oneself, can further obtain bigger extending space;
3. the applying unit of realizing expanded function only need connect application server, and need not to pay close attention to the communication logic of the communication server, and is safe.
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 (9)

1. an extendible instantaneous communication system is characterized in that, described system comprises application server, the applying unit and the communication server;
Described application server is used for communicating by letter between the described communication server and the applying unit that is used for expanded function, the attribute of storage applying unit, send the ceasing and desisting order of application identities that comprises the starting command of respective application cell attribute or comprise each applying unit of unique identification to the described communication server, and the message of paying close attention to the described applying unit of respective application unit forwards according to the attribute of the applying unit of storage;
Described applying unit is used to handle the message that expanded function is paid close attention to;
The described communication server is used for communicating by letter between client and the described application server, according to the described starting command that receives or cease and desist order, transmits or stop forwarding the message that the respective application unit is paid close attention to described application server.
2. the system as claimed in claim 1 is characterized in that, described application server comprises:
First memory cell is used to store the attribute of registered applications unit;
Administrative unit, be used to receive the log-on message or the Stop message that comprise application identities, and start or stop corresponding registered applying unit according to the information that receives, send to the described communication server and comprise the starting command of respective application cell attribute or comprise ceasing and desisting order of respective application sign; And
First filter element is used for the attribute according to the applying unit of described first cell stores, to the message of its concern of respective application unit forwards that starts with to the message of described communication server forwarding from applying unit.
3. system as claimed in claim 2, it is characterized in that the attribute of described applying unit comprises that application identities, the applying unit of the address of applying unit, each applying unit of unique identification obtain to pay close attention to the priority of message, copy or the message screening mode of extraction message and the message that described applying unit is paid close attention to from message queue.
4. the system as claimed in claim 1 is characterized in that, the described communication server comprises:
Second memory cell is used to store the attribute of the applying unit that receives;
Control unit, the attribute of the applying unit that the starting command that is used for receiving comprises is saved in described second memory cell, deletes the attribute of the respective application unit of storing in described second memory cell according to receiving the application identities that comprises in ceasing and desisting order; And
Second filter element is used for the attribute of the applying unit stored according to described second memory cell, transmits the message of paying close attention to the respective application unit and receives message from described application server to described application server.
5. the system as claimed in claim 1 is characterized in that, described applying unit also sends the log-off message that comprises the log-on message of its attribute or comprise its application identities to described application server.
6. system as claimed in claim 2, it is characterized in that, described administrative unit also is saved in the attribute in the log-on message that receives described first memory cell, deletes the attribute of the respective application unit of storing in described first memory cell according to the application identities in the log-off message that receives.
7. the system as claimed in claim 1 is characterized in that, described system comprises a plurality of described application servers.
8. a method of expanding instantaneous communication system is characterized in that, described method comprises the steps:
The attribute of application server for storage applying unit;
Application server sends the ceasing and desisting order of application identities comprise the starting command of respective application cell attribute or to comprise each applying unit of unique identification to the communication server;
The communication server is according to the described starting command that receives or cease and desist order, and transmits or stop forwarding the message that the respective application unit is paid close attention to application server;
Application server is given the applying unit of paying close attention to this message the forwards that receives according to the attribute of the applying unit of storage.
9. method as claimed in claim 8 is characterized in that, described method also comprises:
Applying unit sends the log-off message that comprises the log-on message of its attribute or comprise its application identities to application server;
Application server is preserved the attribute in the log-on message that receives or is deleted the attribute of the respective application unit of storage according to the application identities in the log-off message that receives.
CN2009101049495A 2009-01-06 2009-01-06 Expandable instant messaging system and method for expanding the instant messaging system Active CN101478503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101049495A CN101478503B (en) 2009-01-06 2009-01-06 Expandable instant messaging system and method for expanding the instant messaging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101049495A CN101478503B (en) 2009-01-06 2009-01-06 Expandable instant messaging system and method for expanding the instant messaging system

Publications (2)

Publication Number Publication Date
CN101478503A CN101478503A (en) 2009-07-08
CN101478503B true CN101478503B (en) 2011-05-25

Family

ID=40839138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101049495A Active CN101478503B (en) 2009-01-06 2009-01-06 Expandable instant messaging system and method for expanding the instant messaging system

Country Status (1)

Country Link
CN (1) CN101478503B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187621B (en) * 2016-08-29 2022-09-27 阿里巴巴集团控股有限公司 Task reminding method and device for multiple information sources

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119214A (en) * 2007-07-13 2008-02-06 腾讯科技(深圳)有限公司 Processing method of displaying service mark in instant communication instrument
CN101146051A (en) * 2007-11-07 2008-03-19 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119214A (en) * 2007-07-13 2008-02-06 腾讯科技(深圳)有限公司 Processing method of displaying service mark in instant communication instrument
CN101146051A (en) * 2007-11-07 2008-03-19 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection

Also Published As

Publication number Publication date
CN101478503A (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN101282314B (en) Group communication method, equipment and system for instant communication
CN101309233B (en) Method realizing TCP connection reusing in instant communication
CN102316160B (en) Website system and communication method thereof
CN104426728A (en) Communications device utilizing a central discovery mechanism, and respective method
CN101136943B (en) System and method for implementing extended Diameter protocol application
CN108111401B (en) Group building method of cross instant communication system
CN105577736A (en) Power line carrier communication terminal control device, system and method
CN101552803A (en) Method for maintaining network address translation address mapping table, media gateway and controller thereof
CN112788074A (en) Data transmitting method, processing method, receiving method and equipment and storage medium
CN103843298B (en) Media key manages and utilizes P2P messaging system and the method for this media key
CN101951349B (en) Agent mail gateway, system and method for supporting receiving and sending mails of multiple email boxes
CN112769602B (en) System and method for unified configuration management of white box switch and network operating system
CN103370921A (en) Method for naming sensor devices in a local network, service gateway and remote management server
CN101453351B (en) Method and system for pushing customer status
CN101515905B (en) Electronic mailbox building method and system
CN101110787A (en) History conversation management method and history conversation repeater system
CN1973282A (en) System and method for managing a change to a cluster configuration
CN102667663B (en) Power saving is carried out by the session between managing family gateway and broadband access node
CN1487706B (en) Method, system and control process for enterprise to communicate timely
CN100546287C (en) A kind of method, system and equipment that good friend's state is provided in instant communication process
CN102065099A (en) Signaling and bearing separated communication system
CN103227979A (en) Batch management method and system for mobile devices
CN101478503B (en) Expandable instant messaging system and method for expanding the instant messaging system
CN105191231B (en) Gateway apparatus
CN109194738A (en) Remote reboot method, routing development board and hardware bottom plate

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