CN109347973B - Client instant messaging method and system - Google Patents

Client instant messaging method and system Download PDF

Info

Publication number
CN109347973B
CN109347973B CN201811360903.5A CN201811360903A CN109347973B CN 109347973 B CN109347973 B CN 109347973B CN 201811360903 A CN201811360903 A CN 201811360903A CN 109347973 B CN109347973 B CN 109347973B
Authority
CN
China
Prior art keywords
client
user
message
conversion
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811360903.5A
Other languages
Chinese (zh)
Other versions
CN109347973A (en
Inventor
褚思凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201811360903.5A priority Critical patent/CN109347973B/en
Publication of CN109347973A publication Critical patent/CN109347973A/en
Application granted granted Critical
Publication of CN109347973B publication Critical patent/CN109347973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a client instant messaging method and a client instant messaging system, wherein the method comprises the following steps: when a first user initiates a message to a second user of a second client through a first client, checking whether a local database of the first client contains a session function conversion of the first user and the second user; if yes, directly inserting the conversion into the first message and sending the first message to a second user of a second client; if not, the server is requested to create the conversion, store the conversion in a local database, insert the conversion into the first message and send the first message to the second user of the second client; after receiving the conversion, the second client analyzes the content of the conversion; and the second client performs corresponding interface display and logic processing according to the analyzed content.

Description

Client instant messaging method and system
Technical Field
The present invention relates to client instant messaging technologies, and in particular, to a client instant messaging method and system.
Background
The instant communication process in the prior art is that a client initiating a message first checks whether a local session function conversion exists, and if not, the client creates the conversion; the message receiver needs to determine whether the message receiver has the conversion of the message according to the received message, and if not, the message receiver needs to pull the message to the server, so that a plurality of complex operations of the client side are caused.
Disclosure of Invention
The present invention is directed to solving the above-mentioned problems in the instant messaging process of the prior art.
In order to achieve the above object, in one aspect, the present invention provides a client instant messaging method, including the following steps:
when a first user initiates a message to a second user of a second client through a first client, checking whether a local database of the first client contains a session function conversion of the first user and the second user; if yes, directly inserting the conversion into the first message and sending the first message to a second user of the second client; if not, requesting the server to create the conversion, storing the conversion into a local database, inserting the conversion into a first message, and sending the conversion to a second user of the second client; after the second client receives the conversion, analyzing the content of the second client; and the second client performs corresponding interface display and logic processing according to the analyzed content.
The conversation represents a session between two users, and the content includes: one or more of session identification, identification of users of both communication parties, anonymous identification, addresses of head portraits of both communication parties, anonymous name displayed and data related to both users.
In another aspect, the present invention provides a client instant messaging system, which includes a first client, a second client and a server; when a first user initiates a message to a second user of a second client through a first client, the first client firstly checks whether a local database of the first client has a session function conversion containing the first user and the second user; if yes, directly inserting the conversion into the first message and sending the first message to a second user of the second client; if not, the request server creates the conversion, stores the conversion into a local database, inserts the conversion into a first message and sends the first message to a second user of the second client; after the second client receives the conversion, analyzing the content of the second client; and the second client performs corresponding interface display and logic processing according to the analyzed content.
The invention can more flexibly realize the creation of anonymous/non-anonymous message in instant communication and reduce the logic service of clients.
Drawings
Fig. 1 is a schematic flow chart of a client instant messaging method according to an embodiment of the present invention;
fig. 2 is an application scenario diagram of an instant messaging system of a client according to an embodiment of the present invention;
fig. 3 is a schematic view of an application scenario of the client instant messaging system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of an instant messaging method for a client according to an embodiment of the present invention. As shown in fig. 1 and 2, the method includes steps S101-S103:
step S101, when a first user initiates a message to a second user of a second client through a first client, first checking whether a local database of the first client contains a session function conversion of the first user and the second user.
Specifically, the message is sent based on the conversion, which includes the content that needs to be added, such as the avatar, nickname, communication id, and anonymity of both parties of the session. Assuming that a first user wants to chat with a second user, the first user can initiate the chat with a first user identity A or An anonymous identity An, and only the identity of whether the conversation is anonymous needs to be modified, and then the conversation is sent to the other party along with the message.
The conversation represents a conversation between two users, and the content includes a conversation identification covs _ id, an identification uid of users of both communication parties, an anonymous identification tox, namely the uid of an anonymous receiving party, head portrait addresses of both communication parties, an anonymous name displayed and the like, and data related to the users of both parties. The session is determined by the identity covs _ id of the session, and simultaneously, the identity uid of the users of both communication parties and the anonymous identity tox of the user can be uniquely determined by the three, and if both communication parties are real-name communication, the value of the tox is null. Sessions between two other users may exist in only three types, namely, real-name communications between a first user and a second user, anonymous communications of the first user to the second user, and anonymous communications of the second user to the first user.
Step S102, if the local database storage of the first client contains the session function conversion of the first user and the second user, directly inserting the conversion into the first message and sending the first message to the second user of the second client; if the local database of the first client does not store the session function conversion of the first user and the second user, requesting the server to create the conversion, store the conversion in the local database, insert the conversion into a first message, and send the conversion to the second user of the second client;
specifically, if the local database storage of the first client includes the session function conversion of the first user and the second user, a message body msg is constructed according to the conversion to send the message. The msg structure is responsible for messages sent each time, and the content of the messages comprises a sending party uid and a receiving party tox, a message type msgType and a message content msgCon. If the sent message is a picture, a file grid or the like, the img, the file or the like type is set for the value of msgType, the file is uploaded to a server, and after a storage path of the file at the cloud is obtained, the value of the file is set to msgCon; the msg is sent to the server, and the server issues the msg according to the uid of the receiver; and after receiving the msg, a receiver determines the real meaning of the msgCon value according to the type of the msgType, such as downloading files and pictures or directly displaying texts.
Step S102, after the second client receives the conversion, the content of the second client is analyzed; and the second client performs corresponding interface display and logic processing according to the analyzed content.
Specifically, after receiving the conversion attached to the first message, the second client analyzes the content of the first message, obtains fields required by the avatar, the nickname, the anonymous information and the like, and performs corresponding interface display and logic processing according to the contents of the fields. The second client also caches the conversation after it has received it, and if it is a non-anonymous session, it can reuse this conversation when the second client initiates a message.
In one embodiment, if a now has a to initiate a real-name communication to B, at the client, a selects B from the buddy list and defaults to a real-name communication; at this time, a checks whether there is real name message session conversion with B in the local database, if yes, constructs message body msg according to conversion for message transmission, if no, sends both uid and tox to the server for inquiry by the server or generates conversion (which is also stored in the server), then returns the conversion to the requesting client a, which stores it locally. And after receiving the msg, the message receiving end B queries whether the local real name session conversion of the two parties exists or not according to the uid and the tox of the two parties, if so, displays the head image, the nickname and the like of the opposite party according to the information of the two communicating parties in the conversion, if not, queries the local user list according to the uid of the opposite party to find the information of the A, simultaneously sends the uid and the tox of the two parties to a server to query the real name session conversion of the A and the B, returns the information to the B after finding, and stores the conversion at the client of the B user. Of course, the user can click on the user icon from the chat interface to view the details of the user, because there is logically a conversion and various information of both parties in the conversion.
Accordingly, the embodiment of the present invention further provides various application scenarios of the client instant messaging system, as shown in fig. 3. The client instant messaging system comprises a first client, a second client and a server; when a first user initiates a message to a second user of a second client through a first client, the first client firstly checks whether a local database of the first client has a session function conversion containing the first user and the second user; if yes, directly inserting the conversion into the first message and sending the first message to a second user of the second client; if not, the request server creates the conversion, stores the conversion into a local database, inserts the conversion into a first message and sends the first message to a second user of the second client; after the second client receives the conversion, analyzing the content of the second client; and the second client performs corresponding interface display and logic processing according to the analyzed content.
The embodiment of the invention can more flexibly realize the creation of anonymous/non-anonymous messages in instant messaging and reduce the logic service of clients.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

1. A client instant messaging method is characterized by comprising the following steps:
when a first user initiates a message to a second user of a second client through a first client, checking whether a local database of the first client contains a session function conversion of the first user and the second user; the conversion at least comprises the following steps: conversation identification, identification used by both communication parties, anonymous identification, head portrait addresses of both communication parties and displayed anonymous scale;
based on the fact that session functions including the first user and the second user exist in a local database of the first client, directly inserting the session functions into a first message and sending the first message and the second message to a second user of the second client;
based on the fact that session functions including the first user and the second user do not exist in the local database of the first client, sending identification information of the first user and the second user to a server, requesting the server to create the conversion, and storing the conversion into the database of the server and the database of the first client;
constructing a message body msg according to the conversion, wherein the message body msg at least comprises: identification, anonymous identification, message type and message content of the sender and the receiver;
carrying out first message sending through a message body msg, inserting the conversion into the first message, and sending the first message and the conversion to a second user of the second client; after the second client receives the conversion, analyzing the content of the second client; and the second client performs corresponding interface display and logic processing according to the analyzed content.
2. The method of claim 1, wherein the conversation represents a session between two users, and wherein the content comprises: one or more of session identification, identification of users of both communication parties, anonymous identification, addresses of head portraits of both communication parties, anonymous name displayed and data related to both users.
3. The method of claim 1, wherein the first user can initiate a chat with the first user identity or initiate a chat with an anonymous identity; and modifying the identifier of whether the conversation is anonymous, inserting the modified conversation into the first message, and sending the modified conversation to the second user of the second client.
4. A client instant messaging system is characterized by comprising a first client, a second client and a server;
when a first user initiates a message to a second user of a second client through a first client, the first client firstly checks whether a local database of the first client has a session function conversion containing the first user and the second user; the conversion at least comprises the following steps: conversation identification, identification used by both communication parties, anonymous identification, head portrait addresses of both communication parties and displayed anonymous scale;
based on the fact that session functions including the first user and the second user exist in a local database of the first client, directly inserting the session functions into a first message and sending the first message and the second message to a second user of the second client;
based on the fact that session functions including the first user and the second user do not exist in the local database of the first client, sending identification information of the first user and the second user to a server, requesting the server to create the conversion, and storing the conversion into the database of the server and the database of the first client;
constructing a message body msg according to the conversion, wherein the message body msg at least comprises: identification, anonymous identification, message type and message content of the sender and the receiver;
carrying out first message sending through a message body msg, inserting the conversion into the first message, and sending the first message and the conversion to a second user of the second client; after the second client receives the conversion, analyzing the content of the second client; and the second client performs corresponding interface display and logic processing according to the analyzed content.
5. The system of claim 4, wherein the conversation represents a session between two users, and wherein the content comprises: one or more of session identification, identification of users of both communication parties, anonymous identification, addresses of head portraits of both communication parties, anonymous name displayed and data related to both users.
6. The system of claim 4, wherein the first user can initiate a chat with the first user identity or initiate a chat with an anonymous identity; and modifying the identifier of whether the conversation is anonymous, inserting the modified conversation into the first message, and sending the modified conversation to the second user of the second client.
CN201811360903.5A 2018-11-15 2018-11-15 Client instant messaging method and system Active CN109347973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360903.5A CN109347973B (en) 2018-11-15 2018-11-15 Client instant messaging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360903.5A CN109347973B (en) 2018-11-15 2018-11-15 Client instant messaging method and system

Publications (2)

Publication Number Publication Date
CN109347973A CN109347973A (en) 2019-02-15
CN109347973B true CN109347973B (en) 2022-04-26

Family

ID=65315772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360903.5A Active CN109347973B (en) 2018-11-15 2018-11-15 Client instant messaging method and system

Country Status (1)

Country Link
CN (1) CN109347973B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616091A (en) * 2009-07-23 2009-12-30 杭州华三通信技术有限公司 Realize the method and the LSR of the quick heavy-route of Label Distribution Protocol
CN102130846A (en) * 2010-08-30 2011-07-20 华为技术有限公司 Methods, devices and systems for transmitting and receiving instant message
CN103825969A (en) * 2013-10-29 2014-05-28 电子科技大学 DNS query method based on anonymous network
CN104348707A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method, device and system for searching conversation message
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9544271B2 (en) * 2011-09-16 2017-01-10 Telecommunication Systems, Inc. Anonymous messaging conversation
CN104734941A (en) * 2014-12-05 2015-06-24 北京晶乐互动科技有限公司 Instant communication system and method based on autonym/anonymity switching
US10079807B2 (en) * 2016-02-09 2018-09-18 Ca, Inc. Anonymous messaging in an instant message group conversation
CN105681173A (en) * 2016-03-14 2016-06-15 华为软件技术有限公司 Creation method, device and system of conversation in instant communication
CN105933202A (en) * 2016-04-13 2016-09-07 郑州悉知信息科技股份有限公司 Message processing method and device
US10320856B2 (en) * 2016-10-06 2019-06-11 Cisco Technology, Inc. Managing access to communication sessions with communication identifiers of users and using chat applications
CN107659492A (en) * 2017-10-31 2018-02-02 珠海信达九州科技有限公司 A kind of high reliability instant communicating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616091A (en) * 2009-07-23 2009-12-30 杭州华三通信技术有限公司 Realize the method and the LSR of the quick heavy-route of Label Distribution Protocol
CN102130846A (en) * 2010-08-30 2011-07-20 华为技术有限公司 Methods, devices and systems for transmitting and receiving instant message
CN104348707A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method, device and system for searching conversation message
CN103825969A (en) * 2013-10-29 2014-05-28 电子科技大学 DNS query method based on anonymous network
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system

Also Published As

Publication number Publication date
CN109347973A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US8769418B2 (en) Enhanced message handling
US20160149839A1 (en) Multi-Network Chat System
CN108476165B (en) Information interaction method, client and device
US11012527B2 (en) Managing multiple profiles for a single account in an asynchronous messaging system
KR100966959B1 (en) Retrieval of offline instant messages
US7831673B1 (en) Methods and systems for processing offline chat messages
CN100583839C (en) Method and system for implementing multi-identity immediate message communication and present service of single account number
EP1560363A1 (en) Instant message mass update generated from website
KR101544518B1 (en) Method, device and system for sharing microblog message
CN102138156A (en) Persisting a group in an instant messaging application
US20140372330A1 (en) Social network user information association method and device
US10587540B2 (en) Group messaging
CN102143093A (en) Instant messaging method, device and system
US10326714B2 (en) Instant messaging with non subscriber users
US20110307565A1 (en) Group messaging integration system, method and apparatus
EP2560329B1 (en) Method and processing system for routing a message request
KR100779012B1 (en) System and method for communicating between different messengers
WO2017004593A1 (en) Information sharing control
TW200924459A (en) Instant message exchanging method and system for capturing keyword and display associated information in instant messaging service
US20160373534A1 (en) User network system with selective user facet connections
CN109347973B (en) Client instant messaging method and system
US20160275301A1 (en) Information sharing control
KR101872551B1 (en) Method and system for providing an enhanced event notification in an universal plug and play home network environment
WO2021112807A1 (en) A system for using augmented reality in messaging applications
EP2294780B1 (en) A method for masking data

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
GR01 Patent grant
GR01 Patent grant