CN106453067A - Method and system for displaying friend login states in instant messaging tool - Google Patents

Method and system for displaying friend login states in instant messaging tool Download PDF

Info

Publication number
CN106453067A
CN106453067A CN201611136006.7A CN201611136006A CN106453067A CN 106453067 A CN106453067 A CN 106453067A CN 201611136006 A CN201611136006 A CN 201611136006A CN 106453067 A CN106453067 A CN 106453067A
Authority
CN
China
Prior art keywords
user
instant messaging
buddy
friends
messaging server
Prior art date
Application number
CN201611136006.7A
Other languages
Chinese (zh)
Inventor
廖冬生
Original Assignee
Tcl集团股份有限公司
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 Tcl集团股份有限公司 filed Critical Tcl集团股份有限公司
Priority to CN201611136006.7A priority Critical patent/CN106453067A/en
Publication of CN106453067A publication Critical patent/CN106453067A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] use or manipulation of presence information in messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/24Presence management

Abstract

The invention provides a method and system for displaying friend login states in an instant messaging tool. The method comprises the steps that when a user logs in a client of the instant messaging tool, an instant messaging server in which the user is located returns a friend list of the user to the client of the user for display according to the login account number of the user, wherein the login states of the friends in the friend list are displayed as default states; the instant messaging server in which the user is located searches the instant messaging servers in which the friends are located according to the friend list and obtains the current login states of the friends through the instant messaging servers in which the friends are located; and the instant messaging server in which the user is located returns the current login states of the friends to the client of the user, and the client of the user updates the login states of the friends displayed in the friend list according to the current login states of the friends. According to the method and the system, the user can obtain the login states of the friends timely, the memory occupation of the instant messaging server can be reduced, and the operation pressure is mitigated.

Description

一种在即时通讯工具中显示好友登录状态的方法及系统 A display method and system logged friends in instant messaging tool

技术领域 FIELD

[0001] 本发明属于通信技术领域,尤其涉及一种在即时通讯工具中显示好友登录状态的方法及系统。 [0001] The present invention belongs to the field of communication technologies, particularly to a method of displaying buddy logged-in instant messaging systems and tools.

背景技术 Background technique

[0002] 在即时通讯系统中,每个用户上线时都需要获取自身好友的登录状态。 [0002] In the instant messaging system, each user will need to get their friends to log on the state line. 登录状态一般包括好友的在线状态和登录资源,其中登录资源是指好友使用何种终端来登录即时通讯服务器,如:手机、电脑或者web页面等。 Log in state typically includes your friends' online status and login resources, log on resources refers to what terminal to log instant messaging server friends use, such as: cell phones, computers or web pages and so on. 通过在用户的客户端显示好友的登录状态,可以提供更好的用户体验。 By displaying friends logged in user's client, you can provide a better user experience.

[0003] 为了实现这个功能,在用户量级别不同时面临的技术难度是不同的。 [0003] In order to achieve this, the technical difficulty is not the same level of users face is different. 例如:在系统总用户数不是很多的时候,所有的数据包括用户登录状态信息都放在一台关系型数据库中就可以了,这样直接用一次SQL查询就可以查询到某一用户所有好友的登录状态。 For example: the total number of users the system is not a lot of time, all the data including user logon status information in a relational database on it, so the direct use of a SQL query can query all your friends to a user's login status. 但是当用户数量达到上亿级时,如QQ,如果继续将用户的登录状态信息保存在关系型数据库中,由于用户上下线都需要访问数据库来更新登录状态,而用户的登录状态是经常变化的,尤其是在移动互联网中,用户上下线更为频繁,由此会给数据库带来极大的压力,可能把数据库压垮,导致整个系统栗机。 But when the number of users reached the one hundred million, such as QQ, if it continues to be the user's login state information is stored in a relational database, due to off the assembly line will need to access the database on the user to update the registration status and the user's login status is constantly changing , especially in mobile Internet, the user is offline more frequently, which will bring great pressure on the database, the database might overwhelm, the entire system chestnut.

[0004] 针对上述情况,现有技术中提出了另一种方案是实时地在即时通讯服务器的内存里给每一个用户维护一个好友列表,在好友列表中实时地更新各好友的登录状态,这样虽然可以做到用户客户端一请求好友列表数据,就能马上返回结果,无需查询数据库,但是这种方案占用很大的内存量,并且用户在上线或下线时,有多少个好友内存就要进行多少次更新,好友数越多更新的次数也就越多,这样假如有十万个用户同时登录,每个用户有200个好友,那内存将面临着2000万次的更新,并且好友的登录可能分布于不同的即时通讯服务器,这样还面临着跨服务器更新内存,仍然会给整个系统带来很大压力。 [0004] For the above, the prior art proposed an alternative scheme is in real-time to each user to maintain a buddy list in instant messaging server's memory, updated each logged friends in real-time buddy list, so Although users can do a client requests a buddy list data, will be able to immediately return the results, without having to query the database, but such programs occupy a large amount of memory, and the user while online or offline, how many friends would memory how many times updated, the more the number of friends of the more updated, so if there are thousands of users simultaneously log in, each user has 200 friends, that memory will be faced with 20 million updates, and friends Login may be distributed to different instant messaging server, this update also face cross-server memory, the system will still bring a lot of pressure.

发明内容 SUMMARY

[0005] 本发明实施例的目的在于提供一种在即时通讯工具中显示好友登录状态的方法及系统,旨在解决现有显示好友登录状态的方式存在的需要在内存中实时维护好友的登录状态,会占用很大的内存量,并且当用户数量较多时,仍然会给整个系统带来很大压力的问题。 [0005] The object of embodiments of the present invention to provide a method and system for displaying buddy logged in the instant messaging tools, to solve problems of the prior login status display buddy logged requires real-time manner friends maintained in memory , it will take up a large amount of memory, and when a large number of users, the problem would still bring a lot of pressure throughout the system.

[0006] 本发明实施例是这样实现的,一种在即时通讯工具中显示好友登录状态的方法,包括: [0006] Example embodiments of the present invention is implemented, a method of displaying buddy logged in the instant messaging tool, comprising:

[0007] 当用户登录所述即时通讯工具的客户端时,用户所在的即时通讯服务器根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态; [0007] When a user logs in the instant messaging client, instant messaging server user is returned according to the user's login account of the user's buddy list to the user's client device for displaying the buddy list of friends Log status are displayed by default;

[0008] 所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态; [0008] The instant messaging server based on the user's buddy list inquiry instant messaging server where your friends are, and to get the buddy current login status of the instant messaging server where your friends are;

[0009] 所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 [0009] The instant messaging server of the user's buddy current login status of the user is returned to the client, the client user updates the display of the buddy list based on the buddy current login status friends of the login status.

[0010] 本发明实施例的另一目的在于提供一种在即时通讯工具中显示好友登录状态的系统,其中,所述系统位于用户所在的即时通讯服务器中,所述系统包括: [0010] Another object of an embodiment of the present invention to provide a display system buddy logged-in chat tool, wherein the system is located in user's instant messaging server, the system comprising:

[0011] 好友列表获取单元,用于当用户登录所述即时通讯工具的客户端时,根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态; [0011] The buddy list acquisition unit configured to, when the user logs in the instant messaging client, displayed according to the user's login account to the user's buddy list is returned to the client user, the buddy list of friends the login status are displayed by default;

[0012] 好友登录状态获取单元,用于根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态; [0012] Friend logged acquisition unit configured to query a list of the instant messaging server where your friends are, according to the friend, and the friend get through the current login status of the instant messaging server where your friends are;

[0013] 好友登录状态更新单元,用于将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 [0013] buddies logged status updating unit, for the buddy current login status of the user is returned to the client, the client user updates the display of the buddy list based on the buddy current login status friends of the login status.

[0014] 实施本发明实施例提供的一种在即时通讯工具中显示好友登录状态的方法及系统具有以下有益效果: [0014] The present invention provides a display according to an embodiment of the instant messenger buddy status and system log method has the following advantages:

[0015] 本发明实施例通过当用户登录所述即时通讯工具的客户端时,用户所在的即时通讯服务器根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态;所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态;所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态,从而无需在即时通讯服务器的内存中实时维护好友的登录状态即可使用户在登录时及时获取并显示好友的登录状态,大大减少了内存的占用量,并且无需频繁的更新即时通讯服务器的内存,减轻了整个即 Embodiment [0015] embodiment of the present invention, when the end user is in the instant messaging server when the client returns through the instant messaging user logs in the user's login account to the user's buddy list of the user client for display, the buddy list of friends login status are displayed by default; instant messaging server queries the user's list of friends instant messaging server is located, according to the friend, and the friend get through the current instant messaging server resides friends login status; instant messaging server of the user's friends to the current login status of the user is returned to the client, the client user updates the display of the buddy list based on the buddy current login status friends of the login status, eliminating the need to maintain real-time friends logged in memory instant messaging server so that users can promptly obtain and show your friends when you log in login status, greatly reducing the memory footprint and does not require frequent updates instant messaging server memory, reducing the whole that is 通讯系统的运行压力。 Operating pressure communication system.

附图说明 BRIEF DESCRIPTION

[0016]图1是本发明实施例提供的一种在即时通讯工具中显示好友登录状态的方法的示意流程图; [0016] FIG. 1 is an embodiment of the present invention is provided in a schematic flowchart of a method buddy login state is displayed in chat tools;

[0017]图2是本发明另一实施例提供的一种在即时通讯工具中显示好友登录状态的方法的示意流程图; [0017] FIG 2 is an embodiment of the present invention is provided in a further embodiment of a schematic flowchart of a method buddy login state is displayed in chat tools;

[0018]图3是本发明实施例提供的一种在即时通讯工具中显示好友登录状态的系统的示意性框图; [0018] FIG. 3 is an embodiment of the present invention is provided in a schematic block diagram of a buddy system login state is displayed in the IM tool;

[0019]图4是本发明实施例提供的一种在即时通讯工具中显示好友登录状态的系统中好友登录状态获取单元的示意性框图; [0019] FIG. 4 is an embodiment of the present invention to provide a display system login state friends of friends logged schematic block diagram of unit acquires the IM tool;

[0020]图5是本发明另一实施例提供的一种在即时通讯工具中显示好友登录状态的系统的示意性框图。 [0020] FIG. 5 is an embodiment of the present invention is provided in a further embodiment of a schematic block diagram of a buddy system login state is displayed in chat tools.

具体实施方式 Detailed ways

[0021] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 [0021] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0022]图1是本发明实施例提供的一种在即时通讯工具中显示好友登录状态的方法的示意流程图。 [0022] FIG. 1 is an embodiment of the present invention is provided in a schematic flowchart of a method buddy login state is displayed in chat tools. 参见图1所示,本实施例提供的一种在即时通讯工具中显示好友登录状态的方法,包括: Referring to the method shown in FIG. A method according to this embodiment displays a buddy logged in the chat tool, comprising:

[0023] 在SlOl中,当用户登录所述即时通讯工具的客户端时,用户所在的即时通讯服务器根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态。 [0023] In SlOl, when a user logs in the instant messaging client, instant messaging server user is returned according to the user's login account of the user's buddy list to the user's client device for displaying a friend friends list login status are displayed by default.

[0024] 在本实施例中,所述登录状态包括在线状态和登录资源状态。 [0024] In the present embodiment, the login state and a state comprising a logging resource online status. 进一步的,所述在线状态包括但不限于在线、离线、忙碌、离开以及自定义状态,所述登录资源状态包括但不限于未知、手机、电脑、智能电视以及网页web。 Further, the on-line state, including but not limited to online, offline, busy, away and custom status, the login status of resources, including but not limited to the unknown, mobile phones, computers, smart TV and the web web.

[0025] 在本实施例中,所述默认状态中的所述在线状态为离线,所述登录资源状态为未知。 [0025] In the present embodiment, the default state is the online state to the offline, the login status is unknown resources. 在本实施例中,所述用户的客户端可以通过变换好友图标或者通过在好友图标后的预设区域内添加文字的方式来显示好友的登录状态。 In the present embodiment, the client user may be displayed by the login status of the buddy add text within a predetermined area of ​​the buddy icon buddy icon or by way of transformation.

[0026] 在S102中,所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态。 [0026] In S102, the instant messaging server to the user's friend list queries where the instant messaging server, according to the friend, and the friend get through the current login status of the instant messaging server where your friends are.

[0027] 在本实施例中,步骤S102具体包括: [0027] In the present embodiment, step S102 comprises:

[0028] 所述用户所在的即时通讯服务器根据所述好友列表查询所述好友所在的即时通讯服务器; [0028] The instant messaging server based on the user's buddy list query the instant messaging server where your friends are;

[0029] 若所述好友与所述用户分别位于不同的即时通讯服务器,则所述用户所在的即时通讯服务器将用户的上线通知信息发送至所述好友所在的即时通讯服务器,并接收所述好友所在即时通讯服务器根据所述用户的上线通知信息返回的应答信息,所述应答信息包括所述用户好友当前的登录状态;或者, [0029] If the buddy of the user is in a different instant messaging server, respectively, then the user's instant messaging server notifies the user information is transmitted on-line to the friend chat server located, and receiving the buddy where the instant messaging server on-line notification according to the user's response information returned by the response information includes the current user's friends login status; or,

[0030] 若所述用户好友与所述用户位于同一即时通讯服务器,则所述用户所在的即时通讯服务器直接在自身数据库中查找所述好友当前的登录状态。 [0030] If the user's friends with the user in the same instant messaging server, the user's instant messaging server to find the Buddy login status directly in its own database.

[0031] 在本实施例中,所述好友列表中包括好友的登录账号信息,所述好友的登录账号信息包括好友的昵称、账号ID以及账号ID所在的即时通讯服务器,所述好友的账号ID所在的即时通讯服务器即为好友所在的即时通讯服务器。 [0031] In the present embodiment, the buddy list includes a friend login account information, the account information includes login friend chat friend's nickname server, where the account ID and the account ID of the account ID buddy instant messaging server resides is the instant messaging server where your friends are.

[0032] 在本实施例中,用户上线或者改变登录状态时均会通过用户的客户端将用户当前的登录状态发送至用户所在的即时通讯服务器进行存储,同样好友上线或者改变登录状态时,好友的客户端也会将好友当前的登录状态发送至好友所在的即时通讯服务器进行存储。 When [0032] In the present embodiment, the user time-line, or change the login state will by a user's client sends user's current login status to the instant messaging server the user is stored, the same friends online, or change the login state, friends the client will also send friends your current login status to the instant messaging server where your friends are stored. 进一步的,用户所在的即时通讯服务器和好友所在的即时通讯服务器可能为同一个服务器,也可能为两个不同的服务器,因此,用户所在的即时通讯服务器在查找到好友所在的即时通讯服务器时,会判断好友所在的即时通讯服务器的IP地址是否与用户所在的即时通讯服务器的IP地址相同,若相同,则说明两者位于同一即时通讯服务器,此时用户所在的即时通讯服务器可直接在自身数据库中查询好友当前的登录状态;反之,若不相同,则说明两者分别位于不同的即时通讯服务器中,此时由用户所在的通讯服务器向好友所在的通讯服务器发送用户的上线通知信息,其中用户的上线通知信息包括用户当前的登录状态、用户的账户ID以及好友的账户ID,使好友所在的通讯服务器根据所述用户的上线通知信息中好友的账户ID查询好友当前的登录状态,根据好友当 Further, the instant messaging server user's instant messaging server and friends where possible for the same server, it may be two different servers, therefore, the instant messaging server user is in the instant messaging server to find where your friends are when, the same IP address of the instant messaging server will determine whether the IP address where your friends are instant messaging server and the user is located, if the same, then both at the same instant messaging server, instant messaging server then the user is located directly in the database itself buddy query login status; conversely, if not identical, the two are located at different instant messaging server, the communication server by the communication server case where the user is sent to a friend of the user on-line notification information, wherein the user on-line notification information includes the user's current login status, the user's account ID and the buddy account ID, so that communication server friends are in the notification information of a friend on account ID query friend current login status according to the line of the user, according to friends when 的登录状态作为应答信息返回至用户所在的即时通讯服务器。 The login status is returned to the user's instant messaging server as a response information.

[0033] 在S103中,所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 [0033] In S103, the user's instant messaging server is the Buddy login status is returned to the user's client, the client according to the user's current login status updates friend said friends of the login status display of the buddy list.

[0034] 在本实施例中,所述用户的客户端在接收到所述用户所在即时通讯服务器转发的好友当前的登录状态时,并根据好友当前的登录状态更新自身好友列表中该好友的登录状 When [0034] In the present embodiment, the user client receiving the instant messaging server forwards the user's current login status of the friend, and update their buddy list the buddy is logged according to the current login status friend shape

ίέτ O ίέτ O

[0035] 以上可以看出,本实施例提供的一种在即时通讯工具中显示好友登录状态的方法通过当用户登录所述即时通讯工具的客户端时,用户所在的即时通讯服务器根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态;所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态;所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态,从而无需在用户所在的即时通讯服务器的内存中实时维护好友的登录状态即可使用户在登录时及时获取并显示好友的登录状态,大大减 [0035] As can be seen above, when the login method buddy logged by the instant messaging client as a user, the user log into the instant messaging server according to a user where one kind of embodiment of the present embodiment provided by the instant messaging tool account the user's buddy list is returned to the user's client device for displaying the buddy list of friends login status are displayed by default; instant messaging server queries the user's list of friends where your friends are, according to the instant communications server, and obtain the buddy login status of the instant messaging server where your friends are; instant messaging server of the user's friends to the current login status of the user is returned to the client, the the user's client updates the display of the buddy list of friends logged according to the buddy login status, eliminating the need to maintain real-time friends logged in memory of the user's instant messaging server to the user's login time timely access to and show your friends login status, greatly reduce the 了内存的占用量,并且无需频繁的更新即时通讯服务器的内存,减轻了整个即时通讯系统的运行压力。 The memory footprint and does not require frequent updates instant messaging server memory, reducing the operating pressure of the whole instant messaging system.

[0036]图2是本发明另一实施例提供的一种在即时通讯工具中显示好友登录状态的方法的示意流程图。 [0036] FIG 2 is an embodiment of the present invention is provided in a further embodiment of a schematic flowchart of a method buddy login state is displayed in chat tools. 参见图2所示,相对于上一实施例,本实施例提供的所述方法在所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态之后还包括: Referring to FIG. 2, with respect to the previous embodiment, the method according to the instant messaging server provided in the user's buddy list, according to the present embodiment of the instant messaging server queries where friends, and friends are in the through after the instant messaging server to obtain the login status buddy also includes:

[0037] 在S203中,所述用户所在的即时通讯服务器通过所述好友所在的即时通讯服务器根据所述好友当前的登录状态向在线好友的客户端发送用户的上线通知信息,使所述在线好友的客户端根据所述上线通知信息更新所述用户的登录状态。 [0037] In S203, the user is in the instant messaging server by the instant messaging server transmits online friends are in the user notification information to an online buddy's client according to the login status Buddy, the online friends client updating the notification information according to the user's login status on-line.

[0038] 在本实施例中,所述好友所在的即时通讯服务器在获取到好友的登录状态时,会根据所述登录状态判断所述好友是否在线,若在线,则会将所述用户所在的即时通讯服务器接收到的用户的客户端发送的用户的上线通知信息转发至所述好友的客户端,使所述好友的客户端根据用户的上线通知信息更新自身好友列表中用户的登录状态。 [0038] embodiment, the instant messaging server is located at a friend buddy acquired login status, determines based on the status of the friends are online log in the present embodiment, if online, the user will be located online users received user's instant messaging server forwards the client sends the notification information to the buddy's client, the buddy's client notification message update their buddy list registered user based on the line status of the user.

[0039] 进一步的,相对于上一实施例,在本实施例中,所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态之后还包括: [0039] Further, with respect to the previous embodiment, the client, in the present embodiment, the instant messaging server to the user's buddy current login status of the user is returned to the client, the user after the end of the update display of friends registered in the buddy list based on the buddy status of the current login status further comprises:

[0040] 在S205中,当用户的登录状态发生改变时,所述用户所在的即时通讯服务器重新获取用户当前的登录状态,并将用户当前的登录状态通过所述好友所在的即时通讯服务器发送至在线好友的客户端,使所述在线好友的客户端根据所述用户当前的登录状态更新自身好友列表中所述用户的登录状态。 [0040] In S205, when the user's login status is changed, the user's instant messaging server reacquire the user's current login status, and the user's current login status of the instant messaging server resides send to a friend online friends of the client, the client online friends status updates Login their buddy list of the user based on the user's current login status.

[0041] 在本实施例中,当用户的登录状态发生改变时,例如:当用户的在线状态发生改变或者登录资源状态发生改变时,所述用户所在的即时通讯服务器均会重新获取用户当前的登录状态,并将用户当前的登录状态通过好友所在的通讯服务器转发至自身好友列表中的在线好友,使所述在线好友的客户端及时更新自身好友列表中所述用户的登录状态。 [0041] In the present embodiment, when the user's login status is changed, for example: when the user's online status changes or the resource state change log, the chat server where the user will retrieve the user's current login status, and the user's current login status is forwarded to their friends list of friends online friends through messaging server is located, the client online friends to update their login status of the user's buddy list. 同样,当好友的登录状态发生改变时,好友所在的即时通讯服务器也会通过用户所在的即时通讯服务器重新将好友的当前登录状态转发至所述用户的客户端,使所述用户的客户端及时更新自身好友列表中有关所述好友的登录状态。 Similarly, when a friend's login status is changed, the instant messaging server where your friends will be re-forwarded through the instant messaging server user is currently logged in user's friend to the client, so that the user of the client in a timely manner update their friends list login status related to the friend.

[0042] 需要说明的是,本实施例中的步骤S201〜步骤S202以及步骤S204由于与图1所示实施例中的步骤SlOl〜步骤S103完全相同,因此,在此不再赘述。 [0042] Incidentally, S201~ Step S202 in the present embodiment and the step S204 in FIG. 1 due to step SlOl~ embodiment shown in step S103 is identical, therefore, are not repeated here.

[0043]因此,可以看出,本实施例提供的一种在即时通讯工具中显示好友登录状态的方法同样无需在用户所在的即时通讯服务器的内存中实时维护好友的登录状态即可使用户在登录时及时获取并显示好友的登录状态,大大减少了内存的占用量,并且无需频繁的更新即时通讯服务器的内存,减轻了整个即时通讯系统的运行压力;此外,相对于上一实施例,本实施例还能够在用户的登录状态发生改变时,及时更新用户在其在线好友的好友列表中的登录状态。 [0043] Thus, it can be seen a according to this embodiment of the display method buddy logged in real time without the need to maintain the same friends logged in user memory instant messaging server resides in the instant messaging tool to enable users timely access to log and show your friends login status, greatly reducing the footprint of memory, and does not require frequent updates memory instant messaging server, reducing the operating pressure of the whole instant messaging system; in addition, with respect to the previous embodiment, the present embodiment can also be in the user's login status changes, update the user logged in to the friends list of their online friends.

[0044]图3是本发明实施例提供的一种在即时通讯工具中显示好友登录状态的系统的示意性框图,该系统位于用户所在的即时通讯服务器中。 [0044] FIG. 3 is an embodiment of the present invention is provided in a schematic block diagram of a buddy system login state is displayed in instant messaging, the instant messaging system is located in the user's server. 为了便于说明,仅仅示出了与本实施例相关的部分。 For convenience of explanation, only a part related to the present embodiment.

[0045] 参见图3所示,本实施例提供的一种在即时通讯工具中显示好友登录状态的系统,包括: [0045] Referring to Figure 3 A embodiment of the present embodiment to provide a display system buddy logged-in instant messaging, comprising:

[0046] 好友列表获取单元1,用于当用户登录所述即时通讯工具的客户端时,根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态; [0046] The buddy list acquisition unit 1, when the user logs on to the instant messaging client, the user's login account to the user's buddy list of the user is returned to the client for display, the buddy list friends of the login status are displayed by default;

[0047] 好友登录状态获取单元2,用于根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态; [0047] buddies logged acquisition unit 2, according to the buddy list for the instant messaging server queries where friends, friends and acquiring the current login status through the instant messaging server is located friends;

[0048] 好友登录状态更新单元3,用于将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 [0048] buddies logged status updating unit 3, for the buddy current login status of the user is returned to the client, the client according to the user's current login status of the friends of the friend list update friends of the login status display.

[0049] 可选的,参见图4所示,所述好友登录状态获取单元2包括: [0049] Optionally, referring to Figure, the friend sign acquisition unit 2 includes a 4-state:

[0050] 好友服务器查询单元21,用于根据所述好友列表查询所述好友所在的即时通讯服务器; [0050] Friends server query unit 21 for querying the buddy list, according to the instant messaging server is located friends;

[0051] 第一登录状态获取单元22,用于若所述好友与所述用户分别位于不同的即时通讯服务器,则将用户的上线通知信息发送至所述好友所在的即时通讯服务器,并接收所述好友所在即时通讯服务器根据所述用户的上线通知信息返回的应答信息,所述应答信息包括所述用户好友当前的登录状态;或者, [0051] The first login state acquiring unit 22, for if the buddy of the user are located at different instant messaging server, then the on-line notification of the user information to the friend chat server located, and receive said chat server where your friends on-line notification of the user according to information returned by the response, the response information includes the user login status buddy; or

[0052] 第二登录状态获取单元23,用于若所述用户好友与所述用户位于同一即时通讯服务器,则直接在所述用户所在的即时通讯服务器的数据库中查找所述好友当前的登录状 [0052] The second login state acquiring unit 23, if the user's friends for the user in the same instant messaging server, the friend to find the current login status directly in the database of the instant messaging server of the user is a

ίέτ O ίέτ O

[0053] 可选的,所述登录状态包括在线状态和登录资源状态,其中:所述在线状态包括在线、离线、忙碌、离开以及自定义状态;所述登录资源状态包括未知、手机、电脑、智能电视以及网页web;所述默认状态中的在线状态为离线,登录资源状态为未知。 [0053] Optionally, the login state and a state comprising a logging resource online status, wherein: the on-line state includes online, offline, busy, away, and custom state; state comprises the logging resource is unknown, mobile phones, computers, smart TV and web web; the default state of online to offline, log on resource status is unknown.

[0054] 可选的,参见图5所示,在另一实施例中,所述的在即时通讯工具中显示好友登录状态的系统还包括: [0054] Optionally, referring to FIG. 5, in another embodiment, the display state of the buddy system logon the instant messaging tool further comprises:

[0055] 用户上线通知单元4,用于通过所述好友所在的即时通讯服务器根据所述好友当前的登录状态向在线好友的客户端发送用户的上线通知信息,使所述在线好友的客户端根据所述上线通知信息更新所述用户的登录状态。 [0055] The notification unit 4 on the subscriber line, for friends through the instant messaging server is located on the transmission line according to the user's current login status buddy online notification information buddy's client, the client according to the online friends the on-line notification of the user information update login state.

[0056] 可选的,所述的在即时通讯工具中显示好友登录状态的系统还包括: [0056] Alternatively, the display state of the buddy system logon the instant messaging tool further comprises:

[0057] 用户登录状态更新单元5,用于当用户的登录状态发生改变时,所述重新获取用户当前的登录状态,并将用户当前的登录状态通过所述好友所在的即时通讯服务器发送至在线好友的客户端,使所述在线好友的客户端根据所述用户当前的登录状态更新自身好友列表中所述用户的登录状态。 [0057] The user login status updating unit 5, when a user's login status is changed, the re-acquiring the current user login status, and the user's current login status through the instant messaging server to send online friends are in friends of the client, the client online friends status updates Login their buddy list of the user based on the user's current login status.

[0058]需要说明的是,本发明实施例提供的上述系统中各个模块,由于与本发明方法实施例基于同一构思,其带来的技术效果与本发明方法实施例相同,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。 [0058] Incidentally, the above-described embodiment of the system according to the present invention is provided in each module, since the method embodiments of the present invention based on the same idea, the technical effects and it brings the method same as the embodiment of the present invention, reference may be made to the present method described invention embodiment, will not be repeated here.

[0059]因此,可以看出,本发明实施例提供的一种在即时通讯工具中显示好友登录状态的系统同样无需在用户所在的即时通讯服务器的内存中实时维护好友的登录状态即可使用户在登录时及时获取并显示好友的登录状态,大大减少了内存的占用量,并且无需频繁的更新即时通讯服务器的内存,减轻了整个即时通讯系统的运行压力。 [0059] Thus, it can be seen An embodiment of the present invention to provide a display system of the same buddy logged-in real-time without maintenance friends logged in memory of the instant messaging server is located in the user chat tools enable users to timely access to and show your friends when you log in login status, greatly reducing the amount of memory footprint and does not require frequent updates instant messaging server memory, reducing the operating pressure of the whole instant messaging system.

[0060]以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 [0060] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, any modifications within the spirit and principle of the present invention, equivalent substitutions and improvements should be included in the present within the scope of the invention.

Claims (10)

1.一种在即时通讯工具中显示好友登录状态的方法,其特征在于,包括: 当用户登录所述即时通讯工具的客户端时,用户所在的即时通讯服务器根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态; 所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态; 所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 1. A method for login state is displayed in a friend chat tool, characterized by comprising: when the user logs in the instant messaging client, an instant messaging server according to a user where the user's login account to the user's buddy the list is returned to the user's client device for displaying the buddy list of friends login status are displayed by default; instant messaging server queries the user's list of friends instant messaging server is located, according to the friend, and by the instant messaging server where your friends are friends of obtaining the current login status; instant messaging server of the user's friends to the current login status of the user is returned to the client, the client according to the user the buddy login status updates friend of displaying the buddy list login status.
2.如权利要求1所述的在即时通讯工具中显示好友登录状态的方法,所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态包括: 所述用户所在的即时通讯服务器根据所述好友列表查询所述好友所在的即时通讯服务器; 若所述好友与所述用户分别位于不同的即时通讯服务器,则所述用户所在的即时通讯服务器将用户的上线通知信息发送至所述好友所在的即时通讯服务器,并接收所述好友所在即时通讯服务器根据所述用户的上线通知信息返回的应答信息,所述应答信息包括所述用户好友当前的登录状态;或者, 若所述用户好友与所述用户位于同一即时通讯服务器,则所述用户所在的即时通讯服务器直接在自身数据库中查找所述好友当前的登录状态。 2. The method of displaying an instant buddy logged in the instant messaging tool according to claim 1, the instant messaging server queries a list of user's friends are in the instant messaging server according to the friend, and where said through friends communications server buddy get the current login status include: the instant messaging server based on the user's buddy list query the instant messaging server where your friends are; if the friend with the user is in a different instant messaging server, respectively, instant messaging server, then the user's on-line user notifies the information to the friends are in the instant messaging server, and receiving the notification server chat friends are in the response information returned according to the line of the user, the said response information includes the current user's friends are logged in; or, if the user's friends with the user in the same instant messaging server, the user's instant messaging server to find the buddy itself directly in the database Login status.
3.如权利要求2所述的在即时通讯工具中显示好友登录状态的方法,所述用户所在的即时通讯服务器根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态之后还包括: 所述用户所在的即时通讯服务器通过所述好友所在的即时通讯服务器根据所述好友当前的登录状态向在线好友的客户端发送用户的上线通知信息,使所述在线好友的客户端根据所述上线通知信息更新所述用户的登录状态。 3. The method of displaying an instant buddy logged in the IM tool according to claim 2, where the instant messaging server the user's instant messaging server queries a list of friends are in accordance with the friend and the friend's location by after acquiring the communications server login status buddy also includes: the instant messaging server through the user's instant messaging server where your friends are online notification is sent to the user's online friends of friends, according to the client's current login status information, the buddy's client online updating the notification information according to the user's login status on-line.
4.如权利要求1所述的在即时通讯工具中显示好友登录状态的方法,其特征在于,所述用户所在的即时通讯服务器将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态之后还包括: 当用户的登录状态发生改变时,所述用户所在的即时通讯服务器重新获取用户当前的登录状态,并将用户当前的登录状态通过所述好友所在的即时通讯服务器发送至在线好友的客户端,使所述在线好友的客户端根据所述用户当前的登录状态更新自身好友列表中所述用户的登录状态。 4. The method of displaying buddy logged in the instant messaging tool as claimed in claim 1, wherein the instant messaging server to the user's current login status of the buddy of the user is returned to the client, the user's client after the buddy login status updates friend of displaying the buddy list based on login status, further comprising: when the user's login status is changed, the user's instant messaging server reacquisition the current user login status, and the user's current login status is sent to the client online friends through the instant messaging server where your friends are, so that the client online friends update their buddy list based on the user's current login status in the user's login status.
5.如权利要求1所述的在即时通讯工具中显示好友登录状态的方法,其特征在于,所述登录状态包括在线状态和登录资源状态,其中:所述在线状态包括在线、离线、忙碌、离开以及自定义状态;所述登录资源状态包括未知、手机、电脑、智能电视以及网页web;所述默认状态中的在线状态为离线,登录资源状态为未知。 5. A method of displaying buddy logged in the instant messaging tool as claimed in claim 1, wherein the login state and a state comprising a logging resource online status, wherein: the on-line state includes online, offline, busy, leave and custom status; the login resource status unknown, including, mobile phones, computers, smart TV and the web web; the default state of online to offline, log on resource status is unknown.
6.—种在即时通讯工具中显示好友登录状态的系统,其特征在于,所述系统位于用户所在的即时通讯服务器中,所述系统包括: 好友列表获取单元,用于当用户登录所述即时通讯工具的客户端时,根据用户的登录账号将用户的好友列表返回至所述用户的客户端进行显示,所述好友列表中好友的登录状态均显示为默认状态; 好友登录状态获取单元,用于根据所述好友列表查询好友所在的即时通讯服务器,并通过所述好友所在的即时通讯服务器获取所述好友当前的登录状态; 好友登录状态更新单元,用于将所述好友当前的登录状态返回至所述用户的客户端,使所述用户的客户端根据所述好友当前的登录状态更新所述好友列表中显示的好友的登录状态。 6.- kinds of display buddy system login state in chat tool, characterized in that the user system is located where the instant messaging server, the system comprising: a buddy list acquisition unit, for the instant when the user logs when the end customer communication tools, the user's login account to the user's buddy list of the user is returned to the client for display, the buddy list of buddy's login status are displayed by default; buddy logged state acquiring unit, with according to the buddy list inquiry instant messaging server where your friends and the friends get through the current login status of the instant messaging server resides friends; friends login status update unit for the buddy login status return to the user client, the client user updates the friends of the friend list displayed state based on the buddy logged current login status.
7.如权利要求6所述的在即时通讯工具中显示好友登录状态的系统,所述好友登录状态获取单元包括: 好友服务器查询单元,用于根据所述好友列表查询所述好友所在的即时通讯服务器; 第一登录状态获取单元,用于若所述好友与所述用户分别位于不同的即时通讯服务器,则将用户的上线通知信息发送至所述好友所在的即时通讯服务器,并接收所述好友所在即时通讯服务器根据所述用户的上线通知信息返回的应答信息,所述应答信息包括所述用户好友当前的登录状态;或者, 第二登录状态获取单元,用于若所述用户好友与所述用户位于同一即时通讯服务器,则直接在所述用户所在的即时通讯服务器的数据库中查找所述好友当前的登录状态。 The display buddy logged in the instant messaging system according to claim 6, said buddy login state acquiring unit comprises: a buddy query the server unit, for queries based on the buddy list of the chat friends are in server; first login state acquiring unit, configured to, if the buddy of the user are located at different instant messaging server, then the on-line notification of the user information to the friend chat server located, and receiving the buddy where the instant messaging server response information notification information according to the return line of the user, the response information includes the user login status buddy; or second login state acquiring unit, configured to, if the user of the buddy instant messaging users on the same server, then look for the login status buddy instant messaging server directly in the database the user is located.
8.如权利要求6所述的在即时通讯工具中显示好友登录状态的系统,还包括: 用户上线通知单元,用于通过所述好友所在的即时通讯服务器根据所述好友当前的登录状态向在线好友的客户端发送用户的上线通知信息,使所述在线好友的客户端根据所述上线通知信息更新所述用户的登录状态。 8. The display system buddy logged-in chat tool according to claim 6, further comprising: a subscriber line notification unit for instant messaging server via the online friends are in accordance with the current login status of the buddy buddy's client sends the user's on-line notification information, the buddy's client online updating the notification information according to the user's login status on-line.
9.如权利要求6所述的在即时通讯工具中显示好友登录状态的系统,其特征在于,还包括: 用户登录状态更新单元,用于当用户的登录状态发生改变时,所述重新获取用户当前的登录状态,并将用户当前的登录状态通过所述好友所在的即时通讯服务器发送至在线好友的客户端,使所述在线好友的客户端根据所述用户当前的登录状态更新自身好友列表中所述用户的登录状态。 9. As shown in the IM buddy system according to claim 6 login state, characterized by, further comprising: a user login state updating means for, when the user changes the login status of the user to reacquire the current login status, and the user's current login status sent via the instant messaging server where your friends are online friends to the client, the client online friends update their buddy list based on the user's current login status the user login status.
10.如权利要求6所述的在即时通讯工具中显示好友登录状态的系统,其特征在于,所述登录状态包括在线状态和登录资源状态,其中:所述在线状态包括在线、离线、忙碌、离开以及自定义状态;所述登录资源状态包括未知、手机、电脑、智能电视以及网页web;所述默认状态中的在线状态为离线,登录资源状态为未知。 The display system buddy logged in the instant messaging tool as claimed in claim 6, wherein the login state and a state comprising a logging resource online status, wherein: the on-line state includes online, offline, busy, leave and custom status; the login resource status unknown, including, mobile phones, computers, smart TV and the web web; the default state of online to offline, log on resource status is unknown.
CN201611136006.7A 2016-12-09 2016-12-09 Method and system for displaying friend login states in instant messaging tool CN106453067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611136006.7A CN106453067A (en) 2016-12-09 2016-12-09 Method and system for displaying friend login states in instant messaging tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611136006.7A CN106453067A (en) 2016-12-09 2016-12-09 Method and system for displaying friend login states in instant messaging tool

Publications (1)

Publication Number Publication Date
CN106453067A true CN106453067A (en) 2017-02-22

Family

ID=58216839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611136006.7A CN106453067A (en) 2016-12-09 2016-12-09 Method and system for displaying friend login states in instant messaging tool

Country Status (1)

Country Link
CN (1) CN106453067A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146051A (en) * 2007-11-07 2008-03-19 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection
CN101404627A (en) * 2008-11-13 2009-04-08 腾讯科技(深圳)有限公司 Instant communication system and method for updating contact information
CN101883151A (en) * 2010-07-02 2010-11-10 苏州阔地网络科技有限公司 General method for creating friend list capable of showing friend state on webpage
CN104811320A (en) * 2014-01-29 2015-07-29 华为技术有限公司 State subscription method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146051A (en) * 2007-11-07 2008-03-19 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection
CN101404627A (en) * 2008-11-13 2009-04-08 腾讯科技(深圳)有限公司 Instant communication system and method for updating contact information
CN101883151A (en) * 2010-07-02 2010-11-10 苏州阔地网络科技有限公司 General method for creating friend list capable of showing friend state on webpage
CN104811320A (en) * 2014-01-29 2015-07-29 华为技术有限公司 State subscription method, device and system

Similar Documents

Publication Publication Date Title
US20070233875A1 (en) Aggregating user presence across multiple endpoints
US6785681B2 (en) Generating a list of people relevant to a task
US20070239869A1 (en) User interface for user presence aggregated across multiple endpoints
CN103875200B (en) And a delivery system for efficiently updating a social network devices to a receiver device power broadcast network
JP4983104B2 (en) Network system and server
US20060173959A1 (en) Agent based application using data synchronization
CN102202102B (en) Network service polymerization system and polymerization method thereof based on cloud computing configuration
US8099463B2 (en) Method and apparatus for sharing concurrent ad hoc web content between users visiting the same web pages
DE202011110866U1 (en) Identification of message recipients
US8463915B1 (en) Method for reducing DNS resolution delay
CA2859059C (en) Method, group server, and member device for accessing member resources
CN100426802C (en) Method of providing existant information
CA2495933A1 (en) Command based group sms with mobile message receiver and server
WO2007068195A1 (en) A method and system for querying user information, and search agent, client and server
KR20140038988A (en) Efficient state reconciliation
US20170149715A1 (en) System and method for providing an actively invalidated client-side network resource cache
CN101155324A (en) Instant communication method and system based on or containing mobile phone book
CN101800795A (en) Communication system and method for realizing social network services by mobile phone address book
US20050246396A1 (en) System and method for synchronizing between a file system and presence of contacts on a network
DE112010005499T5 (en) Controlling messaging during publish / subscribe messaging
US9615223B2 (en) Electronic messaging technology
CN102547556B (en) Adding method of user association relationship, mobile terminal and server
WO2012149845A1 (en) Method and system for displaying micro blog message, micro blog terminal, micro blog server, and storage medium
US20130346591A1 (en) Clientless Cloud Computing
WO2009074037A1 (en) An instant communication method, device and system

Legal Events

Date Code Title Description
C06 Publication
SE01 Entry into force of request for substantive examination