CN102104553A - Instant message response system and method based on ActiveX control - Google Patents

Instant message response system and method based on ActiveX control Download PDF

Info

Publication number
CN102104553A
CN102104553A CN2009101554973A CN200910155497A CN102104553A CN 102104553 A CN102104553 A CN 102104553A CN 2009101554973 A CN2009101554973 A CN 2009101554973A CN 200910155497 A CN200910155497 A CN 200910155497A CN 102104553 A CN102104553 A CN 102104553A
Authority
CN
China
Prior art keywords
message
control module
socket
center module
module
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
CN2009101554973A
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN2009101554973A priority Critical patent/CN102104553A/en
Publication of CN102104553A publication Critical patent/CN102104553A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an instant message response system and method based on an ActiveX control. The system comprises a message control module and a message center module, wherein the message control module is used for establishing a link with the message center module and constructing a message and performing a response operation according to the content of the message sent from the message center module; and the message center module is used for keeping the link with the message control module, receiving various messages sent from the message control module, processing and sending the various messages to the message control module. By virtue of the system, a brand-new C/S message interactive mechanism is realized, and a client can be conveniently, instantly and controllably controlled to perform a corresponding operation.

Description

A kind of instant message responding system and method based on ActiveX control
Technical field
The present invention relates to a kind of instant message responding system and method, especially relate to a kind of instant message responding system and method for the controlled range of receiving based on ActiveX control.
Background technology
Along with network use general all the more, distributed application software is also more and more.And these softwares all have a defective on using, and are exactly that service end is very unable to the monitoring and the operation of client.
Present most solution mainly is to adopt database and regularly inquire about way of combining, this way energy better controlled range of receiving, but instantaneity is relatively poor, efficient is not high, and other then is to adopt the mode that sends message in real time to the user, and this mode range of application is very little, be fit to some special projects, after breaking away from specific scope,, usually cause the problem of poor operability and poor controllability because there is not good managing concatenated method.These methods all exist such as poor in timeliness in addition, and poor controllability, poor operability, range of application such as are restricted at such shortcoming.
Summary of the invention
The present invention produces in view of above-mentioned technical problem.An object of the present invention is to propose a kind of instant message responding system and method based on ActiveX control.
In one aspect of the invention, instant message responding system based on ActiveX control according to the present invention comprises: the message control module, be used for setting up link, make up message with the message center module, and according to the content that the message center module sends the message of the coming operation that responds; The message center module is used to keep and the link of message control module, the various message that reception message control module is sent, and sends to the message control module after handling.
In aspect this, wherein the message control module comprises: linkage unit is used for initialization Socket object to be connected to the message center module; The message construction unit is used to make up registration message or application message and sends it to the message center module; The encapsulation messages resolution unit, the encapsulation messages that is used for coming sending from the message center module is resolved the content with acquisition message, and makes corresponding operation.
In aspect this, wherein the message center module comprises: Socket thread generation unit is used for generating the Socket thread to connect with the message control module when the message center module receives the Socket request of message control module; The Socket object generation unit is used for the Socket thread that generated at Socket thread generation unit, generates a Socket object, and it is saved in the Scoket list object; The message parse unit is used for received registration message or application message are resolved.
In aspect this, wherein the message center module further comprises: registering unit, be used for the IP address information of registration message being resolved according to the message parse unit, in the Scoket list object, find corresponding object, and resource information and Role Information are registered in the respective field of the Socket object that is found.
In aspect this, wherein the message center module further comprises: the message encapsulation unit, be used for the resource information and the Role Information of being resolved according to the message parse unit, from the Socket list object, find out all qualified objects, and object ID and message object are packaged into message transmission object; Message sends thread units, is used for the message of encapsulation is sent to the message control module.
In another aspect of this invention, the instant message response method based on ActiveX control according to the present invention comprises: A, when the message control module receives message from application system loads ActiveX control, and is connected to the message center module; B, message center module creation Socket thread, and connection is created as function signal sends to the message control module; C, message control module form registration message, and send it to the message center module; D, message control module make up various application messages and send it to the message center module; After E, message center module receive application message, resolve using message according to messaging protocol, and the message of being resolved is encapsulated to send it to the message control module; After F, message control module receive the message of message center transmission,, and make corresponding operation by the content in the parsing acquisition message.
In aspect this, wherein step B further comprises: generate the Socket thread connecting with the message control module, and at this Socket thread, generate a Socket object and it is saved in the message list of controls.
In aspect this, wherein step C further comprises: the message center module is resolved the information in the received registration message, in the Scoket of message center module list object, find corresponding object according to wherein IP address information, then resource information and Role Information are registered in the respective field of Socket object.
In aspect this, wherein step e further comprises: the message center module is resolved using message according to messaging protocol, then according to resource information in the message of being resolved and Role Information, from the Socket list object, find out all qualified objects, and object ID and message object are packaged into message send object, add message to and send in the tabulation.
By the present invention, realized a kind of brand-new C/S interacting message mechanism, controlled control client that can be instant is easily done corresponding operation.
Description of drawings
In conjunction with accompanying drawing subsequently, what may be obvious that from following detailed description draws above-mentioned and other purpose of the present invention, feature and advantage.In the accompanying drawings:
Fig. 1 shows the block diagram according to the instant message responding system based on ActiveX message control of the present invention;
Fig. 2 shows the block diagram according to message control module of the present invention;
Fig. 3 shows the block diagram according to message center module of the present invention;
Fig. 4 shows the flow chart according to the instant message response method based on ActiveX message control of the present invention.
Embodiment
For a more complete understanding of the present invention and advantage, below in conjunction with drawings and the specific embodiments the present invention is done explanation in further detail.
At first, with reference to figure 1, the instant message responding system based on ActiveX message control according to the present invention is described.
As shown in Figure 1, the instant message responding system based on ActiveX message control according to the present invention comprises message control module and message center module.
The message control module is used for setting up link with message center, keeps the unimpeded of link, and receives the various message of transmission.
Specifically, as shown in Figure 2, the message control module further comprises linkage unit, message construction unit and encapsulation messages resolution unit.
Linkage unit is used for initialization Socket object to be connected to the message center module.
The message construction unit is used to make up registration message or application message and sends it to the message center module.
The encapsulation messages resolution unit, the encapsulation messages that is used for coming sending from the message center module is resolved the content with acquisition message, and makes corresponding operation.
Preferably, comprise that also Socket heartbeat line unit is to be used for sending heartbeat packet every some seconds (for example 10 seconds) to the message center module.
The message center module is used to keep and the link of message control module, the various message that reception message control module is sent, and sends after handling.
Specifically, as shown in Figure 3, this message center module comprises that further Socket thread generation unit, Socket object generation unit, message parse unit, registering unit, message encapsulation unit and message send thread units.
Socket thread generation unit is used for generating the Socket thread to connect with the message control module when the message center module receives the Socket request of message control module;
The Socket object generation unit is used for the Socket thread that generated at Socket thread generation unit, generates a Socket object, and it is saved in the Scoket list object.
The message parse unit is used for received message (registration message or application message) is resolved.
Registering unit is used for according to the message parse unit IP address information that registration message parsed is found corresponding object, and resource information and Role Information are registered in the respective field of the Socket object that is found in the Scoket list object.
The message encapsulation unit is used for according to the message parse unit finding out all qualified objects from the Socket list object, and object ID and message object being packaged into message transmission object using resource information and the Role Information that message parsed.Preferably, the message of encapsulation being sent object adds in the message transmission tabulation.
Message sends thread units, is used for the message of encapsulation is sent to the message control module.Preferably, when having message object to exist in the message transmission tabulation, message sends thread and will be activated, the beginning poll sends tabulation, find corresponding Socket link according to the Socket object ID that sends in the message, send message then, be sent completely up to entire message, message sends thread units and enters resting state.
Next, with reference to figure 4, the workflow according to the instant message response method based on ActiveX message control of the present invention is described in detail.
As shown in Figure 4, the instant message response method based on ActiveX message control according to the present invention comprises step:
A, when the message control module receives message from application system, load ActiveX control, and be connected to the message center module.
Specifically, initialization Socket object, the ConnectSever method in the control called is to be connected to the message center module.Preferably, simultaneously, the timer in the initiation message control module sends heartbeat packet (heartbeat packet only sends, to guarantee the unimpeded of link) every some seconds (for example 10 seconds) to the message center module when Socket connects the free time.When the Socket mistake appears in the heartbeat packet transmission, close the Socket object, initiate again again to connect.
Heartbeat packet is a message body that makes up according to messaging protocol, and it mainly comprises for example length, type of message-heartbeat message, the message sender-IP address of control place end and the spare field of two reservations of message-length-whole heartbeat packet.After heartbeat packet sends to the message center module, message center module parses message, and when finding heartbeat packet, then respond with identical heartbeat.Thereby message control module and message center module are shaken hands to set up and have been stablized unobstructed link like this.
B, create the Socket thread, and connection is created as function signal sends to the message control module in Socket when request that the message center module receives the message control module.
Specifically, when the message center module receives the Socket request of message control module, generate the Socket thread to connect with the message control module.At this Socket thread, generate a Socket object (for example PubSocDisposalThread object), and it is saved in the message list of controls.At this moment, message center module and message control module connect, and the Socket thread is sent out a connection automatically and is created as function signal to the message control module, and this expression Socket connection is set up successfully.Preferably, the message center module the Socket object storage in the message list of controls.
C, the message control module receive connect be created as function signal after, form registration message, and send it to the message center module.
Specifically, receive the signal of successful connection when the message control module after, can feed back to the application system at place, at this moment the register method that application system meeting message call control module is provided, this register method comprises two parameters: one is the current resource number that has of application system, and another is a system actor.Wherein so-called resource number is a whole set of resource number that message system forms after to place application system resource, each resource number correspondence a function or a module, thereby make the message center module grasp the resource at current message control place, and so-called system actor is a kind of division of message system to the various dissimilar executor of place application system.System actor and resource number have been formed the rights management mechanism of message system jointly.For example, be various resource numbers RE0001 usually, RE0002 ...; Role to system is numbered RO0001, RO0002 .... etc.Certainly the rule of numbering can arbitrarily be stipulated, as long as guarantee the uniqueness in system.
After the message control module receives these two parameters, form registration message according to messaging protocol.Registration message for example mainly comprises field: the length of message-length-whole registration message body, type of message (registration message), message sender IP address (the IP address of control place end), control resource information (resource number of the functional module at the current place of control correspondence in resource system) and control Role Information (system actor that control itself has).Registration message is not limited thereto to those skilled in the art, but can comprise any suitable field.
After registration message made up and to finish, the link of message control module by keeping with the message center module sent to the message center module to registration message.
The message center module is resolved the information in the received registration message, in the Scoket of message center module list object, find corresponding object according to wherein IP address information, then resource information and Role Information are registered in the respective field of Socket object, the Socket object has just comprised the corresponding current authority information of message control like this.That is to say that these authority informations have been determined the range of receiving of message.
It should be noted that the message control module is not only to send registration message after login, but the module at function that is had in each message control module or place is when changing, all will send log-on message to the message center module, the authority that assurance message control module is had is up-to-date.Because all functions and module all have specific resource number, when so the function at the current place of message control or module change, the corresponding authority that it has also can change, do like this can make message center very flexibly the control messages control send various message.
D, message control module make up various application messages and send it to the message center module.
Specifically, the message control module makes up the message of various functions according to messaging protocol.Concrete structure mainly comprises: message-length (length of whole message), type of message (class of operation message and info class message), message sender IP address (the IP address of control place end), message resource information, message system role and message content.
Wherein message-length guarantees the integrality of message sink.
Class of operation message is just as issue an order, other message control that receives this message can be made corresponding action at the content that class of operation message comprises, and info class message is exactly the function of a short message, belong to Word message, the difference of two types of maximums is the final implementation method difference of message control invokes.
Specified in the message resource information message recipient the resource number that must have.Specified among the message system role message recipient the system actor that must have.The scope that can control messages receives by these two control of authority items.
Message content is the main carrier of message, and it comprises wants the information transmitted.
After the message control module generates various message, just various application messages are sent to the message center module by path with the message center module.
Should note, as mentioned above, the message control module is not only to send registration message after login, but the module at function that is had in each message control module or place is when changing (when environment changes), all will be to message center module transmission log-on message.But under same environment, then be to send registration message earlier to send application message again.That is to say, in case environment change, execution in step C then, continue after execution in step step D.
After E, message center module receive application message, resolve using message according to messaging protocol, and the message of being resolved is encapsulated to send it to the message control module.
Specifically, after the message center module receives application message, resolve using message according to messaging protocol, then according to resource information in the message of being resolved and Role Information, from the Socket list object, find out all qualified objects, and object ID and message object are packaged into message send object, add message to and send in the tabulation, waiting for the arrival of news sends thread message is sent.
When having message object to exist in the message transmission tabulation of message center module, message sends thread and will be activated, the beginning poll sends tabulation, find corresponding Socket link according to the Socket object ID that sends in the message, send message then, be sent completely up to entire message, thread enters resting state.
After F, message control module receive the message of message center module transmission,, and make corresponding operation by the content in the parsing acquisition message.
Specifically, after the message control module receives message, resolve according to messaging protocol, after obtaining the resource information and Role Information in the message, compare the authority that self has now, if consistent just the continuation understood message, inconsistent words then directly abandon message; After the authority unanimity, the message control module can be according to the type information of message, diverse ways in the message call control, when for example being class of operation message, the message control module can be according to the title of the method class that comprises in the message content, call corresponding method class, thereby make application system make corresponding action; If during info class message, then can directly call exhibiting method, it is medium perhaps to be saved in database.
By as can be known above-mentioned, the present invention is by the maintenance information table, real-time keeps communicating by letter with the client computer of each login on server, when the request of the transmission message that obtains sending from interface, service end is with the filtering information table, organize message body, send to the client computer that meets condition of acceptance, thereby accomplish instant controlled operation client computer in login.
The present invention has realized a kind of brand-new C/S interacting message mechanism, and controlled control client that can be instant is easily done corresponding operation.Use the present invention, can well control the message range of receiving, the corresponding operating that allows client computer make targetedly makes application platform have the more controlled disposal ability of actual effect, realizes connected effect, more efficiently, initiatively, accurately, in time.
What may be obvious that for the person of ordinary skill of the art in addition, draws other advantages and modification.Therefore, the present invention with wider aspect is not limited to shown and described specifying and exemplary embodiment here.Therefore, under situation about not breaking away from, can make various modifications to it by the spirit and scope of claim and the defined general inventive concept of equivalents thereof subsequently.

Claims (9)

1. the instant message responding system based on ActiveX control comprises:
The message control module is used for setting up link with the message center module, makes up message, and according to the content that the message center module sends the message of the coming operation that responds;
The message center module is used to keep and the link of message control module, the various message that reception message control module is sent, and sends to the message control module after handling.
2. according to the system of claim 1, wherein the message control module comprises:
Linkage unit is used for initialization Socket object to be connected to the message center module;
The message construction unit is used to make up registration message or application message and sends it to the message center module;
The encapsulation messages resolution unit, the encapsulation messages that is used for coming sending from the message center module is resolved the content with acquisition message, and makes corresponding operation.
3. according to the system of claim 2, wherein the message center module comprises:
Socket thread generation unit is used for generating the Socket thread to connect with the message control module when the message center module receives the Socket request of message control module;
The Socket object generation unit is used for the Socket thread that generated at Socket thread generation unit, generates a Socket object, and it is saved in the Scoket list object;
The message parse unit is used for received registration message or application message are resolved.
4. according to the system of claim 3, wherein the message center module further comprises:
Registering unit is used for according to the message parse unit IP address information that registration message parsed is found corresponding object, and resource information and Role Information are registered in the respective field of the Socket object that is found in the Scoket list object.
5. according to the system of claim 4, wherein the message center module further comprises:
The message encapsulation unit is used for the resource information and the Role Information that application information are parsed according to the message parse unit, finds out all qualified objects from the Socket list object, and object ID and message object are packaged into message send object;
Message sends thread units, is used for the message of encapsulation is sent to the message control module.
6. the instant message response method based on ActiveX control comprises:
A, when the message control module receives message from application system, load ActiveX control, and be connected to the message center module;
B, message center module creation Socket thread, and connection is created as function signal sends to the message control module;
C, message control module form registration message, and send it to the message center module;
D, message control module make up various application messages and send it to the message center module;
After E, message center module receive application message, resolve using message according to messaging protocol, and the message of being resolved is encapsulated to send it to the message control module;
After F, message control module receive the message of message center transmission,, and make corresponding operation by the content in the parsing acquisition message.
7. according to the method for claim 6, wherein step B further comprises: generate the Socket thread connecting with the message control module, and at this Socket thread, generate a Socket object and it is saved in the message list of controls.
8. according to the method for claim 7, wherein step C further comprises: the message center module is resolved the information in the received registration message, in the Scoket of message center module list object, find corresponding object according to wherein IP address information, then resource information and Role Information are registered in the respective field of Socket object.
9. method according to Claim 8, wherein step e further comprises: the message center module is resolved using message according to messaging protocol, then according to resource information in the message of being resolved and Role Information, from the Socket list object, find out all qualified objects, and object ID and message object are packaged into message send object, add message to and send in the tabulation.
CN2009101554973A 2009-12-16 2009-12-16 Instant message response system and method based on ActiveX control Pending CN102104553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101554973A CN102104553A (en) 2009-12-16 2009-12-16 Instant message response system and method based on ActiveX control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101554973A CN102104553A (en) 2009-12-16 2009-12-16 Instant message response system and method based on ActiveX control

Publications (1)

Publication Number Publication Date
CN102104553A true CN102104553A (en) 2011-06-22

Family

ID=44157090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101554973A Pending CN102104553A (en) 2009-12-16 2009-12-16 Instant message response system and method based on ActiveX control

Country Status (1)

Country Link
CN (1) CN102104553A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824710A (en) * 2015-11-16 2016-08-03 广东亿迅科技有限公司 Data processing method
CN106534607A (en) * 2016-10-20 2017-03-22 北京先进数通信息技术股份公司 Image scanning method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842073A (en) * 2005-03-31 2006-10-04 联想(北京)有限公司 Method for realizing external device mapping of network computer
CN1848774A (en) * 2005-04-11 2006-10-18 华为技术有限公司 System and method for long-distance calling communication assembly
CN101075969A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method, apparatus and system for controlling data transmission
CN101272264A (en) * 2008-05-09 2008-09-24 上海华平信息技术股份有限公司 Method for integrating instant communication, network conference and monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842073A (en) * 2005-03-31 2006-10-04 联想(北京)有限公司 Method for realizing external device mapping of network computer
CN1848774A (en) * 2005-04-11 2006-10-18 华为技术有限公司 System and method for long-distance calling communication assembly
CN101075969A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method, apparatus and system for controlling data transmission
CN101272264A (en) * 2008-05-09 2008-09-24 上海华平信息技术股份有限公司 Method for integrating instant communication, network conference and monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824710A (en) * 2015-11-16 2016-08-03 广东亿迅科技有限公司 Data processing method
CN106534607A (en) * 2016-10-20 2017-03-22 北京先进数通信息技术股份公司 Image scanning method and device

Similar Documents

Publication Publication Date Title
CN107018147B (en) Internet of things communication method and system and gateway module
WO2021121370A1 (en) Message loss detection method and apparatus for message queue
US7502851B1 (en) Facility to transmit network management data to an umbrella management system
JP4740328B2 (en) Messenger notification system and method using sink server
CN100463397C (en) File transmission method and system
US20060173959A1 (en) Agent based application using data synchronization
CN113411215B (en) Time-sensitive network centralized user configuration method and system based on OPC UA
US20090030917A1 (en) Multimedia messaging service-based database synchronization
JP2012256330A (en) Method and system for managing message threads in converged ip messaging service
WO2014029276A1 (en) Communication method and device
WO2009000195A1 (en) A method, apparatus and system for informing warning message
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
US10834033B2 (en) Method and system for transferring messages between messaging systems
US20040214588A1 (en) Communication device and communication method
CN101778053A (en) Inter-instant messenger communication method and device
EP2560329B1 (en) Method and processing system for routing a message request
CN103812838A (en) Service calling method and device and system
CN104539510A (en) Multi-protocol-based information pushing system and method
KR100702704B1 (en) Notification System and Method Using Messenger
US7543030B2 (en) Peer-to-peer communication for instant messaging between different instant message application types
CN112307486A (en) Authority obtaining method, equipment and system
CN102104553A (en) Instant message response system and method based on ActiveX control
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
CN103501298B (en) A kind of non-interrupting service escalation process ensures the method and apparatus that link does not stop
CN102819455B (en) A kind of method process being managed in application layer and management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 310012, building 8, building 99, Huaxing Road, Hangzhou, Zhejiang

Applicant after: China Telecom Corporation Limited

Address before: Hangzhou City, Zhejiang province 310005 Moganshan Road No. 118

Applicant before: China Telecom Corporation Limited

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110622