CN106302605A - Real-time messages repeater system based on OpenFire server and implementation method - Google Patents
Real-time messages repeater system based on OpenFire server and implementation method Download PDFInfo
- Publication number
- CN106302605A CN106302605A CN201510307449.7A CN201510307449A CN106302605A CN 106302605 A CN106302605 A CN 106302605A CN 201510307449 A CN201510307449 A CN 201510307449A CN 106302605 A CN106302605 A CN 106302605A
- Authority
- CN
- China
- Prior art keywords
- message
- terminal
- module
- server
- openfire
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
Present invention real-time messages based on Openfire server repeater system and implementation method, described system includes Openfire server, management subsystem, terminal development bag and four parts of file server.Openfire server is used for and terminal is set up and connected, and terminal is carried out safety certification, receives simultaneously and forwards message.Management subsystem mainly carries out management and control to whole system, including device management module, application management module, security authentication module, interface administration module, log management module and terminal monitoring module.Terminal development bag is used for and Openfire server interacts, and can receive and send message, and upload download adnexa.File server is used for preserving the attachment files that terminal is uploaded, and is supplied to the service of terminal unit download file.Present invention achieves the mechanism that ensure that message forwards reliability, drastically increase the reliability of business.
Description
Technical field
The present invention relates to a kind of real-time messages repeater system based on OpenFire server and implementation method.
Background technology
Along with the fast development of computer technology, information system has been directed to the every aspect of people's life,
The type of service of system, class of business also get more and more, and become increasingly complex.People are needed in operation system
Between reliable exchange ensure the correctness of business.
Under the present circumstances, in order to reduce the exchange cost between people, intelligent terminal has had become as people
Between transmit the main media of data.Due to the particularity of some business, intelligent terminal is usually in failed cluster
State, the information of real time propelling movement is usually lost during pushing, it is therefore desirable to a reliable system is come
Even if ensureing that all information finally can completely, be correctly pushed to mesh in the case of Network Abnormal
Terminal.Native system is that a kind of message based on XMPP and Openfire server forwards middleware,
Information drop-out and out of order is can solve the problem that in the case of Network Abnormal in message forwarding process by certain mechanism
Problem.
XMPP (Extensible Messaging and Presence Protocol) is with extensible markup language
Open real-time communication agreement based on XML (Extensible Markup Language), Qian Shenwei
Jabber.XMPP has considerable flexibility, can transmit instant message and allow to pass through in distributed network
Send extension information and process the demand of user, content can be provided in upper layer application to issue and based on address
Service.Owing to XMPP contains the software protocol for server end, therefore solve different IMU
Interoperability between news system.XMPP is open, extendible, is following consensus standard
Under premise, user can come from row and embeds other desired communications protocol, simultaneously as XMPP is
Based on XML, therefore it to be with good expansibility, user can customize the function that oneself needs.Again,
XMPP has good safety, and XMPP is believed as communication by tls protocol on the basis of Transmission Control Protocol
Road encryption method, it is ensured that the safety in communication process.Practice have shown that, XMPP is in terms of instant messaging
Also there is certain shortcoming, use the server of XMPP exists and substantial amounts of repeat forwarding situation.
Openfire is to use Java exploitation, has the design of oneself uniqueness, Jivesoftware company opens
The server software of increasing income based on XMPP sent out, is usually utilized to as instant communicating system
Server end.All clients realized by XMPP can interact with Openfire server.
Openfire not only carries Lightweight Database, and supports and the main flow relevant database such as Oracle, MySQL
Integrated.Openfire provides reliable safety and performance, utilizes Web to be managed, single server
Concurrent user up to ten thousand can be supported.Existing Openfire management control can use plug-in unit mode to be extended.
For Openfire, all message sent between terminal and terminal will be through Openfire
Server, Openfire provides rotating function in message, and understands the status information of terminal by the way of heart beating.
For file transmits, Openfire server has two kinds of transmission means, i.e. pp file transmission and off-line
File transmits.For pp file transmission, Openfire is that two connection objects set up connection pipeline,
Carry out file transmission afterwards, for off-line files, Openfire first by files passe to server,
The relevant information of maintenance documentation, goes over file push after reaching the standard grade etc. terminal more simultaneously, but Openfire is disappearing
But there is restriction, once server crash in reliability and safety aspect that breath forwards, file can all be lost.
At present, although most instant message communication system can push messages to purpose terminal, cannot
Ensureing the reliability of PUSH message in the case of network or other conditions are abnormal, this is for business datum requirement
It is intolerable for the highest system.
Summary of the invention
For the problems referred to above, the present invention provide one ensure that when Network Abnormal, message remains to
Enough real-time messages repeater systems based on OpenFire server reliably arriving purpose terminal and realization side
Method.
For reaching above-mentioned purpose, present invention real-time messages based on OpenFire server repeater system, including
Openfire server, terminal development bag, management subsystem and file server,
Described Openfire server, for receiving the message that terminal is sent, resolves described message, locates
Manage, described message is transmitted to purpose terminal;
Described terminal development bag,
Described management subsystem,
Described file server, including URL generation module, for generating the URL of transmitting file, and returns
To terminal.
Further, described Openfire server includes:
Connection management module, for receiving the connection request of described terminal development bag initiation or disconnecting request;
Message reception module, for receiving the message that terminal is sent, and checks the integrity of described message, loses
Abandon incomplete message, return to transmitting terminal R receipt;
Message resolution module, for resolving or encapsulation messages according to XMPP;
Message processing module, for the logical process of message, is stored in turning of data base by parsed message
In delivering, and send one by one according to purpose terminal online situation traversal forward table adding in message queue;
Message transmitting module, is used for forwarding messages to purpose terminal.
Further, described terminal development bag includes:
Connection management module, is connected or disconnected from for setting up with Openfire server;
Message resolution module, for according to extendible XMPP encapsulation messages or parsing message;
Message transmission module, for being sent to Openfire server by packaged message;
Message reception module, forwards, for receiving Openfire server, the message of coming;
Terminal monitoring module, for running temporal information envelope by the dump energy of terminal, memory size, application
Dress up message to be sent to manage subsystem;
Transmission module on adnexa, uploads to file server by the adnexa in message, and on described adnexa, transmission module props up
Hold breakpoint transmission;
Adnexa download module, goes file server to download adnexa according to the URL in message, and described adnexa is downloaded
Module supports breakpoint function.
Further, described management subsystem includes:
Device management module, for the management to terminal unit, is added according to the IMEI number of equipment, point
It is two kinds of addition manners, single registration and batch registration.And according to specified conditions, terminal unit can be carried out
Inquiry, revises the corresponding state of certain or certain batch facility, the historical information of query facility state;
Application management module, for the application of management and control server end and terminal applies.Terminal applies needs and service
Device end example interacts, and the example only registered could be to terminal PUSH message;
Security authentication module, needs to carry out safety and recognizes the when that the application in terminal connecting Openfire server
Card, needs to be registered as the user of Openfire server during First Contact Connections;
Log management module, for management and control openfire server, management subsystem and the daily record of mobile terminal;
Terminal monitoring module, the status information for management and control mobile terminal sends to managing subsystem, described pipe
Reason subsystem is stored in data base after receiving described status information;
Interface administration module, is used for managing homophony interface and being adjusted interface, it is provided that enable interface and disabling interface.
Further, the custom block defining XMPP scalable message type, a series of one-levels are also included
With two grades of labels for identifying different type of messages:
Described message label includes one-level label and two grades of labels:
Described one-level label includes " S ", " A ", " L " and " R ", wherein: " S " label represents system message, " A "
Label represents application message, and " L " label represents log information, and " R " label represents acknowledgement message.
Described two grades of labels include " infologrequest ", " infologresponse ", " phoneinforequest ",
" phoneinforesponse ", " res ", " errorlog ", " ERASE " and " update ".Two grades of labels are used for thin
Point type of message, to provide different service, wherein:
" infologrequest " label, is used for identifying info log request message;
" infologresponse " label, is used for identifying info daily record response message;
" phoneinforequest " label, is used for identifying terminal information request message;
" phoneinforesponse " label, is used for identifying end message response message;
" res " label, the title of identification attachments, type;
" errorlog " label, is used for identifying error log message;
" ERASE " label, is used for removing terminal data information, believes including local data base information and daily record
Breath;
" update " label, is used for pushing more new information when upgrading terminals application version to binding terminal.
For reaching above-mentioned purpose, present invention real-time messages based on OpenFire server forwards implementation method,
Including
A, sender are connected with the foundation of Openfire server by connection management module request;
Message content is stored in local data base by B, sender;
If C message contains adnexa, by transmission module on adnexa, adnexa is uploaded to file server;
Packaged message is sent to Openfire server by message transmission module by D, sender;
E, Openfire server receives message by message reception module, and is forwarded by message transmitting module
Message is to recipient;
F, recipient receive message by message reception module, and resolve this message by message resolution module;
After G, recipient resolve message, if the message containing adnexa, then go according to corresponding URL address
Adnexa downloaded by file server, and wherein, adnexa downloading process supports that breakpoint is downloaded.
Further, in described step A, Openfire server passes through safe transmission layer protocol TLS and letter
Single certification carries out authentication with safe floor SASL to terminal.
Further, in described step C, adnexa is supported in transmission module upload procedure breakpoint transmission, file
The URL of generation is returned to sender by URL generation module by server, terminal receive after URL by
It is encapsulated in message body according to XMPP.
Further, in described step E, message reception module can perform following steps after receiving message:
E-1. message reception module checks the integrity of this message, if imperfect, abandons;
If E-2. message is full message, then it is stored in data base's after this message being resolved by message resolution module
In forward table;
E-3. acknowledgement message is sent by message transmission module to sender;
E-4. check that message receiver is the most online, if online, this message is added in message queue, and with pressing
Order sends;If recipient B is not online, the most do not process this message;
E-5. by message transmission module transmission acknowledgement message to sender, sender then will after receiving acknowledgement message
The corresponding message being stored in local data base is deleted;
If E-7. Openfire server detects that recipient B reaches the standard grade, then go to travel through forward table, connect all
Debit adds in message queue for the message of B and is transmitted.
Further, in step F, after recipient receives message by message reception module, will send back
Hold message to Openfire server;After Openfire server receives the acknowledgement message that recipient is beamed back,
Corresponding message in forward table is deleted, and adds in history lists so that for inquiring about later.
Beneficial effect:
Compared with existing correlation technique, the method have the advantages that
Present invention achieves a kind of mechanism that ensure that message forwarding reliability, it is ensured that even if at Network Abnormal
In the case of, purpose terminal also is able to receive the message that sender sends, and drastically increases the reliability of business.
Accompanying drawing explanation
Fig. 1 is present invention real-time messages based on OpenFire server repeater system Organization Chart;
Fig. 2 is present invention real-time messages based on OpenFire server repeater system functional block diagram;
Fig. 3 is that present invention real-time messages based on OpenFire server forwards implementation method flow chart.
Detailed description of the invention
Below in conjunction with Figure of description, the present invention will be further described.
As it is shown in figure 1, the system of the present invention is opened by Openfire server, Web Application Server, terminal
Give out a contract for a project and file server four part forms, as in figure 2 it is shown, wherein Openfire server is by connection management
Module, message reception module, message processing module and message resolution module are constituted.
Connection management module: be responsible for receiving the connection request that terminal development bag is initiated, and pass through secure transport layers
Agreement TLS and Simple Authentication and Security Layer SASL carry out authentication to terminal, respond in matching database
User and password.
Message reception module: for receiving the message that terminal is sent, and check the integrity of message, if receiving
Message be not that an integrity messages the most directly abandons this message.If the message received is R receipt, then
Remove the response message in forward table, and add in history lists.If full message then returns sender one
Individual receipt R message.
Message resolution module: after Openfire plug-in unit receives the message that terminal is sent, needs according to extendible
This message is resolved by XMPP, and is packaged into message class Message.
Message processing module: parsed message gets recipient, first message is stored in data base's
In forward table, check that recipient is the most online simultaneously, if online, message is added in message queue, by
Bar sends messages to recipient, and terminal is mutual with permanent thread with the form of heartbeat packet simultaneously, for prison in real time
Control terminal of reaching the standard grade, monitor and the message in forward table after terminal is reached the standard grade, can be traveled through, find sender for end of reaching the standard grade
The message of end, and add in message queue and send one by one.
Message transmitting module: the message in data base's forward table is entered by Openfire plug-in unit according to XMPP
Row encapsulation, and forward according to purpose terminal.
Terminal development bag is by connection management module, message reception module, message resolution module, Message Processing mould
Transmission module, message transmission module and terminal monitoring module composition on block, adnexa download module, adnexa.
Connection management module: for initiating connection request to Openfire server, when connecting by user name
It is sent to Openfire server with password verify.
Message reception module: forward, for receiving server, the message of coming, verify the integrity of message simultaneously,
If message is complete, then return Openfire server receipt R message.If receive is receipt R message, then
Delete the corresponding message in local data base.
Message resolution module: be divided into message encapsulation and message to resolve.Before transmitting terminal sends message, need root
Encapsulation messages is specified according to agreement according to expansible XMPP.If there is adnexa, then adnexa is uploaded to literary composition
The URL of response should be also encapsulated in message body after part server.Forward receiving Openfire server
Need after the message come to resolve message according to XMPP regulation.
Message processing module: before transmitting terminal message to be sent, first has to message content is stored in local number
According in storehouse.If the message parsed is " infologrequest " type, then the logging time according to message request will
Corresponding daily record uploads to file server, then the Url Information encapsulation of daily record is entered " infologresponse " disappears
In breath.
Transmission module on adnexa: if message contains adnexa, the most first should upload in file server by adnexa, on
It is transmitted through journey and supports breakpoint transmission.
Adnexa download module: terminal development bag receives Openfire server and forwards the message come and solve
After analysis, if message is the message containing adnexa, then need to go file to take according to the URL of encapsulation in message body
Adnexa downloaded by business device, and downloading process supports that breakpoint is downloaded.
Message transmission module: for packaged message is sent to Openfire server.
Terminal monitoring module: if the message parsed is terminal monitoring request, then terminal development bag obtains terminal
Dump energy, free memory, altogether internal memory, the application information such as operation time, and by these Information encapsulations
" phoneinforesponse " message is become to be transmitted to Openfire server.If collecting error log, then should
Daily record uploads in file server, and by the Url Information encapsulation of error log in " errorlog " message.
The management subsystem being deployed on Web Application Server is for management and control whole system, including equipment control
Module, application management module, security authentication module, interface administration module, log management module, terminal are supervised
Control module and terminal development bag.
Wherein the first six module is used for processing service logic, and terminal development bag is used for and Openfire server is handed over
Mutually.
Device management module: for management and control mobile terminal, is newly required for first at management subsystem to a batch facility
System is registered, is also required to revise in managing subsystem when equipment is lost, the situation such as scrapped set
Standby state, if equipment cannot re-use really, then needs the information of sweep equipment, deletes Openfire simultaneously
All and this device-dependent user in server.Can be with query facility status modifier in device management module
Historical information.Can remove designated terminal data message by sending " ERASE " message, terminal receives
Local data base information and log information is removed after " ERASE " message.
Application management module: be used for managing server application and terminal applies.Often add a server application
And the example, it is required for being registered as the user of Openfire server.Manager can enable or disable example,
Need to delete relative users during disabling example, again add when enabling.For terminal applies, manager is permissible
The program bag uploading terminal applies is downloaded for user, when a certain terminal applies is upgraded, needs to push " update "
Message is given and is mounted with that the user that corresponding terminal is applied, terminal development bag receive and solves after " update " message accordingly
Analyse and prompt the user whether upgrade application.
Security authentication module: for verifying the legitimacy of terminal use, terminal use is at First Contact Connections
Need during Openfire server to register, by terminal applies numbering, terminal IMEI number and applied cryptography
It is sent to manage subsystem, management subsystem user's table in Openfire server is registered, when
Terminal applies numbering and terminal IMEI number all exist with data base in time just think that this user is validated user.
Interface administration module: interface and system external that the third party used in management system provides provide
Interface, can disable or enable interface.
Log management module: for management and control mobile terminal, Openfire server and management three parts of subsystem
Daily record, the daily record of mobile terminal and Openfire server section is needed to send log request, please
Ask and be encapsulated as " infologrequest " message and be transmitted.Mobile terminal and Openfire resolve after receiving message,
If the message parsed is " infologrequest " type, then the logging time according to message request will be corresponding
Daily record uploads to file server, then is entered in " infologresponse " message by the Url Information encapsulation of daily record
And be sent to management system, after management subsystem receives message parsing, daily record is stored in data base so that
In inquiry.
Terminal monitoring module: for monitoring the state of each mobile terminal, can send monitoring request to a certain end
End, is encapsulated into terminal IMEI number and terminal applies number in " phoneinforequest " message.Terminal receives and disappears
If breath parses as " phoneinforequest " message, then call own terminal monitoring module, obtain the SOT state of termination,
Such as information such as dump energy, application operation times, it is packaged into " phoneinforesponse " message and is sent to pipe
Reason subsystem, monitoring information is then stored in data base by management subsystem, in order to inquiry.
File server comprises URL generation module, when the message that terminal sends contains adnexa, first will need
Adnexa is uploaded to file server, and file server then generates response URL and returns to terminal, and terminal receives
By in URL information encapsulation to message after URL.
The concrete methods of realizing of information receiving and transmitting is as shown in Figure 3:
First sender A sends to Openfire server and sets up connection request, and sends parameter
Username=447769804451095_s2a43, password=123Aq.Request ginseng received by Openfire plug-in unit
Number, whether the user name password in inquiry user's table mates, if coupling, is verified.
Sender A recipient to be given B sends message, is stored in by message content in local Sqlite data base.
If containing adnexa in message, as adnexa comprises a picture and a multimedia file, as
KQD1345ADF.jpg and A34QWELDF.wmv, the most first uploads to file server by the two adnexa,
Supporting breakpoint transmission in upload procedure, file server is deposited according to date-time after receiving the two adnexa
Storage, and call URL generation module generation URL,
Http: // 10.103.1.63/20140728/KQD1345ADFjpg, another is
Http: // 10.103.1.63/20140728/A34QWELDF.wmv, and return to terminal together, terminal receives
Being encapsulated in message body according to XMPP after URL, encapsulated result is as follows:
Wherein Text1, Text2 and Text3 are respectively text message, and labelling<res>is used for identification attachments.
Packaged message is sent to Openfire server by sender A.
Openfire server first checks for this message after receiving message the most complete, if imperfect, abandons, if
Completely, it is stored in the forward table of data base after this message is resolved, and returns mono-R message of sender A.
Sender A then will be stored in the message in Sqlite data base and deletes after receiving R message.
After Openfire server resolves this message, check that message receiver B is the most online, if online, will
This message adds in message queue, and sends in order.If recipient B is not online, the most do not process this message,
Wait when B next time reaches the standard grade, retransmit this message.
If Openfire server detects that recipient B reaches the standard grade, then go to travel through forward table, all receptions
Side all adds in message queue for the message of B and is transmitted.
After recipient B receives message, first resolve this message, and send back and hold R message and take to Openfire
Business device.
After Openfire server receives the R message that recipient B is beamed back, will forward table disappear accordingly
Breath is deleted, and adds in history lists so that for inquiring about later.After recipient B resolves message, if containing
There is the message of adnexa, then according to URL address http: // 10.103.1.63/20140728/KQD1345ADFjpg
And http: // 10.103.1.63/20140728/A34QWELDF.wmv go file server download adnexa, download
During support breakpoint download.
To the present invention it should be appreciated that embodiment described above, to the purpose of the present invention, technical scheme
Carry out further details of explanation with beneficial effect, these are only embodiments of the invention, and need not
In limiting the present invention, every within the spiritual principles of the present invention, done any amendment, equivalent,
Improving, should be included within the scope of the present invention, protection scope of the present invention should be wanted with right
The protection domain asking defined is as the criterion.
Claims (10)
1. a real-time messages repeater system based on OpenFire server, it is characterised in that: include
Openfire server, terminal development bag, management subsystem and file server,
Described Openfire server, for receiving the message that terminal is sent, resolves described message, locates
Manage, described message is transmitted to purpose terminal;
Described terminal development bag,
Described management subsystem,
Described file server, including URL generation module, for generating the URL of transmitting file, and returns
To terminal.
Real-time messages repeater system based on OpenFire server the most according to claim 1, it is special
Levy and be: described Openfire server includes:
Connection management module, for receiving the connection request of described terminal development bag initiation or disconnecting request;
Message reception module, for receiving the message that terminal is sent, and checks the integrity of described message, loses
Abandon incomplete message, return to transmitting terminal R receipt;
Message resolution module, for resolving or encapsulation messages according to XMPP;
Message processing module, for the logical process of message, is stored in turning of data base by parsed message
In delivering, and send one by one according to purpose terminal online situation traversal forward table adding in message queue;
Message transmitting module, is used for forwarding messages to purpose terminal.
Real-time messages repeater system based on OpenFire server the most according to claim 1, it is special
Levy and be:
Described terminal development bag includes:
Connection management module, is connected or disconnected from for setting up with Openfire server;
Message resolution module, for according to extendible XMPP encapsulation messages or parsing message;
Message transmission module, for being sent to Openfire server by packaged message;
Message reception module, forwards, for receiving Openfire server, the message of coming;
Terminal monitoring module, for running temporal information envelope by the dump energy of terminal, memory size, application
Dress up message to be sent to manage subsystem;
Transmission module on adnexa, uploads to file server by the adnexa in message, and on described adnexa, transmission module props up
Hold breakpoint transmission;
Adnexa download module, goes file server to download adnexa according to the URL in message, and described adnexa is downloaded
Module supports breakpoint function.
Real-time messages repeater system based on OpenFire server the most according to claim 1, it is special
Levy and be:
Described management subsystem includes:
Device management module, for the management to terminal unit, is added according to the IMEI number of equipment, point
It is two kinds of addition manners, single registration and batch registration.And according to specified conditions, terminal unit can be carried out
Inquiry, revises the corresponding state of certain or certain batch facility, the historical information of query facility state;
Application management module, for the application of management and control server end and terminal applies.Terminal applies needs and service
Device end example interacts, and the example only registered could be to terminal PUSH message;
Security authentication module, needs to carry out safety and recognizes the when that the application in terminal connecting Openfire server
Card, needs to be registered as the user of Openfire server during First Contact Connections;
Log management module, for management and control openfire server, management subsystem and the daily record of mobile terminal;
Terminal monitoring module, the status information for management and control mobile terminal sends to managing subsystem, described pipe
Reason subsystem is stored in data base after receiving described status information;
Interface administration module, is used for managing homophony interface and being adjusted interface, it is provided that enable interface and disabling interface.
Real-time messages repeater system based on OpenFire server the most according to claim 1, it is special
Levy and be: also include defining the custom block of XMPP scalable message type, a series of firsts and seconds
Label is for identifying different type of messages:
Described message label includes one-level label and two grades of labels:
Described one-level label includes " S ", " A ", " L " and " R ", wherein: " S " label represents system message, " A "
Label represents application message, and " L " label represents log information, and " R " label represents acknowledgement message;
Described two grades of labels include " infologrequest ", " infologresponse ", " phoneinforequest ",
" phoneinforesponse ", " res ", " errorlog ", " ERASE " and " update ";Two grades of labels are used for thin
Point type of message, to provide different service, wherein:
" infologrequest " label, is used for identifying info log request message;
" infologresponse " label, is used for identifying info daily record response message;
" phoneinforequest " label, is used for identifying terminal information request message;
" phoneinforesponse " label, is used for identifying end message response message;
" res " label, the title of identification attachments, type;
" errorlog " label, is used for identifying error log message;
" ERASE " label, is used for removing terminal data information, believes including local data base information and daily record
Breath;
" update " label, is used for pushing more new information when upgrading terminals application version to binding terminal.
6. a real-time messages based on OpenFire server forwards implementation method, it is characterised in that: include
A, sender are connected with the foundation of Openfire server by connection management module request;
Message content is stored in local data base by B, sender;
If C message contains adnexa, by transmission module on adnexa, adnexa is uploaded to file server;
Packaged message is sent to Openfire server by message transmission module by D, sender;
E, Openfire server receives message by message reception module, and is forwarded by message transmitting module
Message is to recipient;
F, recipient receive message by message reception module, and resolve this message by message resolution module;
After G, recipient resolve message, if the message containing adnexa, then go according to corresponding URL address
Adnexa downloaded by file server, and wherein, adnexa downloading process supports that breakpoint is downloaded.
Real-time messages based on OpenFire server the most according to claim 6 forwards implementation method,
It is characterized in that, in described step A, Openfire server passes through safe transmission layer protocol TLS with simple
Certification and safe floor SASL carry out authentication to terminal.
Real-time messages based on OpenFire server the most according to claim 6 forwards implementation method,
It is characterized in that, in described step C, adnexa being supported in transmission module upload procedure breakpoint transmission, file takes
The URL of generation is returned to sender by URL generation module by business device, terminal receive after URL according to
XMPP is encapsulated in message body.
Real-time messages based on OpenFire server the most according to claim 6 forwards implementation method,
It is characterized in that, in described step E, message reception module can perform following steps after receiving message:
E-1. message reception module checks the integrity of this message, if imperfect, abandons;
If E-2. message is full message, then it is stored in data base's after this message being resolved by message resolution module
In forward table;
E-3. acknowledgement message is sent by message transmission module to sender;
E-4. check that message receiver is the most online, if online, this message is added in message queue, and with pressing
Order sends;If recipient B is not online, the most do not process this message;
E-5. by message transmission module transmission acknowledgement message to sender, sender then will after receiving acknowledgement message
The corresponding message being stored in local data base is deleted;
If E-7. Openfire server detects that recipient B reaches the standard grade, then go to travel through forward table, connect all
Debit adds in message queue for the message of B and is transmitted.
Real-time messages based on OpenFire server the most according to claim 6 forwards implementation method,
It is characterized in that, in step F, after recipient receives message by message reception module, receipt will be sent
Message is to Openfire server;After Openfire server receives the acknowledgement message that recipient is beamed back, will
In forward table, corresponding message is deleted, and adds in history lists so that for inquiring about later.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510307449.7A CN106302605A (en) | 2015-06-08 | 2015-06-08 | Real-time messages repeater system based on OpenFire server and implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510307449.7A CN106302605A (en) | 2015-06-08 | 2015-06-08 | Real-time messages repeater system based on OpenFire server and implementation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106302605A true CN106302605A (en) | 2017-01-04 |
Family
ID=57658789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510307449.7A Pending CN106302605A (en) | 2015-06-08 | 2015-06-08 | Real-time messages repeater system based on OpenFire server and implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302605A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645567A (en) * | 2017-11-14 | 2018-01-30 | 中国科学院声学研究所 | A kind of method of remote control intelligent terminal |
CN109800096A (en) * | 2019-01-08 | 2019-05-24 | 深圳市买买提信息科技有限公司 | A kind of method and system that message block is retransmitted |
CN115378554A (en) * | 2022-10-24 | 2022-11-22 | 北京博点智合科技有限公司 | Data transmission method, device, equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1378755A (en) * | 1999-08-12 | 2002-11-06 | 艾利森电话股份有限公司 | System and method for sending multimedia attachments to text messages in radiocommunication systems |
CN101072129A (en) * | 2007-06-25 | 2007-11-14 | 北京邮电大学 | JMX based network service management method and its application system |
CN101631331A (en) * | 2009-08-10 | 2010-01-20 | 华为技术有限公司 | Terminal management method and terminal management device |
CN103096271A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Information pushing system and information pushing method |
CN103338182A (en) * | 2013-05-09 | 2013-10-02 | 闫凤麒 | Health data communication method based on XMPP (extension message and presence protocol) |
DE202012104841U1 (en) * | 2012-12-12 | 2014-03-13 | Heinz Tillack | Arrangement for monitoring and influencing vehicle drive trains by means of mobile communication devices, such as smartphones |
-
2015
- 2015-06-08 CN CN201510307449.7A patent/CN106302605A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1378755A (en) * | 1999-08-12 | 2002-11-06 | 艾利森电话股份有限公司 | System and method for sending multimedia attachments to text messages in radiocommunication systems |
CN101072129A (en) * | 2007-06-25 | 2007-11-14 | 北京邮电大学 | JMX based network service management method and its application system |
CN101631331A (en) * | 2009-08-10 | 2010-01-20 | 华为技术有限公司 | Terminal management method and terminal management device |
DE202012104841U1 (en) * | 2012-12-12 | 2014-03-13 | Heinz Tillack | Arrangement for monitoring and influencing vehicle drive trains by means of mobile communication devices, such as smartphones |
CN103096271A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Information pushing system and information pushing method |
CN103338182A (en) * | 2013-05-09 | 2013-10-02 | 闫凤麒 | Health data communication method based on XMPP (extension message and presence protocol) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645567A (en) * | 2017-11-14 | 2018-01-30 | 中国科学院声学研究所 | A kind of method of remote control intelligent terminal |
CN109800096A (en) * | 2019-01-08 | 2019-05-24 | 深圳市买买提信息科技有限公司 | A kind of method and system that message block is retransmitted |
CN115378554A (en) * | 2022-10-24 | 2022-11-22 | 北京博点智合科技有限公司 | Data transmission method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10609015B2 (en) | Method and apparatus of providing messaging service and callback feature to mobile stations | |
CN101194233B (en) | System and method of testing wireless component applications | |
US8219814B2 (en) | System and method of user credential management | |
CN101848107B (en) | SNMP (Simple Network Management Protocol) network element and communication method of SNMP network element and proprietary protocol network element | |
CN106844489A (en) | A kind of file operation method, device and system | |
CN106302605A (en) | Real-time messages repeater system based on OpenFire server and implementation method | |
CN103475491A (en) | Remote maintenance system which is logged in to safely without code and achieving method | |
CN107465704B (en) | Data downloading method and device | |
CN103139171B (en) | Media exchanging network system | |
CN116582586A (en) | Method and system for data exchange management | |
KR20220157200A (en) | A business card service using business card URL medium | |
CN101860825A (en) | Method, terminal equipment and system for feeding back processing result of device management (DM) server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |