CN104753825B - The delivery method and system of login status when instant messaging multiple terminals logs in - Google Patents

The delivery method and system of login status when instant messaging multiple terminals logs in Download PDF

Info

Publication number
CN104753825B
CN104753825B CN201310754636.0A CN201310754636A CN104753825B CN 104753825 B CN104753825 B CN 104753825B CN 201310754636 A CN201310754636 A CN 201310754636A CN 104753825 B CN104753825 B CN 104753825B
Authority
CN
China
Prior art keywords
terminal
instant messaging
message
messaging account
login status
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
CN201310754636.0A
Other languages
Chinese (zh)
Other versions
CN104753825A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310754636.0A priority Critical patent/CN104753825B/en
Publication of CN104753825A publication Critical patent/CN104753825A/en
Application granted granted Critical
Publication of CN104753825B publication Critical patent/CN104753825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The delivery method of login status, includes the following steps when a kind of instant messaging multiple terminals logs in:Receive the message that instant messaging account is logged on or off in a terminal;Obtain the end message of other terminals that the instant messaging account currently logs in;Whether the priority of message counterpart terminal logged on or off described in judgement is higher than the priority of other terminals, if, terminal login status then is issued to online good friend's account of the instant messaging account, which indicates that login status of the instant messaging account on the counterpart terminal changes.When the priority of other terminals that the priority ratio of message counterpart terminal that above method judgement logs on or off logs in is high, the changed terminal login status of the login status that may indicate that on counterpart terminal just is issued to online good friend's account of instant messaging account, the transmission of repeat logon status information can be reduced.In addition, also provide a kind of sending system of login status when instant messaging multiple terminals logs in.

Description

The delivery method and system of login status when instant messaging multiple terminals logs in
Technical field
The present invention relates to network communication, field of computer technology, when being logged in more particularly to a kind of instant messaging multiple terminals The delivery method and system of login status.
Background technology
Instant messaging (IM) is the business for referring to send and receive internet message etc. immediately.Instant messaging from generate with Carry out its function to become increasingly abundant, be developing progressively as collection exchange, information, amusement, search, e-commerce, office cooperation and enterprise visitor The synthesization information platform that family service etc. is integrated.
With the expansion of Internet technology coverage area, instant messaging also develops to multiple terminalsization.At present, some Important instant messaging provider provides a variety of instant communication clients, such as can run on the instant messaging client of PC The instant communication client that holds, can run on mobile phone and the instant communication client that can run on television terminal etc..Pass through fortune Row can send message in the instant communication client of a certain terminal to the instant communication client operated in other terminals.
In order to meet user at any time and easily use instant messaging service the needs of, same instant messaging account can be same When different terminals client log in.Instant messaging account logs in the client of a terminal and is also referred to as instant messaging account Number the terminal log in.
In order to by login status(Including presence and off-line state etc.)Notify in time to good friend, facilitate between good friend into Row instant messaging, in the prior art, whenever instant messaging account is when a new terminal logs on or off, instant messaging service The message that instant messaging account logs on or off generally all is handed down to all online good friend's accounts of the instant messaging account by device.
For example, a certain instant messaging account logs on mobile phone first, instant communication server is to the instant messaging account The client that logs in of all online good friend's accounts send the presence message of the instant messaging account, client, which receives, to disappear After breath, message need to be parsed, and the state of the instant messaging account is shown according to message content;Then, which exists It is logged on PC, the client that instant communication server logs in again to online good friend's account of the instant messaging account sends this immediately The presence message of communications account after client receives message, and needs to parse message, and show this according to message content The state of instant messaging account.
In the prior art, instant communication server is possible to repeatedly send identical login shape to instant communication client State, repeat login status for user understand good friend login situation it is nonsensical, not only occupy instant communication server and The computer resource of instant communication client, it is also necessary to waste network bandwidth resources.
Invention content
Based on this, it is necessary to provide it is a kind of reduce repeat logon status information transmission instant messaging multiple terminals log in when The delivery method of login status.
The delivery method of login status, includes the following steps when a kind of instant messaging multiple terminals logs in:
Receive the message that instant messaging account is logged on or off in a terminal;
Obtain the end message of other terminals that the instant messaging account currently logs in;
Whether the priority of message counterpart terminal logged on or off described in judgement is higher than the priority of other terminals, If so, terminal login status is issued to online good friend's account of the instant messaging account, terminal login status instruction institute Login status of the instant messaging account on the counterpart terminal is stated to change.
In addition, there is a need to provide it is a kind of reduce repeat logon status information transmission instant messaging multiple terminals log in when The sending system of login status.
The sending system of login status when a kind of instant messaging multiple terminals logs in, including:
Message reception module, for receiving the message that instant messaging account is logged on or off in a terminal;
Terminal acquisition module, for obtaining the end message of other terminals that the instant messaging account currently logs in;
Priority comparison module, for judging the priority of message counterpart terminal logged on or off whether than described The priority of other terminals is high;
State issues module, if for other terminals described in the priority ratio of message counterpart terminal logged on or off Priority it is high, then issue terminal login status to online good friend's account of the instant messaging account, the terminal login status Indicate that login status of the instant messaging account on the counterpart terminal changes.
The delivery method and system of login status when above-mentioned instant messaging multiple terminals logs in receive instant messaging account one The message that terminal logs on or off obtains the end message of other terminals that the instant messaging account currently logs in, judges to log in Or whether the priority of message counterpart terminal exited is higher than the priority of other terminals, during priority higher, just to this immediately Online good friend's account of communications account issues the changed terminal login status of the login status that may indicate that on counterpart terminal, The transmission of repeat logon status information can be reduced, so as to reduce instant communication server and instant communication client computer resource Occupancy and save network bandwidth resources.
Description of the drawings
Fig. 1 is the flow signal of the delivery method of login status when the instant messaging multiple terminals in one embodiment logs in Figure;
Fig. 2 is the flow signal of the delivery method of login status when the instant messaging multiple terminals in another embodiment logs in Figure;
Fig. 3 is the structural representation of the sending system of login status when the instant messaging multiple terminals in one embodiment logs in Figure;
Fig. 4 is the structural representation of the sending system of login status when the instant messaging multiple terminals in another embodiment logs in Figure;
Fig. 5 is the module map for the computer system 1000 that can realize the embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The description of specific distinct unless the context otherwise, the present invention in element and component, the shape that quantity both can be single Formula exists, and form that can also be multiple exists, and the present invention is defined not to this.Although step in the present invention with label into It has gone arrangement, but is not used to limit the precedence of step, unless expressly stated the order of step or holding for certain step Based on row needs other steps, otherwise the relative rank of step is adjustable.It is appreciated that used herein Term "and/or" is related to and covers one of associated Listed Items or one or more of any and all possible group It closes.
As shown in Figure 1, in one embodiment, the delivery method of login status when a kind of instant messaging multiple terminals logs in, Instant communication server is run on, this method includes the following steps:
Step S102 receives the message that instant messaging account is logged on or off in a terminal.
In one embodiment, message content includes end message and event information.The end message include terminal iidentification, Terminal type etc..The content of event information shows that instant messaging account is logged in or exited in terminal.
Step S104 obtains the end message of other terminals that above-mentioned instant messaging account currently logs in.The end message Including terminal iidentification and terminal type etc..
Step S106, judge the priority of message counterpart terminal logged on or off whether than other terminals priority Height, if so, step S108 is performed, if it is not, then terminating.
Terminal PRI can be pre-set.In one embodiment, the corresponding priority of terminal type can be set.For example, The corresponding priority of PC terminals, mobile phone terminal, television terminal can be set gradually from high to low.It, can be by a certain end in the present embodiment Priority of the corresponding priority of terminal type at end as the terminal.
Step S106 can extract terminal type from the message of reception, and search the corresponding priority of the terminal type, will Compared with priority priority corresponding with the terminal type of other terminals.
Step S108 issues terminal login status to online good friend's account of above-mentioned instant messaging account, which logs in Login status of the above-mentioned instant messaging account of state instruction on counterpart terminal changes.Specifically, to above-mentioned instant messaging The instant communication client that online good friend's account of account is logged in issues terminal login status.
Terminal login status includes end message and login status, and the end message is including terminal type etc., terminal type There are PC terminals, mobile phone terminal, television terminal etc., login status is divided into presence and off-line state etc..
In one embodiment, the delivery method of login status further includes step when above-mentioned instant messaging multiple terminals logs in: The instant communication client that above-mentioned online good friend's account is logged in shows above-mentioned instant according to the above-mentioned terminal login status issued The state of communications account.
The delivery method of login status when above-mentioned instant messaging multiple terminals logs in receives instant messaging account and is stepped in a terminal The message recorded or exited obtains the end message of other terminals that the instant messaging account currently logs in, judges to log on or off Message counterpart terminal priority it is whether higher than the priority of other terminals, during priority higher, just to the instant messaging account Number online good friend's account issue the changed terminal login status of the login status that may indicate that on counterpart terminal, can reduce The transmission of repeat logon status information, so as to reduce accounting for for instant communication server and instant communication client computer resource With and save network bandwidth resources.
In one embodiment, when the message of reception for instant messaging account in the message that a terminal logs in when, issue End message of the terminal login status comprising the message counterpart terminal logged in and above-mentioned instant messaging account are on the counterpart terminal Login status.
For example, a certain instant messaging account logs on a mobile phone terminal, the terminal login status issued may include representing The terminal type of login is the content of mobile phone terminal and represents the content that login status is presence.
In the present embodiment, when a certain one terminal of instant messaging account logs in, only the priority ratio of the terminal this immediately Other terminals that communications account currently logs in are high, and just issuing the expression to online good friend's account of the instant messaging account, this is instant Communications account online terminal login status on the terminal, can reduce the transmission of repeat logon status information.
In one embodiment, when the message of reception for instant messaging account in the message that a terminal exits when, above-mentioned side Method further includes:Obtain highest priority terminal in other terminals that above-mentioned instant messaging account currently logs in;The terminal issued is stepped on End message of the record state comprising the highest priority terminal and above-mentioned instant messaging account are in the highest priority terminal Login status.
Terminal type can be extracted from the end message of the step S104 other terminals obtained, and search terminal type correspondence Priority, compare the priority found, so as to obtain the corresponding terminal type of highest priority.
For example, in all terminals that can be run in instant communication client, the highest priority of mobile phone terminal, PC terminals time It.Certain one instant messaging account of moment on mobile phone terminal and PC terminals all in presence, then, instant messaging account from Exited on mobile phone terminal, at this point, in the other terminals currently logged in the instant messaging account PC terminals highest priority, then The terminal type that the terminal login status issued may include representing to log in is the content of PC terminals and represents that login status is online The content of state.
It should be noted that scheme according to the present invention, when instant messaging account is from the terminal of the highest priority of login When exiting, the corresponding terminal login status of terminal that the priority logged in is taken second place is sent to its online good friend's account, which steps on Record state can convey the meaning that the instant messaging account is exited from the terminal of the highest priority, because, in the present invention, if i.e. When communications account do not exited from the terminal of the highest priority, then only when the instant messaging account logs in other priority more During high terminal, just corresponding terminal login status can be sent to its online good friend's account, therefore, be sent out to its online good friend's account Send the corresponding terminal login status of the terminal that priority is taken second place that can convey terminal of the instant messaging account from the highest priority The meaning exited.
In the present embodiment, when instant messaging account is when a terminal exits, it is omitted to the transmission of online good friend's account and can refer to Show the first terminal login status of off-line state of the instant messaging account in the terminal exited, but directly transmit and can refer to Show the second terminal login status of presence of the instant messaging account in other terminals of highest priority, and due to only Want user online in a certain terminal, whether online good friend can carry out instant messaging with it, as user from other terminals On exit that then relationship is little, and therefore, second terminal login status is more effective relative to first terminal login status, the present embodiment The transmission of first terminal login status is omitted, the transmission of the message of relative nullity can be reduced.
In one embodiment, if step S104 does not get other ends that above-mentioned instant messaging account currently logs in End, then issue terminal login status to online good friend's account of above-mentioned instant messaging account, which, which includes, logs in Or login status of the end message and above-mentioned communications account of the message counterpart terminal exited on the counterpart terminal.
For example, a certain moment instant messaging account is from logging in a mobile phone terminal, and the instant messaging account is currently without stepping on Other terminals are recorded, then the terminal login status issued may include content and expression of the terminal type for representing to log in for mobile phone terminal Login status is the content of presence.In another example a certain moment instant messaging account is exited from a mobile phone terminal, and should be i.e. When communications account be currently without other terminals, the then terminal type that the terminal login status issued may include representing to log in is logged in The content of mobile phone terminal and the content that expression login status is off-line state.
In one embodiment, before step S104, the above method further includes step:Search above-mentioned instant messaging account Registration terminal information memory space.It can be in the mapping table of pre-recorded instant messaging account and memory space address It is middle to search the corresponding memory space address of above-mentioned instant messaging account, corresponding deposit further is found according to memory space address Store up space.When the message for receiving a certain instant messaging account and being logged in a certain terminal, and do not have in above-mentioned mapping table When finding the corresponding memory space address of the instant messaging account, it can apply for the memory space of one piece of default size, and should Instant messaging account and the address corresponding record of the memory space of application are in above-mentioned mapping table.
Further, the above method further includes step:When the message that step S102 is received is whole one for instant messaging account When holding the message logged in, the end message of the message counterpart terminal of login is stored in the memory space found.End message Including terminal iidentification, terminal type etc..
In one embodiment, the end message of the message counterpart terminal of login is stored in the memory space found Step includes:Whether remaining space stores the end message of counterpart terminal enough in the memory space that judgement is found, if so, The end message of counterpart terminal is stored in the memory space found, if it is not, then applying for the memory space of bigger, will be found Memory space in end message shifting deposit to the memory space newly applied, and the end message of counterpart terminal is stored to new Shen Memory space please.The size for the memory space newly applied can be in former memory space(The memory space found)On the basis of increase Add preset value.
Further, in one embodiment, the memory space releasably found, i.e., the original of above-mentioned instant messaging account Memory space, and record in the mapping table of instant messaging account and memory space address above-mentioned instant messaging account with it is new The correspondence of the address of the memory space of application.
Further, the above method further includes step:When the message that step S102 is received is whole one for instant messaging account When holding the message exited, the end message of message counterpart terminal exited is deleted in the memory space found.Further, In one embodiment, it can determine whether the information stored in the memory space found is empty, if so, releasable this is looked into The memory space found, and above-mentioned instant messaging can be deleted in the mapping table of instant messaging account and memory space address Account and the correspondence of the address of the memory space found.
Step S104 can obtain the end message stored in the memory space found in the present embodiment, which is The end message of other terminals currently logged in for above-mentioned instant messaging account.
The above method stores the end message of instant messaging account institute registration terminal, phase by using elongated memory space Instant messaging account is stored for the data structure using regular length, on the one hand can prevent the end message of new login from covering The end message first logged in realizes the information storage of end message when instant messaging account multiple terminals logs in, on the other hand, can root Apply for memory space according to the variation of the memory space of the demand of end message, so as to reasonably utilize memory space, improve The effective rate of utilization of memory space.
Fig. 2 is the flow signal of the delivery method of login status when the instant messaging multiple terminals in one embodiment logs in Figure.As shown in Fig. 2, in one embodiment, the delivery method of login status includes place when a kind of instant messaging multiple terminals logs in Manage the process that the process of instant messaging account log messages and processing instant messaging account exit.Wherein, instant messaging account is handled The process of number log messages includes the following steps:
Step S202 receives the message that instant messaging account is logged in a terminal.
Step S204 obtains the end message of other terminals that above-mentioned instant messaging account currently logs in.
Step S206 judges whether the priority of the message counterpart terminal logged in is higher than the priority of other terminals, if so, Step S208 is then performed, if it is not, terminating.
Step S208 issues terminal login status to online good friend's account of above-mentioned instant messaging account, which logs in State includes the login shape of the end message and above-mentioned instant messaging account of the message counterpart terminal logged on the counterpart terminal State.
And the process for handling instant messaging account exit message includes the following steps:
Step S210 receives the message that instant messaging account is exited in a terminal.
Step S212 obtains the end message of other terminals that above-mentioned instant messaging account currently logs in.
Step S214 judges whether the priority of the message counterpart terminal logged in is higher than the priority of other terminals, if so, Step S216 is then performed, if it is not, terminating.
Step S216 obtains highest priority terminal in other terminals that above-mentioned instant messaging account currently logs in.
Step S218 issues terminal login status to online good friend's account of above-mentioned instant messaging account, which logs in End message of the state comprising the highest priority terminal and above-mentioned instant messaging account are in the upper of the highest priority terminal Login status.
As shown in figure 3, in one embodiment, the sending system of login status when a kind of instant messaging multiple terminals logs in, Module 308 is issued including message reception module 302, terminal acquisition module 304, priority comparison module 306 and state, message connects Receipts module 302, terminal acquisition module 304, priority comparison module 306 and state issue module 308 and are set to Instant Messenger conviction Business device, wherein:
Message reception module 302 is used to receive the message that instant messaging account is logged on or off in a terminal.
In one embodiment, message content includes end message and event information.The end message include terminal iidentification, Terminal type etc..The content of event information shows that instant messaging account is logged in or exited in terminal.
Terminal acquisition module 304 is used to obtain the end message of other terminals that above-mentioned instant messaging account currently logs in. The end message includes terminal iidentification and terminal type etc..
Whether the priority of message counterpart terminal that priority comparison module 306 is used to judge to log on or off is than other ends The priority at end is high.
In one embodiment, above system further includes priority setup module(It is not shown in figure), for pre-setting Terminal PRI.In one embodiment, priority setup module can set the corresponding priority of terminal type.It is for example, preferential Grade setup module can set gradually the corresponding priority of PC terminals, mobile phone terminal, television terminal from high to low.In the present embodiment, It can be using the corresponding priority of the terminal type of a certain terminal as the priority of the terminal.
Priority comparison module 306 can extract terminal type from the message of reception, and it is corresponding to search the terminal type Priority compares priority priority corresponding with the terminal type of other terminals.
If state issues module 308 for the preferential of the other terminals of the priority ratio of message counterpart terminal logged on or off Grade is high, then issues terminal login status to online good friend's account of above-mentioned instant messaging account, in terminal login status instruction Login status of the instant messaging account on counterpart terminal is stated to change.Specifically, state issue module 308 can to it is above-mentioned i.e. When communications account the instant communication client that is logged in of online good friend's account issue terminal login status.
Terminal login status includes end message and login status, and the end message is including terminal type etc., terminal type There are PC terminals, mobile phone terminal, television terminal etc., login status is divided into presence and off-line state etc..
In one embodiment, the sending system of login status further includes Instant Messenger when above-mentioned instant messaging multiple terminals logs in Believe client(It is not shown in figure):For showing the state of instant messaging account according to terminal login status.Above-mentioned online good friend The instant communication client that account is logged in shows the shape of above-mentioned instant messaging account according to the above-mentioned terminal login status issued State.
The sending system of login status when above-mentioned instant messaging multiple terminals logs in receives instant messaging account and is stepped in a terminal The message recorded or exited obtains the end message of other terminals that the instant messaging account currently logs in, judges to log on or off Message counterpart terminal priority it is whether higher than the priority of other terminals, during priority higher, just to the instant messaging account Number online good friend's account issue the changed terminal login status of the login status that may indicate that on counterpart terminal, can reduce The transmission of repeat logon status information, so as to reduce accounting for for instant communication server and instant communication client computer resource With and save network bandwidth resources.
In one embodiment, when the message of reception for instant messaging account in the message that a terminal logs in when, under state The terminal login status that hair module 308 issues includes the end message of the message counterpart terminal logged in and above-mentioned instant messaging account Login status on the counterpart terminal.
For example, a certain instant messaging account logs on a mobile phone terminal, the terminal login status issued may include representing The terminal type of login is the content of mobile phone terminal and represents the content that login status is presence.
In the present embodiment, when a certain one terminal of instant messaging account logs in, only the priority ratio of the terminal this immediately Other terminals that communications account currently logs in are high, and just issuing the expression to online good friend's account of the instant messaging account, this is instant Communications account online terminal login status on the terminal, can reduce the transmission of repeat logon status information.
In one embodiment, terminal acquisition module 304 is additionally operable to when the message received is whole one for instant messaging account When holding the message exited, highest priority terminal in other terminals that above-mentioned instant messaging account currently logs in is obtained;Work as reception Message for instant messaging account in the message that a terminal exits, state issues the terminal login status packet that module 308 issues The login status of end message and above-mentioned instant messaging account in the highest priority terminal containing the highest priority terminal.
Terminal acquisition module 304 can extract terminal type, and search terminal from the end message of other terminals of acquisition The corresponding priority of type, compares the priority found, so as to obtain the corresponding terminal type of highest priority.
For example, in all terminals that can be run in instant communication client, the highest priority of mobile phone terminal, PC terminals time It.Certain one instant messaging account of moment on mobile phone terminal and PC terminals all in presence, then, instant messaging account from Exited on mobile phone terminal, at this point, in the other terminals currently logged in the instant messaging account PC terminals highest priority, then The terminal type that the terminal login status issued may include representing to log in is the content of PC terminals and represents that login status is online The content of state.
In the present embodiment, when instant messaging account is when a terminal exits, it is omitted to the transmission of online good friend's account and can refer to Show the first terminal login status of off-line state of the instant messaging account in the terminal exited, but directly transmit and can refer to Show the second terminal login status of presence of the instant messaging account in other terminals of highest priority, and due to only Want user online in a certain terminal, whether online good friend can carry out instant messaging with it, as user from other terminals On exit that then relationship is little, and therefore, second terminal login status is more effective relative to first terminal login status, the present embodiment The transmission of first terminal login status is omitted, the transmission of the message of relative nullity can be reduced.
In one embodiment, if terminal acquisition module 304 does not get what above-mentioned instant messaging account currently logged in Other terminals, then state issue module 308 and issue terminal login status to online good friend's account of above-mentioned instant messaging account, should End message of the terminal login status comprising the message counterpart terminal logged on or off and above-mentioned communications account are in the counterpart terminal On login status.
As shown in figure 4, in one embodiment, above system further includes memory space searching module 402 and end message Module for reading and writing 404, wherein:
Memory space searching module 402 is used to search the memory space of the registration terminal information of above-mentioned instant messaging account. Memory space searching module 402 can search in the mapping table of pre-recorded instant messaging account and memory space address It is empty further to find corresponding storage according to memory space address for the corresponding memory space address of above-mentioned instant messaging account Between.In one embodiment, memory space searching module 402 is additionally operable to receive a certain Instant Messenger when message reception module 302 The message that is logged in a certain terminal of letter account, and it is corresponding not find in above-mentioned mapping table the instant messaging account During memory space address, apply one piece of default size memory space, and by the instant messaging account with application memory space Address corresponding record in above-mentioned mapping table.
The message that end message module for reading and writing 404 is used to receive when message reception module 302 is instant messaging account one During the message that terminal logs in, the end message of the message counterpart terminal of login is stored in the memory space found.Terminal is believed Breath includes terminal iidentification, terminal type etc..
In one embodiment, end message module for reading and writing 404 is used for the message received when message reception module 302 as i.e. When communications account in the message that a terminal logs in, judge in the memory space found whether enough storage corresponds to remaining space The end message of terminal, if so, the end message of counterpart terminal is stored in the memory space found, if it is not, then applying The memory space of bigger is deposited the end message shifting in the memory space found to the memory space newly applied, and will be corresponding The end message of terminal is stored to the memory space newly applied.The size for the memory space newly applied can be in former memory space(It looks into The memory space found)On the basis of increase preset value.Further, in one embodiment, end message shifting is saved as work( Afterwards, the memory space that end message module for reading and writing 404 is releasably found, i.e., the former memory space of above-mentioned instant messaging account, And above-mentioned instant messaging account is recorded in the mapping table of instant messaging account and memory space address and is deposited with what is newly applied Store up the correspondence of the address in space.
Further, the message that end message module for reading and writing 404 is additionally operable to receive when message reception module 302 is Instant Messenger Account is believed in the message that a terminal exits, and the terminal letter of the message counterpart terminal exited is deleted in the memory space found Breath.Further, in one embodiment, end message module for reading and writing 404 can determine whether to store in the memory space found Information whether be empty, if so, the releasable memory space found, and can in instant messaging account and memory space Above-mentioned instant messaging account and the correspondence of the address of the memory space found are deleted in the mapping table of location.
In the present embodiment, terminal acquisition module 304 can be obtained in the memory space that memory space searching module 402 is found The end message of storage, the end message are the end message of other terminals that above-mentioned instant messaging account currently logs in.
The sending system of login status is stored by using elongated memory space when above-mentioned instant messaging multiple terminals logs in The end message of instant messaging account institute registration terminal, instant messaging account is stored relative to the data structure using regular length Number, it on the one hand can prevent the end message of new login from covering the end message first logged in, realize that instant messaging account multiple terminals is stepped on The information storage of end message, on the other hand, can apply depositing according to the variation of the memory space of the demand of end message during record Space is stored up, so as to reasonably utilize memory space, improves the effective rate of utilization of memory space.
Fig. 5 is the module map for the computer system 1000 that can realize the embodiment of the present invention.The computer system 1000 An only example for being suitable for the invention computer environment, it is impossible to be considered to propose appointing to the use scope of the present invention What is limited.Computer system 1000 can not be construed to need to rely on or the illustrative computer system 1000 with diagram One or more of component combination.
The computer system 1000 shown in Fig. 5 is the example of a computer system for being suitable for the present invention.Have Other frameworks of different sub-systems configuration can also use.Such as there are the similar devices such as big well known desktop computer, notebook It can be adapted for some embodiments of the present invention.But it is not limited to equipment enumerated above.
As shown in figure 5, computer system 1000 includes processor 1010, memory 1020 and system bus 1022.Including Various system components including memory 1020 and processor 1010 are connected on system bus 1022.Processor 1010 is one For performing the hardware of computer program instructions by arithmetic sum logical operation basic in computer system.Memory 1020 It is one to be used to temporarily or permanently store calculation procedure or data(For example, program state information)Physical equipment.System is total Line 1020 can be any one in the bus structures of following several types, including memory bus or storage control, outer If bus and local bus.Processor 1010 and memory 1020 can be by system bus 1022 into row data communication.Wherein Memory 1020 includes read-only memory(ROM)Or flash memory(It is all not shown in figure)And random access memory(RAM), RAM Typically refer to be loaded with the main memory of operating system and application program.
Computer system 1000 further includes display interface 1030(For example, graphics processing unit), display equipment 1040(Example Such as, liquid crystal display), audio interface 1050(For example, sound card)And audio frequency apparatus 1060(For example, loud speaker).Show equipment 1040 and audio frequency apparatus 1060 be media device for experiencing multimedia content.
Computer system 1000 generally comprises a storage device 1070.Storage device 1070 can from a variety of computers It reads to select in medium, computer-readable medium refers to any available medium that can be accessed by computer system 1000, Including mobile and fixed two media.For example, computer-readable medium includes but not limited to, flash memory(Miniature SD Card), CD-ROM, digital versatile disc(DVD)Or other optical disc storages, cassette, tape, disk storage or other magnetic storages are set Any other medium that is standby or can simultaneously being accessed available for storage information needed by computer system 1000.
Computer system 1000 further includes input unit 1080 and input interface 1090(For example, I/O control).User can With by input unit 1080, such as the touch panel equipment in keyboard, mouse, display device 1040, input instruction and information arrive In computer system 1000.Input unit 1080 is typically to be connected on system bus 1022 by input interface 1090, but It can also be connected by other interfaces or bus structures, such as universal serial bus(USB).
Computer system 1000 can carry out logical connection with one or more network equipment in a network environment.Network is set Standby can be PC, server, router, smart phone, tablet computer or other common network nodes.Department of computer science System 1000 passes through LAN(LAN)Interface 1100 or mobile comm unit 1110 are connected with the network equipment.LAN(LAN) Refer in finite region, such as family, school, computer laboratory or the office building using the network media, interconnection composition Computer network.WiFi and twisted-pair feeder wiring Ethernet are two kinds of technologies of most common structure LAN.WiFi is a kind of It can make 1000 swapping data of computer system or the technology of wireless network is connected to by radio wave.Mobile comm unit 1110 are answered and are made a phone call by radio communication diagram while being moved in a wide geographic area.In addition to logical Other than words, mobile comm unit 1110 is also supported to carry out in 2G, 3G or the 4G cellular communication system for providing mobile data service Internet access.
It should be pointed out that other computer systems including than 1000 more or fewer subsystems of computer system It can be suitably used for inventing.For example, computer system 1000 can include exchanging the bluetooth unit of data in short distance, for shining The imaging sensor of phase and the accelerometer for measuring acceleration.
As detailed above, the login of instant messaging multiple terminals can be performed by being suitable for the invention computer system 1000 When login status delivery method specified operation.Computer system 1000 operates in computer-readable Jie by processor 1010 The form of software instruction in matter performs these operations.These software instructions from storage device 1070 or can pass through local Network interface 1100 is read into from another equipment in memory 1020.The software instruction being stored in memory 1020 causes processor 1010 perform the delivery method of login status when above-mentioned instant messaging multiple terminals logs in.In addition, by hardware circuit or firmly Part circuit combination software instruction also can equally realize the present invention.Therefore, realize that the present invention is not limited to any specific hardware circuits With the combination of software.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

  1. The delivery method of login status, includes the following steps when 1. a kind of instant messaging multiple terminals logs in:
    Receive the message that instant messaging account is logged on or off in a terminal;
    Obtain the end message of other terminals that the instant messaging account currently logs in;
    Whether the priority of message counterpart terminal logged on or off described in judgement is higher than the priority of other terminals, if It is then to issue terminal login status to online good friend's account of the instant messaging account, described in terminal login status instruction Login status of the instant messaging account on the counterpart terminal changes.
  2. The delivery method of login status when 2. instant messaging multiple terminals according to claim 1 logs in, which is characterized in that when The message of reception is instant messaging account in the message that a terminal logs in, and the terminal login status that issues is comprising the login The login status of the end message of message counterpart terminal and the instant messaging account on the counterpart terminal.
  3. The delivery method of login status when 3. instant messaging multiple terminals according to claim 2 logs in, which is characterized in that when The message of reception is instant messaging account in the message that a terminal exits:
    The method further includes:Obtain highest priority terminal in other terminals that the instant messaging account currently logs in;
    End message of the terminal login status issued comprising the highest priority terminal and the instant messaging account are at this Login status in highest priority terminal.
  4. The delivery method of login status when 4. instant messaging multiple terminals according to claim 1 logs in, which is characterized in that institute The method of stating further includes:
    Search the memory space of the registration terminal information of the instant messaging account;
    When reception message for instant messaging account in the message that a terminal logs in when, institute is stored in the memory space found State the end message of the message counterpart terminal of login;
    When reception message for instant messaging account in the message that a terminal exits when, institute is deleted in the memory space found State the end message of message counterpart terminal exited.
  5. The delivery method of login status when 5. instant messaging multiple terminals according to claim 4 logs in, which is characterized in that The step of end message that the message counterpart terminal of the login is stored in the memory space found, includes:
    Whether remaining space stores the end message of the counterpart terminal enough in the memory space that judgement is found, if so, The end message of the counterpart terminal is stored in the memory space found, if it is not, then apply for the memory space of bigger, End message shifting in the memory space found is deposited to the memory space newly applied, and the terminal of the counterpart terminal is believed Breath is stored to the memory space newly applied.
  6. 6. a kind of sending system of login status when instant messaging multiple terminals logs in, which is characterized in that including:
    Message reception module, for receiving the message that instant messaging account is logged on or off in a terminal;
    Terminal acquisition module, for obtaining the end message of other terminals that the instant messaging account currently logs in;
    Priority comparison module, for judging whether the priority of message counterpart terminal logged on or off is more other than described The priority of terminal is high;
    State issues module, if for the excellent of other terminals described in the priority ratio of message counterpart terminal logged on or off First grade is high, then issues terminal login status to online good friend's account of the instant messaging account, terminal login status instruction Login status of the instant messaging account on the counterpart terminal changes.
  7. The sending system of login status when 7. instant messaging multiple terminals according to claim 6 logs in, which is characterized in that when The message of reception is instant messaging account in the message that a terminal logs in, and the state issues the terminal login shape that module issues State includes the login of the end message and the instant messaging account of the message counterpart terminal of the login on the counterpart terminal State.
  8. The sending system of login status when 8. instant messaging multiple terminals according to claim 7 logs in, which is characterized in that institute State terminal acquisition module be additionally operable to message when reception for instant messaging account in the message that a terminal exits when, obtain it is described i.e. When other terminals for currently logging in of communications account in highest priority terminal;
    When reception message for instant messaging account in the message that a terminal exits when, the state issues the terminal that module issues End message of the login status comprising the highest priority terminal and the instant messaging account are in the highest priority terminal On login status.
  9. The sending system of login status when 9. instant messaging multiple terminals according to claim 6 logs in, which is characterized in that institute The system of stating further includes:
    Memory space searching module, for searching the memory space of the registration terminal information of the instant messaging account;
    End message module for reading and writing, for when the message of reception for instant messaging account in the message that a terminal logs in when, looking into The end message of the message counterpart terminal of the login is stored in the memory space found, when the message of reception is instant messaging account Number in the message that a terminal exits, deleted in the memory space found described in the terminal of the message counterpart terminal letter that exits Breath.
  10. The sending system of login status when 10. instant messaging multiple terminals according to claim 9 logs in, which is characterized in that The end message module for reading and writing be used for when reception message for instant messaging account in the message that a terminal logs in when, judge to look into Whether remaining space stores the end message of the counterpart terminal enough in the memory space found, if so, in the lookup To memory space in store the end message of the counterpart terminal, if it is not, then applying for the memory space of bigger, by what is found End message shifting in memory space is deposited to the memory space newly applied, and the end message of the counterpart terminal is stored to new The memory space of application.
CN201310754636.0A 2013-12-31 2013-12-31 The delivery method and system of login status when instant messaging multiple terminals logs in Active CN104753825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310754636.0A CN104753825B (en) 2013-12-31 2013-12-31 The delivery method and system of login status when instant messaging multiple terminals logs in

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310754636.0A CN104753825B (en) 2013-12-31 2013-12-31 The delivery method and system of login status when instant messaging multiple terminals logs in

Publications (2)

Publication Number Publication Date
CN104753825A CN104753825A (en) 2015-07-01
CN104753825B true CN104753825B (en) 2018-06-15

Family

ID=53592952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310754636.0A Active CN104753825B (en) 2013-12-31 2013-12-31 The delivery method and system of login status when instant messaging multiple terminals logs in

Country Status (1)

Country Link
CN (1) CN104753825B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878252B (en) * 2016-08-25 2020-04-24 阿里巴巴集团控股有限公司 Method for establishing password-free login relationship, method for clearing account and device thereof
CN106888384B (en) * 2017-03-23 2019-08-30 北京奇艺世纪科技有限公司 A kind of receiving handling method and device of offline message
CN107680414A (en) * 2017-11-09 2018-02-09 佛山市海科云筹信息技术有限公司 Aircraft monitoring and managing method, device, storage medium and server
CN108234490B (en) * 2018-01-02 2020-12-18 联想(北京)有限公司 Control method and service equipment
CN111654729B (en) * 2020-05-27 2021-11-23 海信视像科技股份有限公司 Account login state updating method and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068153A (en) * 2006-12-28 2007-11-07 腾讯科技(深圳)有限公司 Person to contact on-line notice setting method and person to contact on-line noticing method
CN101150542A (en) * 2007-11-12 2008-03-26 腾讯科技(深圳)有限公司 Method for displaying user status in instant communication system
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130012235A (en) * 2011-07-18 2013-02-01 삼성전자주식회사 Apparatus and method for providing community service in portable terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068153A (en) * 2006-12-28 2007-11-07 腾讯科技(深圳)有限公司 Person to contact on-line notice setting method and person to contact on-line noticing method
CN101150542A (en) * 2007-11-12 2008-03-26 腾讯科技(深圳)有限公司 Method for displaying user status in instant communication system
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system

Also Published As

Publication number Publication date
CN104753825A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN104699378B (en) Information browsing method and system in more people's chats
CN104144116B (en) Instant communication method and instant communicating system
US8972519B2 (en) Optimization of multimedia service over an IMS network
US8630624B2 (en) Managing notification messages
CN104753825B (en) The delivery method and system of login status when instant messaging multiple terminals logs in
CN109547547A (en) Return source dispatching method, device and its storage medium
CN104580108A (en) Information prompting method and system as well as server
CN103716230A (en) Message sending method, device and server
CN104965692B (en) The method and system of striding course display data in desktop application
CN102594859B (en) A kind of rendering method of business datum, terminal, server and system
CN104391846A (en) Method and system for searching social application public account numbers
CN104572771A (en) Method and device for displaying processing state
US9621495B1 (en) Anonymous messaging proxy
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN106330492A (en) Method, device and system of configuring user equipment forwarding table
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
CN111580882A (en) Application program starting method, device, computer system and medium
US8296055B2 (en) Method and system for positional communication
CN106412679B (en) Media content acquisition method, media content providing method, media content acquisition device, media content providing device and media content providing system
CN104579901A (en) Method and device for showing result state of file transmission
CN104253753A (en) Transmission management device, system and method
CN112448878B (en) PPPoE transparent transmission method, PPPoE server and electronic equipment
CN114793234B (en) Message processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant