CN110430126A - Instant communication message processing method, device, system, equipment and storage medium - Google Patents
Instant communication message processing method, device, system, equipment and storage medium Download PDFInfo
- Publication number
- CN110430126A CN110430126A CN201910824833.2A CN201910824833A CN110430126A CN 110430126 A CN110430126 A CN 110430126A CN 201910824833 A CN201910824833 A CN 201910824833A CN 110430126 A CN110430126 A CN 110430126A
- Authority
- CN
- China
- Prior art keywords
- message
- target
- server
- sending
- target message
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 34
- 238000004891 communication Methods 0.000 title abstract description 6
- 238000012545 processing Methods 0.000 claims description 30
- 239000002131 composite material Substances 0.000 claims description 22
- 230000001960 triggered effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 abstract description 29
- 238000000034 method Methods 0.000 abstract description 17
- 230000000875 corresponding effect Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 244000035744 Hura crepitans Species 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1806—Go-back-N protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of instant communication message processing method, device, system, equipment and readable storage medium storing program for executing.This method comprises: target message is sent to server;The destination address of server feedback is received, destination address is the storage address of target message in the server;By destination address by being sent to receiving end.After target message content is sent to server by transmitting terminal in the embodiment of the present invention, target message is stored by server, and the destination address of the storage by target message in the server feeds back to transmitting terminal.With stronger network interference resistance ability, after receiving end receives destination address, target message can be got by accessing server.And then transmitting terminal repeatedly sends target message to receiving end, improves the resource utilization ratio of transmitting terminal.When receiving end obtains target message by server, the interference that transmitting terminal network state transmits target message is shielded, and then improve the reliability of target message transmission.
Description
Technical Field
The present invention relates to instant messaging technologies, and in particular, to a method, an apparatus, a system, a device, and a readable storage medium for processing an instant message.
Background
In the instant messaging software, a sender sends different types of information to a receiver, such as text format, voice format, picture format, files and the like. For data such as voice, pictures or files, the data body content is transmitted in the data transmission process. At this time, when the network fails, data transmission is incomplete, the sending end needs to resend the data, and the reliability of data transmission is low.
Disclosure of Invention
The invention provides an instant messaging message processing method, an instant messaging message processing device, an instant messaging message processing system, instant messaging message processing equipment and a readable storage medium, and aims to improve the reliability of instant messaging data transmission.
In a first aspect, an embodiment of the present invention provides an instant messaging message processing method, applied to a sending end, including:
sending the target message to a server;
receiving a target address fed back by the server, wherein the target address is a storage address of a target message in the server;
and sending the target address to a receiving end.
In a second aspect, an embodiment of the present invention further provides an instant messaging message processing method, applied to a receiving end, including:
receiving a message sent by a sending end, wherein the message comprises a target address;
accessing a server according to a target address carried in the message to obtain a target message;
and displaying the target message.
In a third aspect, an embodiment of the present invention further provides an instant messaging message processing system, including a sending end, a receiving end, and a server, where:
the sending terminal is used for sending the target message to the server;
the server is used for storing the target message to obtain a target address, and the target address is the storage address of the target message in the server;
the sending end is used for receiving the target address fed back by the server and sending the target address to the receiving end as a message;
the receiving end is used for accessing the server according to the target address to acquire the target message; and displaying the target message.
In a fourth aspect, an embodiment of the present invention further provides an instant messaging message processing apparatus, applied to a sending end, including:
the target message sending module is used for sending the target message to the server;
a target address receiving module for receiving the target address fed back by the server, the target address being
The storage address of the target message in the server;
and the target address sending module is used for sending the target address to the receiving end.
In a fifth aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the instant messaging message processing method as shown in the first aspect or the second aspect.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the instant messaging message processing method according to the first aspect or the second aspect.
According to the instant messaging message processing scheme provided by the embodiment of the invention, a sending end sends a target message to a server; receiving a target address fed back by the server, wherein the target address is a storage address of a target message in the server; and sending the target address to a receiving end. Compared with the prior art that the sending end directly sends the message content to the receiving end, the transmission reliability is poor. According to the instant messaging message processing scheme provided by the embodiment of the invention, after the sending end sends the content of the target message to the server, the server stores the target message and feeds back the target address of the target message stored in the server to the sending end. And then, the sending end sends the target address to the receiving end, the data volume of the target address is small, the target address has strong network interference resistance, and after the receiving end receives the target address, the target message can be obtained by accessing the server. And then the sending end sends the target message to the receiving end many times, improve the utilization ratio of system resources of the sending end. Meanwhile, when the receiving end obtains the target message through the server, the interference of the network state of the sending end to the transmission of the target message is shielded, and the reliability of the transmission of the target message is further improved.
Drawings
Fig. 1 is a flowchart of an instant messaging message processing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of an instant messaging message processing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an instant messaging message processing method in the third embodiment of the present invention;
fig. 4 is a flowchart of an instant messaging message processing method in the fourth embodiment of the present invention;
fig. 5 is a flowchart of an instant messaging message processing method in the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an instant messaging message processing apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an instant messaging message processing apparatus according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in an eighth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The system architecture used by the instant communication message processing scheme provided by the embodiment of the invention comprises a sending end, a server and a receiving end. The sending end sends the target message to a server; the server stores the target message to obtain a target address, wherein the target address is a storage address of the target message in the server; the sending end receives a target address fed back by the server and sends the target address serving as a message to the receiving end; the receiving end accesses the server according to the target address to obtain a target message; and displaying the target message.
In the current instant messaging technology, a sending end packs a target message and then sends the target message to a receiving end to complete transmission of the target message. The embodiment of the invention adds a sending end to upload the data body to the server on the basis of the current sending mechanism, the sending end sends the storage address of the data body in the server to a receiving end, and the receiving end acquires the data body from the server according to the storage address. The method can greatly reduce the data volume of the data transmitted between the transmitting end and the receiving end, and the resistance of the data to network fluctuation is increased along with the reduction of the data volume of the transmitted data, and the requirement on the bandwidth is reduced along with the increase of the resistance. When the receiving end accesses the server according to the target address, the instant sending end cannot access the network and cannot influence the receiving end to obtain the target message through the server, and therefore the reliability of target message transmission is improved. The following further explains the processing mechanisms of the sending end, the server and the receiving end by embodiments:
example one
Fig. 1 is a flowchart of an instant messaging message processing method according to an embodiment of the present invention, where this embodiment is applicable to a case where a sending end sends a message to a receiving end in instant messaging, and the method may be executed by the sending end, and specifically includes the following steps:
step 110, sending the target message to a server.
The instant messaging application is installed on both the sending end and the receiving end, when the sending end sends the instant messaging message to the receiving end, the sending end can firstly send the instant messaging message to the chat server, and the chat server forwards the instant messaging message to the receiving end. The server in step 110 may be a chat server, or may be a separate server other than the chat server. The server is used for storing the target message sent by the sending end and feeding back the storage address of the target message to the sending end.
The target message may be an instant messaging message sent by the sender to the receiver in an instant messaging application. The instant messaging message may be a text message, a voice message, a selected or recorded video message, or other message containing a resource file entered by the user in the instant messaging application. The video message may be video data that is sent by the user through the social application, or video data that is selected by the user in a local media library. The other messages containing the resource file may be resource data of other applications called by the user in the instant messaging application, such as chat records in other instant chat applications, monitoring data of monitoring applications such as working conditions, and the like. Optionally, the user may also import different transmission objects, such as a Virtual Reality (VR) object, an Augmented Reality (AR) object, and the like, through the link address. So as to realize that the target message supports different message extensions according to platform services.
The sending end judges the type of the instant communication message input by the user, if the message is a voice message, a selected or recorded video message or other messages containing resource files, the sending end sends the target information to the server, and sends the storage address of the target information fed back by the server to the receiving end. And if the message is a text message, the text message is sent to the receiving end through the chat server.
When a sending end sends a target message to a server, the sending end may not successfully upload the target message to the server due to network reasons or equipment reasons. Based on this situation, further, after the step 110, sending the target message to the server, the method further includes:
and if the target message fails to be uploaded to the server, displaying a failure message. And if a retransmission instruction triggered by the user is received, the target message is uploaded again.
After the user inputs the target message, the send button is clicked. The sending end displays the waiting (loading) state of the target message. The sending status of the target message includes a wait status, a failure status, and a success status. The sending end is provided with an uploading queue, and sequentially sends the target messages in the uploading queue to the server.
And if the target message fails to be uploaded, the sending end locally displays the failure state of the target message and outputs the failure message. The failure message may be represented by a retransmit button. If the user clicks the retransmit button, a retransmit instruction is triggered. And the sending end adds the target message into an uploading queue for retransmission. And if the target message is failed to be uploaded, the steps are repeatedly executed until the target message is successfully uploaded.
And step 120, receiving a target address fed back by the server, wherein the target address is a storage address of the target message in the server.
When the target message is successfully sent to the server, the server stores the target message and feeds back a storage address of the target message, namely the target address, to the sending end. The server can provide the access of the instant communication application user and comprises a sending end and a receiving end. After receiving the target address, the sending end can locally store the target address so as to trace the sending history. The receiving end can access the target message stored in the server through the target address and obtain the target message through the server. A target message may be understood as a target message object, i.e. a voice message entered by a user, a selected or recorded video message or other message containing a resource file.
Step 130, the destination address is sent to the receiving end.
And after receiving the target address fed back by the server, the sending end sends the target address to the receiving end through the chat server. And after receiving the target address, the receiving end accesses the server to acquire the target message and displays the acquired target message.
Furthermore, the sending end or the receiving end is connected with the chat server to realize the real-time receiving and sending of the message and the receiving of the transparent transmission message. Alternatively, the transmitting end (or the receiving end) may connect to the server using a hypertext transfer Protocol Secure (HTTPS) Protocol. And carrying out the interaction of real-time message receiving and sending, message conversation list, offline and historical message pulling through HTTPS. The sending end (or the receiving end) can receive the transparent transmission message by using a socket (socket), and then execute corresponding actions, such as pulling the message, according to the transparent transmission message instruction. And establishing a long link with the chat server by using the socket, reconnecting if the connection fails, logging in the chat server through a corresponding account and a corresponding password after the long link is established successfully, and starting to monitor and receive a new message in real time after the logging is successful.
In one implementation, a long link is established with a chat server through a socket protocol, so that the core functions of real-time chat message transceiving and local caching are realized. And synchronizing the offline message with the chat server through a hypertext transfer security protocol to realize the core function of pulling the offline message.
Further, if the sending end or the receiving end is an IOS system, the message may be processed asynchronously. And the chat messages are asynchronously sent and received in real time through the multithreading GCD provided by the ios system so as to achieve the aim of not blocking the refreshing of the user interface. When the message is received, the message is required to be successfully stored in the local database, so that the consistency between the locally stored message and the message displayed to the user can be ensured, and the message is required to be successfully stored in the local database before being transmitted, so that the consistency between the locally stored message and the message displayed to the user is ensured.
Optionally, in the long-link process, abnormal situations such as disconnection of the long-link or restart of the instant messaging application due to a network or the like may occur, or a problem that a user needs to synchronize messages when logging in a different place may occur. In order to solve the problem, the offline message can be acquired when the next long chain succeeds, and the problem that messages are lost when a plurality of terminals log in is further avoided. Meanwhile, when the user logs in the instant messaging application, the history conversation list is pulled from the chat server.
According to the instant messaging message processing scheme provided by the embodiment of the invention, a sending end sends a target message to a server; receiving a target address fed back by the server, wherein the target address is a storage address of a target message in the server; and sending the target address to a receiving end. Compared with the prior art that the sending end directly sends the message content to the receiving end, the transmission reliability is poor. According to the instant messaging message processing scheme provided by the embodiment of the invention, after the sending end sends the content of the target message to the server, the server stores the target message and feeds back the target address of the target message stored in the server to the sending end. And then, the sending end sends the target address to the receiving end, the data volume of the target address is small, the target address has strong network interference resistance, and after the receiving end receives the target address, the target message can be obtained by accessing the server. And then the sending end sends the target message to the receiving end many times, improve the utilization ratio of system resources of the sending end. Meanwhile, when the receiving end obtains the target message through the server, the interference of the network state of the sending end to the transmission of the target message is shielded, and the reliability of the transmission of the target message is further improved.
Example two
Fig. 2 is a flowchart of an instant messaging message processing method according to a second embodiment of the present invention, which specifically includes the following steps as further description of the above embodiment:
and step 210, generating local storage data according to the target message.
The database can be set locally at the sending end, and the database can use an SQLite database. The targeted message may be stored locally before being sent to the server.
Optionally, when the SQLite database is used for local storage of the message, a database table is established. The header of a database table contains the following fields: message id, message sender id, message receiver id, session id, message type (group chat, single chat), message body type (voice, video, file link, object link, etc.), message time, message send status, message read status, etc.
In an implementation mode, as the number of the locally stored messages is increased gradually, the problem of message identification confusion is easy to occur, and on the basis, a composite main key is set for each target message, so that the target messages can be uniquely identified, and the accuracy of data reading is improved. Illustratively, the locally stored data includes a composite primary key and locally stored content, the composite primary key being a unique identification of the locally stored content. Step 210 may be implemented by:
and step 211, determining a composite primary key according to the identification information of the target message.
The identification information of the target information includes a message id, a session id, a message type (group chat, single chat), and the like. The composite primary key may be established according to a message id, a session id, and a message type such that the composite primary key of each target message has uniqueness.
Step 212, according to the content parameter and the transceiving parameter of the target message, generating the local storage content.
The content parameters of the target message include: message id, message sender id, message receiver id, session id, message type (group chat, single chat), message body type (voice, video, file link or object link, etc.), message time. The transceiving parameters of the target message comprise: message sending state and message reading state. The data of the message body itself may also be stored locally.
Step 220, storing the local storage data to the sending end local database.
And storing the local storage content based on the composite primary key in a local database of the sending end.
And step 230, reading the local storage data of the target message according to the local database, and outputting the target message object represented by the local storage data.
After the local storage data is stored in the local database, the sending end can summarize and display the locally stored target message objects on the instant messaging application interface.
In the above implementation, step 230 may be implemented by:
and 231, reading the local storage content of the target message from the local database according to the composite primary key.
And according to the composite primary key, the local storage content of the target message can be searched from the local database.
And step 232, generating a target message object according to the local storage content, and refreshing the local interface to output the target message object.
The local storage content comprises the type of the target message and the like, and the target message object can be generated according to the local storage content. And after the target message object is generated, refreshing the instant messaging application interface and outputting the target message object in the instant messaging application interface.
Step 240, sending the target message to the server.
The target message can be sent to the server according to the data structure of the local storage content generated in the above step, so that the server and the sending end have the same composite primary key and the same target message storage structure. And then can discern and read the target message fast, raise the data processing efficiency.
And step 250, receiving a target address fed back by the server, wherein the target address is a storage address of the target message in the server.
Step 260, the destination address is sent to the receiving end.
Furthermore, the sending end can pull a new chat message from the server end, the message sent by the sending end needs to be stored in the mobile phone for local success and then displayed to the user, the situation that if the local storage is unsuccessful and the message is directly displayed for the user to check is prevented, the situation that the message cannot be seen in a chat page next time, the inconsistency is caused, meanwhile, if the local database is not stored successfully, the message which is stored unsuccessfully needs to be obtained again when the new message is obtained next time, and the situation that the message is not lost is achieved.
Furthermore, when a user enters a chat page, 20 history messages are read from a local database, if no chat message exists locally, the latest 20 history messages are pulled from a server through an https network interface and cached in the local database for later use.
Optionally, by adding a common index to the session id and the message time field in the SQLite database message table, the time consumption for reading the message is reduced, so that the user can enter the chat page and view the historical message more quickly, and experience optimization is achieved.
The instant messaging message processing method provided by the embodiment of the invention can store the target message locally at the sending end, so that the sending end can load the history record based on the locally stored data, and the reliability of the information is improved.
EXAMPLE III
Fig. 3 is a flowchart of an instant messaging message processing method according to a third embodiment of the present invention, which specifically includes the following steps as further description of the above embodiment:
step 310, sending the target message to the server.
And step 320, receiving a target address fed back by the server, wherein the target address is a storage address of the target message in the server.
Step 330, generating a message according to the target address.
Step 340, putting the message into a sending queue, and sending the message to a receiving end according to the sending queue.
And step 350, if the message is successfully sent, displaying a message of successful sending.
And step 360, if the message is failed to be sent, displaying a failure message, and if a retransmission instruction sent by the user is received, uploading the message again.
When a sender sends a message to a receiver, there may be a situation that the sender cannot send the message to the receiver due to a network or a device. Based on this, if the message transmission fails, a failure message is displayed. And if a retransmission instruction triggered by the user is received, the message is sent to the receiving end again.
After the user inputs the target message, the send button is clicked. The sending end displays the waiting (loading) state of the target message. The sending status of the target message includes a wait status, a failure status, and a success status. The sending end is provided with an uploading queue, and sequentially sends the target messages in the uploading queue to the server. The sending end is also provided with a sending queue, and the sending queue sends the messages to the receiving end in sequence. If the message transmission fails, the transmitting end locally displays the failure state and outputs a failure message. The failure message may be represented by a retransmit button. If the user clicks the retransmit button, a retransmit instruction is triggered. And the sending end adds the target message into an uploading queue for retransmission. And if the target message is failed to be uploaded, the steps are repeatedly executed until the target message is successfully uploaded. And when the uploading is successful, the sending end locally displays the success state.
The instant messaging message processing method provided by the embodiment of the invention can accurately display the sending state of the message according to the sending condition of the message, accurately display the message progress, and enable the message to be sent to the receiving end through retransmission, thereby finishing the stable transmission of the message.
Example four
Fig. 4 is a flowchart of an instant messaging message processing method according to a fourth embodiment of the present invention, where this embodiment is applicable to a situation where a receiving end receives a message sent by a sending end in instant messaging, and the method can be executed by the receiving end, and specifically includes the following steps:
step 410, receiving a message sent by a sending end, wherein the message comprises a target address.
After receiving the message sent by the sending end through the chat server, the receiving end resolves the target address from the message.
And step 420, accessing the server according to the target address carried in the message to obtain the target message.
The receiving end accesses the server to obtain the target information pointed by the target address. And obtains the target message from the server.
Step 430, displaying the target message.
And the receiving end generates a target message object according to the acquired target message and displays the target message object in the instant messaging application.
Further, when the receiver receives the target message containing the resource file, the receiver firstly analyzes the target address of the corresponding resource file, then downloads the corresponding file to the server according to the target address, stores the file in the local sandbox, and assigns the stored local path to the corresponding message body. When the resource files are checked for many times, the corresponding files are read from the mobile phone sandbox according to the local path, and the resource files do not need to be downloaded to the server every time, so that the flow is saved.
According to the instant messaging message processing method provided by the embodiment of the invention, the receiving end of instant messaging can acquire the target message from the server according to the target address placed by the sending end, so that the reliability of target message transmission is improved.
EXAMPLE five
Fig. 5 is a flowchart of an instant messaging message processing system according to a fourth embodiment of the present invention, where this embodiment is applicable to a case where a sending end 501 sends a message to a receiving end 503 in instant messaging, and specifically includes the sending end 501, a server 502, and the receiving end 503, where the sending end 501 is configured to send a target message to the server 502; the server 502 is configured to store the target message to obtain a target address, where the target address is a storage address of the target message in the server 502; the sending end 501 is configured to receive a target address fed back by the server 502, and send the target address to the receiving end 503 as a message; the receiving end 503 is configured to access the server 502 according to the destination address to obtain the destination message; and displaying the target message. The execution steps among the devices are as follows:
step 510, the sender 501 sends the target message to the server 502.
Step 520, the server 502 stores the target message to obtain the target address.
The target address is the storage address of the target message in the server 502;
in step 530, the sender 501 receives the destination address fed back by the server 502.
In step 540, the sender 501 sends the destination address to the receiver 503 as a message.
In step 550, the receiving end 503 accesses the server 502 according to the destination address to obtain the destination message.
In step 560, the receiving end 503 displays the target message.
In the instant messaging message processing system provided by the embodiment of the present invention, a sending end 501 sends a target message to a server 502; receiving a target address fed back by the server 502, wherein the target address is a storage address of the target message in the server 502; the destination address is sent to the receiving end 503, and the receiving end 503 can obtain the destination message from the server 502 according to the destination address placed by the sending end 501, so as to improve the reliability of destination message transmission. Compared with the current method of directly sending the message content from the sending end 501 to the receiving end 503, the method has poor transmission reliability. In the instant messaging message processing scheme provided by the embodiment of the present invention, after the sending end 501 sends the content of the target message to the server 502, the server 502 stores the target message, and feeds back the target address of the target message stored in the server 502 to the sending end 501. Then, the sending end 501 sends the destination address to the receiving end 503, the data size of the destination address is small, and the destination address has strong network interference resistance, and after receiving the destination address, the receiving end 503 can obtain the destination message by accessing the server 502. And then the sending end 501 sends the target message to the receiving end 503 for many times, so as to improve the utilization rate of the system resources of the sending end 501. Meanwhile, when the receiving end 503 acquires the target message through the server 502, the interference of the network state of the sending end 501 to the transmission of the target message is shielded, and the reliability of the transmission of the target message is further improved.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an instant messaging message processing apparatus according to a sixth embodiment of the present invention, where the apparatus is applied to a sending end, and includes: a destination message sending module 61, a destination address receiving module 62 and a destination address sending module 63. Wherein,
the target message sending module 61 is configured to send a target message to a server;
the target address receiving module 62 is configured to receive a target address fed back by the server, where the target address is a storage address of the target message in the server;
the destination address sending module 63 is configured to send the destination address to the receiving end.
Further, the system further comprises a local storage module, wherein the local storage module is used for:
generating local storage data according to the target message;
storing the local storage data to a local database of the sending end;
and reading local storage data of the target message according to the local database, and outputting a target message object represented by the local storage data.
Furthermore, the local storage data comprises a composite main key and local storage content, and the composite main key is a unique identifier of the local storage content;
accordingly, the local storage module is configured to:
determining a composite primary key according to the identification information of the target message;
generating local storage content according to the content parameter and the transceiving parameter of the target message;
reading local storage content of the target message from a local database according to the composite main key;
and generating a target message object according to the local storage content, and refreshing the local interface to output the target message object.
Further, the system further comprises a first retransmission module, wherein the first retransmission module is configured to:
if the target message fails to be uploaded to the server, displaying a failure message;
and if a retransmission instruction triggered by the user is received, the target message is uploaded again.
Further, the mobile terminal further comprises a second retransmission module, wherein the second retransmission module is configured to:
generating a message according to the target address;
putting the message into a sending queue, and sending the message to a receiving end according to the sending queue;
if the message is successfully sent, displaying a message of successful sending;
if the message is failed to be sent, displaying a failure message, and if a retransmission instruction sent by the user is received, uploading the message again.
In the instant messaging message processing apparatus provided in the embodiment of the present invention, the target message sending module 61 sends the target message to the server; the target address receiving module 62 receives a target address fed back by the server, wherein the target address is a storage address of the target message in the server; the destination address sending module 63 sends the destination address to the receiving end. Compared with the prior art that the sending end directly sends the message content to the receiving end, the transmission reliability is poor. In the instant messaging message processing apparatus provided in the embodiment of the present invention, after the sending end sends the content of the target message to the server, the server stores the target message, and feeds back the target address of the target message stored in the server to the sending end. And then, the sending end sends the target address to the receiving end, the data volume of the target address is small, the target address has strong network interference resistance, and after the receiving end receives the target address, the target message can be obtained by accessing the server. And then the sending end sends the target message to the receiving end many times, improve the utilization ratio of system resources of the sending end. Meanwhile, when the receiving end obtains the target message through the server, the interference of the network state of the sending end to the transmission of the target message is shielded, and the reliability of the transmission of the target message is further improved.
The instant messaging message processing device provided by the embodiment of the invention can execute the instant messaging message processing method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an instant messaging message processing apparatus according to a sixth embodiment of the present invention, where the apparatus is applied to a sending end, and includes: a message receiving module 71, a target message acquiring module 72 and a target message displaying module 73. Wherein:
the message receiving module 71 is configured to receive a message sent by a sending end, where the message includes a target address;
the target message obtaining module 72 is configured to access the server according to a target address carried in the message to obtain a target message;
the target message display module 73 is used for displaying the target message.
The instant messaging message processing device provided by the embodiment of the invention can execute the instant messaging message processing method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
In the instant messaging message processing apparatus according to the embodiment of the present invention, the target message obtaining module 72 may obtain the target message from the server according to the target address placed by the sending end, and the target message displaying module 73 is configured to display the target message, so that the reliability of target message transmission may be improved.
Example eight
Fig. 8 is a schematic structural diagram of an apparatus according to an eighth embodiment of the present invention, as shown in fig. 8, the apparatus includes a processor 80, a memory 81, an input device 82, and an output device 83; the number of the processors 80 in the device may be one or more, and one processor 80 is taken as an example in fig. 8; the processor 80, the memory 81, the input device 82 and the output device 83 in the apparatus may be connected by a bus or other means, and the connection by a bus is exemplified in fig. 8.
The memory 81 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the instant messaging message processing method in the embodiment of the present invention (e.g., the target message sending module 61, the target address receiving module 62, and the target address sending module 63 in the instant messaging message processing apparatus; e.g., the message receiving module 71, the target message acquiring module 72, and the target message displaying module 73 in the instant messaging message processing apparatus). The processor 80 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 81, that is, implements the instant messaging message processing method described above.
The memory 81 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 81 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 81 may further include memory located remotely from processor 80, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 82 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 83 may include a display device such as a display screen.
Example nine
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium, when executed by a processor, implements an instant messaging message processing method, and when the computer-readable storage medium is located at a sending end, the method includes:
sending the target message to a server;
receiving a target address fed back by the server, wherein the target address is a storage address of a target message in the server;
and sending the target address to a receiving end.
Further, before sending the target message to the server, the method further includes:
generating local storage data according to the target message;
storing the local storage data to a local database of the sending end;
and reading local storage data of the target message according to the local database, and outputting a target message object represented by the local storage data.
Furthermore, the local storage data comprises a composite main key and local storage content, and the composite main key is a unique identifier of the local storage content;
correspondingly, the generating of the local storage data according to the target message comprises:
determining a composite primary key according to the identification information of the target message;
generating local storage content according to the content parameter and the transceiving parameter of the target message;
correspondingly, reading the local storage data of the target message according to the local database, and outputting the target message object represented by the local storage data, wherein the steps comprise:
reading local storage content of the target message from a local database according to the composite main key;
and generating a target message object according to the local storage content, and refreshing the local interface to output the target message object.
Further, after sending the target message to the server, the method further includes:
if the target message fails to be uploaded to the server, displaying a failure message;
and if a retransmission instruction triggered by the user is received, the target message is uploaded again.
Further, the sending the destination address to the receiving end includes:
generating a message according to the target address;
putting the message into a sending queue, and sending the message to a receiving end according to the sending queue;
if the message is successfully sent, displaying a message of successful sending;
if the message is failed to be sent, displaying a failure message, and if a retransmission instruction sent by the user is received, uploading the message again.
When the computer-readable storage medium is at a transmitting end, the method comprises:
receiving a message sent by a sending end, wherein the message comprises a target address;
accessing a server according to a target address carried in the message to obtain a target message;
displaying a targeted message
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the instant messaging message processing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. An instant messaging message processing method is applied to a sending end and comprises the following steps:
sending the target message to a server;
receiving a target address fed back by a server, wherein the target address is a storage address of the target message in the server;
and sending the target address to a receiving end.
2. The instant messaging message processing method of claim 1, further comprising, prior to sending the target message to the server:
generating local storage data according to the target message;
storing the local storage data to a local database of a sending end;
and reading local storage data of the target message according to the local database, and outputting a target message object represented by the local storage data.
3. The instant messaging message processing method of claim 2, wherein the locally stored data comprises a composite primary key and locally stored content, the composite primary key being a unique identifier of the locally stored content;
correspondingly, the generating local storage data according to the target message includes:
determining a composite primary key according to the identification information of the target message;
generating local storage content according to the content parameter and the transceiving parameter of the target message;
correspondingly, the reading, according to the local database, the local storage data of the target message, and outputting the target message object represented by the local storage data includes:
reading the local storage content of the target message from the local database according to the composite primary key;
and generating a target message object according to the local storage content, refreshing a local interface and outputting the target message object.
4. The instant messaging message processing method of claim 1, wherein after sending the target message to the server, further comprising:
if the target message fails to be uploaded to the server, displaying a failure message;
and if a retransmission instruction triggered by the user is received, the target message is uploaded again.
5. The instant messaging message processing method of claim 1, wherein sending the destination address to a receiving end comprises:
generating a message according to the target address;
putting the message into a sending queue, and sending the message to the receiving end according to the sending queue;
if the message is successfully sent, displaying a message of successful sending;
if the message is failed to be sent, displaying a failure message, and if a retransmission instruction sent by the user is received, uploading the message again.
6. An instant messaging message processing method is applied to a receiving end and comprises the following steps:
receiving a message sent by a sending end, wherein the message comprises a target address;
accessing a server according to a target address carried in the message to obtain a target message;
and displaying the target message.
7. An instant messaging message processing system, comprising a sending end, a receiving end and a server, wherein:
the sending terminal is used for sending the target message to the server;
the server is used for storing the target message to obtain a target address, and the target address is a storage address of the target message in the server;
the sending end is used for receiving a target address fed back by the server and sending the target address to the receiving end as a message;
the receiving end is used for accessing the server according to the target address to obtain a target message; and displaying the target message.
8. An instant messaging message processing device, applied to a sending end, includes:
the target message sending module is used for sending the target message to the server;
a target address receiving module, configured to receive a target address fed back by a server, where the target address is a storage address of the target message in the server;
and the target address sending module is used for sending the target address to a receiving end.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the instant messaging message processing method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the instant messaging message processing method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910824833.2A CN110430126A (en) | 2019-09-02 | 2019-09-02 | Instant communication message processing method, device, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910824833.2A CN110430126A (en) | 2019-09-02 | 2019-09-02 | Instant communication message processing method, device, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110430126A true CN110430126A (en) | 2019-11-08 |
Family
ID=68418545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910824833.2A Pending CN110430126A (en) | 2019-09-02 | 2019-09-02 | Instant communication message processing method, device, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110430126A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912803A (en) * | 2019-11-14 | 2020-03-24 | 富途网络科技(深圳)有限公司 | IM message transmission method and terminal |
CN111669716A (en) * | 2020-04-30 | 2020-09-15 | 杭州涂鸦信息技术有限公司 | Communication method and communication system of network interphone |
CN113194026A (en) * | 2021-04-20 | 2021-07-30 | 北京异乡旅行网络科技有限公司 | Message processing method and device |
CN114301860A (en) * | 2021-12-20 | 2022-04-08 | 北京达佳互联信息技术有限公司 | Message sending method, device, equipment and storage medium |
CN114404940A (en) * | 2021-12-27 | 2022-04-29 | 北京像素软件科技股份有限公司 | Data processing method, server, system and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516577A (en) * | 2012-06-25 | 2014-01-15 | 北京神州泰岳软件股份有限公司 | Message transmission method in instant messaging system and equipment |
CN108234508A (en) * | 2018-01-16 | 2018-06-29 | 武汉虹旭信息技术有限责任公司 | Movable portable safety pattern information terminal obtains system and method |
-
2019
- 2019-09-02 CN CN201910824833.2A patent/CN110430126A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516577A (en) * | 2012-06-25 | 2014-01-15 | 北京神州泰岳软件股份有限公司 | Message transmission method in instant messaging system and equipment |
CN108234508A (en) * | 2018-01-16 | 2018-06-29 | 武汉虹旭信息技术有限责任公司 | Movable portable safety pattern information terminal obtains system and method |
Non-Patent Citations (1)
Title |
---|
何先军: "《Access 2013从入门到精通》", 30 June 2016, 中国铁道出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912803A (en) * | 2019-11-14 | 2020-03-24 | 富途网络科技(深圳)有限公司 | IM message transmission method and terminal |
CN111669716A (en) * | 2020-04-30 | 2020-09-15 | 杭州涂鸦信息技术有限公司 | Communication method and communication system of network interphone |
CN111669716B (en) * | 2020-04-30 | 2022-04-12 | 杭州涂鸦信息技术有限公司 | Communication method and communication system of network interphone |
CN113194026A (en) * | 2021-04-20 | 2021-07-30 | 北京异乡旅行网络科技有限公司 | Message processing method and device |
CN114301860A (en) * | 2021-12-20 | 2022-04-08 | 北京达佳互联信息技术有限公司 | Message sending method, device, equipment and storage medium |
CN114301860B (en) * | 2021-12-20 | 2023-09-26 | 北京达佳互联信息技术有限公司 | Message sending method, device, equipment and storage medium |
CN114404940A (en) * | 2021-12-27 | 2022-04-29 | 北京像素软件科技股份有限公司 | Data processing method, server, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110430126A (en) | Instant communication message processing method, device, system, equipment and storage medium | |
CN109474688B (en) | Method, device, equipment and medium for sending instant communication network request message | |
US8112548B2 (en) | Method for providing a clip for viewing at a remote device | |
US7831673B1 (en) | Methods and systems for processing offline chat messages | |
US8620353B1 (en) | Automatic sharing and publication of multimedia from a mobile device | |
CN108052474B (en) | Data format conversion method, device, equipment and computer readable storage medium | |
CN108833950B (en) | A method, server, system and storage medium for distributing bullet screen messages | |
EP3211852A1 (en) | Ssh protocol-based session parsing method and system | |
CN113391979A (en) | Processing method, equipment and system for monitoring data display and storage medium | |
CN114039703B (en) | Data transmission method, device, equipment and medium | |
CN107743271B (en) | A barrage processing method, electronic device, and computer-readable storage medium | |
CN107770563A (en) | A kind of barrage message treatment method and device | |
CN112527530B (en) | Message processing method, device, apparatus, storage medium and computer program product | |
CN110311855B (en) | User message processing method and device, electronic equipment and storage medium | |
CN107508747A (en) | Group communication method, server and computer storage medium for converged communication | |
CN105490773A (en) | Method and device for transmitting multimedia data | |
WO2025139315A1 (en) | Transmission anomaly diagnosis method and apparatus, electronic device, and storage medium | |
CN114793232B (en) | Service processing method, device, electronic equipment and storage medium | |
CN113794620B (en) | Message sending method, device, equipment, system and storage medium | |
CN114125017B (en) | Media information display method and device, storage medium and electronic equipment | |
CN113204449B (en) | Session backup method, computer-readable storage medium and terminal device | |
CN114158089A (en) | Audio transmission method, terminal, electronic device and storage medium | |
CN111552907A (en) | Message processing method, device, equipment and storage medium | |
CN103297455B (en) | Connection sharing method between browser and device | |
US11968253B2 (en) | Request delivery device, request delivery method, and request delivery program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20191108 |