CN109347973A - A kind of client instant communication method and system - Google Patents

A kind of client instant communication method and system Download PDF

Info

Publication number
CN109347973A
CN109347973A CN201811360903.5A CN201811360903A CN109347973A CN 109347973 A CN109347973 A CN 109347973A CN 201811360903 A CN201811360903 A CN 201811360903A CN 109347973 A CN109347973 A CN 109347973A
Authority
CN
China
Prior art keywords
client
user
conversation
message
content
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.)
Granted
Application number
CN201811360903.5A
Other languages
Chinese (zh)
Other versions
CN109347973B (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

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]

Abstract

The present invention relates to a kind of client instant communication method and systems, wherein, for method the following steps are included: when the first user initiates message to the second user of the second client by the first client, first checking that the local data base of the first client whether there is includes the session function conversation of the first user and second user;If so, conversation to be then directly inserted into the second user for sending jointly to the second client in first message;If it is not, request server-side creates conversation, and it is stored to local data base, and conversation is inserted into the second user that the second client is sent jointly in first message;After the second client receives conversation, its content is parsed;Second client makes corresponding interface display and logical process according to the content after parsing.

Description

A kind of client instant communication method and system
Technical field
The present invention relates to client instant messaging technology more particularly to a kind of client instant communication method and systems.
Background technique
The instant messaging process of the prior art be initiate message client first go check local session function Conversation whether there is, if there is no then going to create this conversation;And message receiver needs basis to connect The message received goes to judge whether oneself has had the conversation of this message, and server pull is removed if not, It will cause many cumbersome and complicated operations of client in this way.
Summary of the invention
It is an object of the present invention to solve the above problem existing for the instant messaging in the process of the prior art.
To achieve the above object, on the one hand, the present invention provides a kind of client instant communication method, this method include with Lower step:
When the first user initiates message to the second user of the second client by the first client, the first visitor is first checked The local data base at family end is with the presence or absence of the session function for including first user and the second user conversation;Described is sent jointly to if so, then directly the conversation is inserted into first article of message The second user of two clients;If it is not, request server-side creates the conversation, and it is stored to this Ground database, and the conversation is inserted into first message and sends jointly to the second of second client User;After second client receives the conversation, its content is parsed;Second client Corresponding interface display and logical process are made according to the content after parsing.
Conversation represents the session between two users, and content includes: the mark of session identification, communicating pair user One of knowledge, anonymous identification, communicating pair head portrait address, the anonymous title of displaying and the relevant data of two parties are more Kind.
On the other hand, the present invention provides a kind of client instant communicating system, which includes the first client, second Client and server-side;When the first user initiates message to the second user of the second client by the first client, first It includes first user and the second user that client, which first checks that the local data base of the first client whether there is, Session function conversation;It is sent together if so, then directly the conversation is inserted into first message To the second user of second client;If it is not, request server creates the conversation, and by its Local data base is stored, and the conversation is inserted into first message and sends jointly to second client The second user at end;After second client receives the conversation, its content is parsed;Described Two clients make corresponding interface display and logical process according to the content after parsing.
The present invention more can flexibly realize the creation of anonymous/non-anonymous message in instant messaging, reduce patrolling for client The business of collecting.
Detailed description of the invention
Fig. 1 is a kind of client instant communication method flow diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of client instant communicating system application scenario diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of client instant communicating system application scenarios schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of client instant communication method flow diagram provided in an embodiment of the present invention.Such as Fig. 1 and Fig. 2 institute Show, the method comprising the steps of S101-S103:
Step S101, when the first user initiates message to the second user of the second client by the first client, first Checking the local data base of the first client whether there is includes the session function of first user and the second user conversation。
Specifically, the transmission of message be the head portrait for having session both sides based on conversation in conversation, The pet name, communication id, whether anonymity etc. needs additional content.Assuming that the first user will chat with second user, it can be with It initiates to chat with the first user identity A, can also initiate to chat with anonymous Identity An, it is only necessary to which modifying in conversation is The mark of no anonymity, is then sent to other side with message together for conversation.
Conversation represents the session between two users, and content includes session identification covs_id, communicating pair The uid of the namely anonymous recipient of mark uid, anonymous identification tox- of user, communicating pair head portrait address, displaying anonymous name The data relevant with two parties such as title.Session is determined by the mark covs_id of oneself while can also be by communicating pair user Mark uid and to whose anonymous identification tox, three uniquely determines, if both sides be real name communication if tox value be null.Separately Session between outer two users can only exist with three types, be exactly the real name communication between the first user and second user, First user is to the anonymous communication of second user and second user to the anonymous communication of the first user.
Step S102, if the local data base storage of the first client includes that first user and described second are used The conversation, then be directly inserted into first message and send jointly to institute by the session function conversation at family State the second user of the second client;If the local data base of the first client does not store first user and described The session function conversation of two users then requests server-side to create the conversation, and is stored to Local data base, and the conversation is inserted into and sends jointly to the of second client in first article of message Two users;
Specifically, if the local data base storage of the first client includes first user and the second user Session function conversation, then according to conversion construct message body msg carry out message transmission.Msg structural body is negative The message sent every time is blamed, content includes sender and recipient uid, tox, type of message msgType, message content msgCon.If the message sent is picture or tray etc., the classes such as img or file are carried out to the value of msgType The setting of type, and file is uploaded onto the server, after getting the store path of file beyond the clouds, by its value be arranged to msgCon;Msg is sent to server, and server carries out issuing for this msg according to recipient uid;After recipient receives msg The true meaning of msgCon value is determined according to the type of msgType, for example, downloading file, picture still directly display text.
Step S102 parses its content after the second client receives conversation;Second visitor Family end corresponding interface display and logical process are made according to the content after parsing.
Specifically, its content is parsed after the second client receives conversation subsidiary in first message, obtained Field needed for head portrait, the pet name, anonymous information etc. makes corresponding interface display and logical process according to these field contents.The Two clients also cache after receiving conversation, if it is non-anonymous session, then as the second visitor It initiates that this conversation can be reused when message in family.
In one embodiment, if to initiate B the communication of real name now with A, in client, A is from buddy list Middle selection B, and defaulting is real name communication;A is first in local data base inspection either with or without the real name message session with B at this time Conversation carries out message transmission if there is then constructing message body msg according to conversion, by both sides if not Uid and tox is sent to server-side, and by server-side inquiry or generation conversion, (this conversion can also be deposited in server-side Storage), then this conversion is returned to the customer end A of request, customer end A is stored to local again.In message sink It can be according to the local real name session conversion either with or without both sides of both sides uid and tox inquiry, if looked for after holding B, B to receive msg It arrives, then head portrait, the pet name etc. of other side is shown according to the information of communication two party in conversion, if it does not exist, then according to right The information of A is found in uid inquiry local user's list of side, while sending the real name of both sides uid and tox to server inquiry A and B Session conversion returns to B, and stores this conversion in the client of party B-subscriber after finding.It can certainly be from Chat interface clicks user's head portrait and checks user's details, because being there are a conversion in logic at this time, the inside has The various information of communicating pair.
Correspondingly, the embodiment of the invention also provides a kind client instant communicating system application scenarios schematic diagrams, such as Shown in Fig. 3.Client instant communicating system, including the first client, the second client and server-side;When the first user passes through the When one client initiates message to the second user of the second client, the first client first checks the local data of the first client Library is with the presence or absence of the session function conversation for including first user and the second user;If so, then straight Connect the second user that the conversation is inserted into and sends jointly to second client in first message;If not yet Have, then request server creates the conversation, and is stored to local data base, and will be described Conversation is inserted into the second user that second client is sent jointly in first message;As second client After termination receives the conversation, its content is parsed;Second client is made according to the content after parsing Corresponding interface display and logical process out.
The embodiment of the present invention more can flexibly realize the creation of anonymous/non-anonymous message in instant messaging, reduce visitor The logic business at family.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (6)

1. a kind of client instant communication method, which comprises the following steps:
When the first user initiates message to the second user of the second client by the first client, the first client is first checked Local data base whether there is include first user and the second user session function conversation;Such as Fruit has, then the conversation is directly inserted into the second use that second client is sent jointly in first message Family;If it is not, request server-side creates the conversation, and it is stored to local data base, and will The conversation is inserted into the second user that second client is sent jointly in first message;When described second After client receives the conversation, its content is parsed;Second client is according in after parsing Appearance makes corresponding interface display and logical process.
2. the method according to claim 1, wherein the conversation represents the meeting between two users Words, content include: session identification, the mark of communicating pair user, anonymous identification, communicating pair head portrait address, displaying anonymity One of title and the relevant data of two parties are a variety of.
3. the method according to claim 1, wherein the first user can use the first user identity initiate chat, It can also initiate to chat with anonymous Identity;By modification conversation in whether Ni Ming mark, then will be modified Conversation is inserted into the second user that second client is sent jointly in first message.
4. a kind of client instant communicating system, which is characterized in that including the first client, the second client and server-side;When When first user initiates message to the second user of the second client by the first client, the first client first checks the first visitor The local data base at family end is with the presence or absence of the session function for including first user and the second user conversation;Described is sent jointly to if so, then directly the conversation is inserted into first article of message The second user of two clients;If it is not, request server creates the conversation, and it is stored to this Ground database, and the conversation is inserted into first message and sends jointly to the second of second client User;After second client receives the conversation, its content is parsed;Second client Corresponding interface display and logical process are made according to the content after parsing.
5. system according to claim 4, which is characterized in that the conversation represents the meeting between two users Words, content include: session identification, the mark of communicating pair user, anonymous identification, communicating pair head portrait address, displaying anonymity One of title and the relevant data of two parties are a variety of.
6. system according to claim 4, which is characterized in that the first user can initiate to chat with the first user identity, It can also initiate to chat with anonymous Identity;By modification conversation in whether Ni Ming mark, then will be modified Conversation is inserted into the second user that second client is sent jointly in first message.
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 true CN109347973A (en) 2019-02-15
CN109347973B 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 (12)

* 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
US20130070672A1 (en) * 2011-09-16 2013-03-21 Keith McFarland Anonymous Messaging Conversation
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
CN104734941A (en) * 2014-12-05 2015-06-24 北京晶乐互动科技有限公司 Instant communication system and method based on autonym/anonymity switching
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
US20170230313A1 (en) * 2016-02-09 2017-08-10 Ca, Inc. Anonymous messaging in an instant message group conversation
CN107659492A (en) * 2017-10-31 2018-02-02 珠海信达九州科技有限公司 A kind of high reliability instant communicating system
US20180103073A1 (en) * 2016-10-06 2018-04-12 Cisco Technology, Inc. Managing access to communication sessions with communication identifiers of users and using chat applications
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system

Patent Citations (12)

* 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
US20130070672A1 (en) * 2011-09-16 2013-03-21 Keith McFarland Anonymous Messaging Conversation
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
CN104734941A (en) * 2014-12-05 2015-06-24 北京晶乐互动科技有限公司 Instant communication system and method based on autonym/anonymity switching
US20170230313A1 (en) * 2016-02-09 2017-08-10 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
US20180103073A1 (en) * 2016-10-06 2018-04-12 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
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘洁: "IMS即时消息实现技术", 《电信科学》 *

Also Published As

Publication number Publication date
CN109347973B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
US9258259B2 (en) Retrieval of offline instant messages
US8769418B2 (en) Enhanced message handling
US20160149839A1 (en) Multi-Network Chat System
US11012527B2 (en) Managing multiple profiles for a single account in an asynchronous messaging system
WO2017128178A1 (en) Information interaction method, client and device
IL180566A (en) Electronic messaging system and method
CN105207886B (en) Transmission, display methods and the transmission of instant communication message, display device and system
US10200338B2 (en) Integrating communication modes in persistent conversations
US10587540B2 (en) Group messaging
CN102143093A (en) Instant messaging method, device and system
EP2560329B1 (en) Method and processing system for routing a message request
US20110307565A1 (en) Group messaging integration system, method and apparatus
CN106789566A (en) Different IM application messages sharing methods and system based on mobile phone operating system
US7853659B2 (en) Method for presenting personalized, voice printed messages from online digital devices to hosted services
CN109347973A (en) A kind of client instant communication method and system
US20190342248A1 (en) Creating and updating digital notes via electronic messages
CN116248535A (en) Context display method, computer device and computer readable medium for communication
JPH04369054A (en) Mail management system

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