CN106411713A - Status notification method and server - Google Patents

Status notification method and server Download PDF

Info

Publication number
CN106411713A
CN106411713A CN201610940867.4A CN201610940867A CN106411713A CN 106411713 A CN106411713 A CN 106411713A CN 201610940867 A CN201610940867 A CN 201610940867A CN 106411713 A CN106411713 A CN 106411713A
Authority
CN
China
Prior art keywords
client
time period
running status
server
announcement information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610940867.4A
Other languages
Chinese (zh)
Other versions
CN106411713B (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 Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment 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 Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201610940867.4A priority Critical patent/CN106411713B/en
Publication of CN106411713A publication Critical patent/CN106411713A/en
Application granted granted Critical
Publication of CN106411713B publication Critical patent/CN106411713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

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

Abstract

The embodiment of the invention discloses a status determination method and a server. The method comprises steps: the identifier of a client whose operation status is marked as an online status in an online database is acquired; when online status notification information sent by the client corresponding to the client identifier is received in a preset time period, the current operation status of the client is determined to be the online status; and when the online status notification information sent by the client is not received in the preset time period, the current operation status of the client is determined to be an offline status. When the embodiment of the invention is adopted, the operation status of the client can be accurately recognized, and the online status recognition accuracy can be improved.

Description

A kind of state notice method and server
Technical field
The present invention relates to Internet technical field, more particularly, to a kind of state notice method and server.
Background technology
At present, much in online programme televised live, positioned at main broadcaster user place channel (also referred to as Virtual Space or virtual room Between) in point broadcasting user can carry out interaction and main broadcaster user between.Main broadcaster user in this channel or point broadcasting user are permissible Know all members entering in this channel by online list, then the maintenance of online list is particularly important.When main broadcaster user's wound Build channel or point broadcasting user when entering this channel, server can determine that this user is in presence;Main broadcaster user or Point broadcasting user sends to server after exiting request, and server can determine that this user is in off-line state.But due to net When the factor such as network fault or power-off leads to user extremely to exit, server thinks that this user is in presence, online list In yet suffer from the client identification of this user, then other members in this channel think that this user is still within presence, The running status of user cannot be accurately identified, lead to the precision of presence identification relatively low.
Content of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of state to determine method and server, can be accurate Really identify the running status of client, improve the precision of presence identification.
In order to solve above-mentioned technical problem, embodiments provide a kind of state and determine method, methods described includes:
Obtain the client identification that running status in online database is labeled as the client of presence;
When the presence announcement information receiving the corresponding client transmission of described client identification in preset time period When, determine that the current running status of described client is presence;
When not receiving the described presence announcement information that described client sends in described preset time period, really The current running status of fixed described client is off-line state.
Correspondingly, the embodiment of the present invention additionally provides a kind of server, and described server includes:
Identifier acquisition module, for obtaining the client that running status in online database is labeled as the client of presence End mark;
Presence determining module, sends out for receiving the corresponding client of described client identification in preset time period During the presence announcement information sending, determine that the current running status of described client is presence;
Off-line state determining module, does not receive described in described client transmission for working as in described preset time period During presence announcement information, determine that the current running status of described client is off-line state.
Implement the embodiment of the present invention, be labeled as the client of presence by running status in acquisition online database Client identification, when the presence announcement information receiving client identification corresponding client transmission in preset time period When, determine the current running status of client be presence, when do not receive in preset time period client transmission During line states announcement information, determine that the current running status of client is off-line state, the operation shape of client can be accurately identified State, improves the precision of presence identification.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings;
Fig. 1 is a kind of structural representation of the State determined system providing in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet that a kind of state providing in the embodiment of the present invention determines method;
Fig. 3 is a kind of structural representation of the server providing in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of the server providing in another embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of state and determine method, server obtains running status mark in online database For the client identification of the client of presence, send when receiving the corresponding client of client identification in preset time period Presence announcement information when, determine that the current running status of client is presence, when not connecing in preset time period When receiving the presence announcement information that client sends, determine that the current running status of client is off-line state.Relatively pass System state determine receive in method client transmission logging request when determine the current running status of this client be Line states, receive exiting of client transmission and determine during request that the current running status of this client is off-line state, due to When the factor such as network failure or power-off leads to client extremely to exit, server does not receive exiting of client transmission please Ask, then server determines that the current running status of this client is presence, and due to network failure in the embodiment of the present invention Or when the factors such as power-off lead to client extremely to exit, client cannot send presence announcement information to server, because This, when server does not receive the presence announcement information of this client transmission in preset time period, determines this client Current running status is off-line state, can accurately identify the running status of client, improves the precision of presence identification.
Based on above-mentioned principle, embodiments provide a kind of State determined system, this system can be such as instant The internets such as communications applications system, SNS (Social Networking Services, social network services) application system should Use system.Referring to Fig. 1, the framework of this State determined system at least includes:Server 101 and access to described server 101 At least one client 102.
Wherein, client 102 may operate in notebook computer, mobile phone, PAD (panel computer), car-mounted terminal or intelligence In the terminals such as energy wearable device, client 102 can include instant communication client (such as wechat client or QQ client End etc.), live client (the live client of such as style) or video playback client (such as Tengxun's videoconference client) etc.. The Internet, applications of at least one type can be run, including but not limited in terminal:Instant messaging application, SNS application etc.. User can use the Internet, applications by terminal, for example:User can submit social message by terminal in live room;Or Person, user can be interacted with the other users in the Internet, applications by terminal, for example user by terminal use wechat or The instant messagings such as person QQ are applied, the session interface between display and other users, and user can input social at this session interface Message etc.;Etc..Wherein, server 101 can be one of internet stand-alone service equipment, or by internet The cluster service equipment that multiple stand-alone service equipment collectively form;This server 101 can be used for processing the Internet, applications in realization Various demands during the function such as data configuration and information exchange, and, this server 101 can be used for internet should With in the related data of user, the interaction message between user and user be managed, for example safeguard online database.
Wherein, at least one client 102 accessing to server 101 may belong to same social networks cluster, should Each client in social networks cluster can mutually share the data such as word message, file, voice or video, social pass Assembly group is often that some microcommunities with general character are set up, and group members typically suffer from close contact, such as society Friendship relation cluster can be the virtual community set up based on certain common hobby, interest or demand, such as " shopping group ", " tourism group ", " stock group " or " the song live room of star recklessly " etc., and for example social networks cluster is based on certain real colony And the virtual community set up, as " classmate group ", " colleague group " or " fellow villager group " etc..
Online database can include the client mark of the client that running status in social networks cluster is presence Know, can be used for the running status pointing out group members to specify user.
Based on the structural representation of the State determined system shown in Fig. 1, the embodiment of the invention discloses the one kind shown in Fig. 2 State determines the schematic flow sheet of method.As shown in Fig. 2 this state determines that method may comprise steps of:
S201, obtains the client identification that running status in online database is labeled as the client of presence.
Server can obtain the client identification that running status in online database is labeled as the client of presence. Wherein client identification can be used for this client of unique mark, such as between the login account of user, the network of client mutually Agreement (Internet Protocol, IP) address even, media access control (Media Access Control, MAC) address Or International Mobile Station Equipment Identification (International Mobile Equipment Identity, IMEI) etc..
In implementing, different social networks clusters can correspond to different online databases, and online database can be Online list, online list can include the client identification of at least one client, each client identification in online list The running status of corresponding client is all labeled as presence, such as when user sends logging request by user end to server Afterwards, server can determine that the current running status of this client is presence, and the client identification by this client Store in online list;Lead to exception when client actively exits the reasons such as its affiliated social networks cluster or network failure When exiting, server can determine that the current running status of this client is off-line state, and deletes this client in online list The client identification at end.In order to accurately identify the running status of client, server needs timing to the client in online list The running status at end is identified, so that the running status current to client is updated, then server can obtain online The client identification of client in database.
S202, when the presence announcement information receiving client identification corresponding client transmission in preset time period When, determine that the current running status of client is presence.
After server obtains the client identification of client that in online database, running status is labeled as presence, Can decide whether to receive the presence announcement information that the corresponding client of this client identification sends in preset time period, When receiving the presence announcement information of this client transmission in preset time period, server can determine that client is worked as Front running status is presence.Wherein, the number that presence announcement information can be for empty data or data volume more than zero According to specifically not limited by the embodiment of the present invention.
In implementing, user can input login account etc. by client and set up communication link between information and server Connect, the running status of client is presence, and client can be by the communication connection timing between server to service Device sends presence announcement information, when the presence that server receives the transmission of this client in preset time period notifies It may be determined that the current running status of client is presence during information;If client actively exits its affiliated social networks The reason such as cluster or network failure leads to client extremely to exit, then the communication connection between client and server will be broken Open, client cannot send presence announcement information to server, then server does not receive this visitor in preset time period It may be determined that the current running status of client is off-line state during the presence announcement information that family end sends.
Optionally, server can obtain the client type of client, when the client type of client is the first kind During type, determine the corresponding first time period of the first kind, when the presence receiving client transmission in first time period During announcement information, determine that the current running status of client is presence.Wherein, client type can include the first kind And Second Type, such as broadcasting user based on the first kind, Second Type is a point broadcasting user, it should be noted that the present invention is implemented Including but not limited to two classes, the species of client type can be at least three classes to the species of the client type in example, for example Client type includes the first kind, Second Type and the 3rd type, and the first kind is group master, and Second Type is keeper, the Three types are domestic consumer, etc., specifically do not limited by the embodiment of the present invention.
For example, if broadcasting user based on the first kind, server obtains running status in online database and is labeled as in wire The client identification of the client of state, broadcasting user based on the client type of client corresponding to this client identification, due to master Interaction between broadcasting user and other users is more, higher to the real-time requirement of running state recognition, then the master of server configuration The transmission frequency that broadcasting user sends presence announcement information can be sent in sending out of line states announcement information higher than point broadcasting user Send frequency, the embodiment of the present invention is differed to the real-time requirement of running state recognition based on different clients, configure different clients Time period corresponding to the type of end, the validity of running state recognition can be improved, and improve resource utilization ratio.Exemplary , corresponding for the main broadcaster user time period can be configured to 20s by server, if user end to server send logging request it Afterwards, server stores the client identification of this client in online database, and based on the client type of this client Broadcasting user, after server sets up communication connection with this client, the transmission period assignment of this client can be by server 10s, and this transmission cycle is sent to this client, then this client can be once online to server transmission at interval of 10s State notification information, server judges that the presence announcement information receiving the transmission of this client from the last time begins to pass through The presence announcement information of this client transmission whether is received, when server received from the last time in the time period of 20s This client send presence announcement information begin to pass through receive in the time period of 20s this client transmission in wire During state announcement information, server can determine that the current running status of this client is presence.
Optionally, online database can also include the client type of client corresponding to each client identification, then It may be determined that the client of client corresponding to this client identification after the client identification that server obtains in online database End type, and judge that the presence whether receiving the transmission of this client within this client type corresponding time period notifies Information, when receiving the presence announcement information of this client transmission within this client type corresponding time period, clothes Business device can determine that the current running status of this client is presence;When within this client type corresponding time period not When receiving the presence announcement information that this client sends, server can determine that the current running status of this client is Off-line state.
Optionally, when server receives the presence announcement information of client transmission, this presence announcement information Client type can be carried, then server may determine that whether receive this visitor within this client type corresponding time period Family end send presence announcement information, when receive within this client type corresponding time period this client transmission During presence announcement information, server can determine that the current running status of this client is presence;When in this client When not receiving the presence announcement information that this client sends in the type corresponding time period of end, server can determine this The current running status of client is off-line state.
S203, when not receiving the presence announcement information of client transmission in preset time period, determines client Current running status is held to be off-line state.
After server obtains the client identification of client that in online database, running status is labeled as presence, Can decide whether to receive the presence announcement information that the corresponding client of this client identification sends in preset time period, When not receiving the presence announcement information of this client transmission in preset time period, server can determine client Current running status is off-line state.
Optionally, server can obtain the client type of client, when the client type of client is Equations of The Second Kind During type, determine the corresponding second time period of Second Type, when do not receive in second time period client transmission in wire During state announcement information, determine that the current running status of client is off-line state.
For example, if Second Type is point broadcasting user, server obtains running status in online database and is labeled as in wire The client identification of the client of state, the client type of client corresponding to this client identification is point broadcasting user, due to point Interaction between broadcasting user and other users is less, relatively low to the real-time requirement of running state recognition, then the point of server configuration The transmission frequency that broadcasting user sends presence announcement information can send sending out of presence announcement information less than main broadcaster user Send frequency, the embodiment of the present invention is differed to the real-time requirement of running state recognition based on different clients, configure different clients Time period corresponding to the type of end, the validity of running state recognition can be improved, and improve resource utilization ratio.Exemplary , corresponding for the broadcasting user time period can be configured to 30s by server, if user end to server send logging request it Afterwards, server stores the client identification of this client in online database, and the client type of this client is point Broadcasting user, does not receive this client and sends out when server and this client are set up communication connection and begun to pass through in the time period of 30s During the presence announcement information sending, server can determine that the current running status of this client is off-line state;If clothes Business device once receives, upper, the presence announcement information that this client sends, when server receives this client from the last time End send presence announcement information begin to pass through do not receive in the time period of 30s this client transmission presence lead to When knowing information, server can determine that the current running status of this client is off-line state.
Optionally, after server determines that the current running status of client is off-line state, online data can be deleted Client identification in storehouse.In implementing, server do not receive in preset time period this client transmission in wire It may be determined that the current running status of client is off-line state during state announcement information, and delete the client in online database End mark, to guarantee that the current running status of client corresponding to the client identification in online database is presence.
Optionally, server, when the time interval that client is submitted to is detected, can generate transmission cycle renewal letter Breath, wherein sends cycle fresh information and can carry time interval, and server can send the renewal of this transmission cycle to client Information, so that client is with time interval for sending periodic feedback presence announcement information.
In implementing, when server load is higher, server can generate the time interval to client, Jin Ersheng Become transmission cycle fresh information, and send this transmission cycle fresh information to client.For example, client corresponding to the first kind The transmission cycle be 10s, transmission cycle of client corresponding to Second Type is 30s, because server present load is higher, is Lift system resource utilization, server can increase the corresponding time interval of different clients type, such as by the first kind Time interval corresponding to type is adjusted to 30s, and the corresponding time interval of Second Type is adjusted to 60s, and that is, server generates to visitor Family end type is the time interval of the client of the first kind, and wherein this time interval is 30s, and generates transmission cycle renewal letter Breath, is sent to this client by sending cycle fresh information, so that this client sends a presence at interval of 30s notifying Information;Server can also generate to client type for the client of Second Type time interval, wherein this time interval For 60s, and generate transmission cycle fresh information, be sent to this client by sending cycle fresh information, so that this client is every Interval 60s sends a presence announcement information.
Optionally, after server sends this transmission cycle fresh information to client, preset time period can be carried out Update, the time period after being updated, when receiving time after presence announcement information begins to pass through renewal from the last time When receiving the presence announcement information that client sends before section, server can determine the current running status of client For presence;When not receiving visitor when the last time receiving the time period after presence announcement information begins to pass through renewal During the presence announcement information that family end sends, server can determine that the current running status of client is off-line state.Its In, the time period after renewal can be more than the time interval that client is submitted to, and that is, server judges whether to receive client Send presence announcement information judge the cycle be more than this client transmission presence announcement information the transmission cycle, example As judged, the cycle can be two transmission cycles, exemplary, when the cycle that sends is for 30s, judges that the cycle can be 60s.
For example, the time interval that transmission cycle fresh information carries is 30s, then client is sent once by interval of 10s Presence announcement information is updated to send a presence announcement information at interval of 30s, and server sends to this client Before this transmission cycle fresh information, server by interval of 20s judge whether to receive the transmission of this client in wire The mode of state announcement information determines the current running status of this client, due to update after time period be 60s, then server to After this client sends this transmission cycle fresh information, server may determine that and receives the client of the first kind from the last time The presence announcement information that end sends begins to pass through the presence whether receiving the transmission of this client in the time period of 60s Announcement information, if it is, determine that the current running status of this client is presence;If it is not, then determination client Current running status is off-line state.
And for example, the time interval that transmission cycle fresh information carries is 60s, then client is sent once by interval of 30s Presence announcement information is updated to send a presence announcement information at interval of 60s, and server is to the visitor of Second Type Before family end sends this transmission cycle fresh information, at interval of 60s, server is by judging whether that receiving this client sends The mode of presence announcement information determine the current running status of this client, because the time period after updating is 120s, After then server sends this transmission cycle fresh information to this client, server may determine that and receives first from the last time The presence announcement information that the client of type sends begins to pass through and whether receives this client in the time period of 120s and send out The presence announcement information sending, if it is, determine that the current running status of this client is presence;If it is not, Then determine that the current running status of client is off-line state.
In the embodiment of the present invention, in server acquisition online database, running status is labeled as the client of presence Client identification, when the presence announcement information receiving client identification corresponding client transmission in preset time period When, determine the current running status of client be presence, when do not receive in preset time period client transmission During line states announcement information, determine that the current running status of client is off-line state, the operation shape of client can be accurately identified State, improves the precision of presence identification.
Refer to Fig. 3, Fig. 3 is a kind of structural representation of the server providing in the embodiment of the present invention, described server Can be used for implementing to combine the part or all of step in the embodiment of the method shown in Fig. 2, the clothes in the present embodiment as shown in the figure Business device at least can include identifier acquisition module 301, presence determining module 302 and off-line state determining module 303, its In:
Identifier acquisition module 301, is labeled as the client of presence for obtaining running status in online database Client identification.
Presence determining module 302, receives described client identification correspondence client for working as in preset time period During the presence announcement information that end sends, determine that the current running status of described client is presence.
Off-line state determining module 303, does not receive what described client sent for working as in described preset time period During described presence announcement information, determine that the current running status of described client is off-line state.
Optionally, described presence determining module 302, specifically for:
Obtain the client type of described client.
When the client type of described client is the first kind, determine the described first kind corresponding very first time Section.
When receiving the described presence announcement information that described client sends in described first time period, determine The current running status of described client is presence.
Optionally, the server in the embodiment of the present invention can also include:
Mark removing module 304, determines the current operation shape of described client for described off-line state determining module 303 After state is off-line state, delete the described client identification in described online database.
Optionally, the server in the embodiment of the present invention can also include:
Fresh information generation module 305, for when the time interval that described client is submitted to is detected, generating and sending Cycle fresh information, described transmission cycle fresh information carries described time interval.
Fresh information sending module 306, for sending described transmission cycle fresh information to described client, so that described Client is with described time interval for sending presence announcement information described in periodic feedback.
Optionally, the server in the embodiment of the present invention can also include:
Update module 307, for sending the described transmission cycle in described fresh information sending module 306 to described client After fresh information, described preset time period is updated, the time period after being updated.
Described presence determining module 302, is additionally operable to open when receiving described presence announcement information from the last time When beginning receives, before the time period after described renewal, the described presence announcement information that described client sends, determine The current running status of described client is presence.
Described off-line state determining module 303, is additionally operable to open when receiving described presence announcement information from the last time When beginning not receiving, during the time period after described renewal, the described presence announcement information that described client sends, determine The current running status of described client is off-line state.
In the embodiment of the present invention, identifier acquisition module 301 obtains running status in online database and is labeled as presence Client client identification, when receiving the presence that the corresponding client of client identification sends in preset time period During announcement information, presence determining module 302 determines that the current running status of client is presence, when in Preset Time When not receiving the presence announcement information that client sends in section, off-line state determining module 303 determines that client is current Running status be off-line state, can accurately identify the running status of client, improve the precision of presence identification.
Refer to Fig. 4, Fig. 4 is a kind of structural representation of the server providing in another embodiment of the present invention, the present invention The server that embodiment provides can be used for implementing the method that the embodiment of the present invention shown in above-mentioned Fig. 2 is realized, for the ease of saying Bright, illustrate only the part related to the embodiment of the present invention, particular technique details does not disclose, refer to this shown in Fig. 2 Bright embodiment.
As shown in figure 4, this server includes:At least one processor 401, such as CPU, at least one input unit 403, At least one output device 404, memory 405, at least one communication bus 402.Wherein, communication bus 402 is used for realizing this Connection communication between a little assemblies.Wherein, input unit 403 is specifically as follows network interface etc., sends for receiving client Presence announcement information.Wherein, output device 404 is specifically as follows network interface etc., for sending to client Cycle fresh information.Wherein, memory 405 may comprise high-speed RAM memory it is also possible to also include non-labile storage Device, for example, at least one magnetic disc store, comprise the webpage at pre-set user interface etc. specifically for storage.Memory 405 is optional Can comprise the storage device that at least one is located remotely from aforementioned processor 401.Batch processing generation is stored in memory 405 Code, and processor 401, input unit 403 and output device 404 call the program code of storage in memory 405, are used for holding Row is following to be operated:
Processor 401 obtains the client identification that running status in online database is labeled as the client of presence.
When input unit 403 receive that the corresponding client of described client identification sends in preset time period in wire During state announcement information, processor 401 determines that the current running status of described client is presence.
When the described presence that input unit 403 does not receive described client transmission in described preset time period leads to When knowing information, processor determines that the current running status of described client is off-line state.
Optionally, described correspond to client when input unit 403 receives described client identification in preset time period During the presence announcement information sending, processor 401 determines that the current running status of described client is presence, specifically Can be:
Processor 401 obtains the client type of described client.
When the client type of described client is the first kind, processor 401 determines that the described first kind is corresponding First time period.
When input unit 403 receives the described presence notice that described client sends in described first time period During information, processor 401 determines that the current running status of described client is presence.
Optionally, the described institute not receiving described client transmission when input unit 403 in described preset time period When stating presence announcement information, after processor 401 determines that the current running status of described client is off-line state, also use Operate below execution:
The described client identification in described online database deleted by processor 401.
Optionally, processor 401 can also carry out following operation:
When the time interval that described client is submitted to is detected, processor 401 generates transmission cycle fresh information, institute State transmission cycle fresh information and carry described time interval.
Output device 404 sends described transmission cycle fresh information to described client, so that described client is with described Time interval is to send presence announcement information described in periodic feedback.
Optionally, after described output device 404 sends described transmission cycle fresh information to described client, acceptable Execution is following to be operated:
Described preset time period is updated, the time period after being updated.
When input unit 403 from the last time receive described presence announcement information begin to pass through described update after when Between when receiving the described presence announcement information that described client sends before section, processor 401 determines described client Current running status is presence;
When input unit 403 from the last time receive described presence announcement information begin to pass through described update after when Between Duan Shiwei when receiving the described presence announcement information that described client sends, processor 401 determines described client Current running status is off-line state.
Specifically, the server introduced in the embodiment of the present invention can combine, in order to implement the present invention, the method that Fig. 2 introduces Part or all of flow process in embodiment.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed be only present pre-ferred embodiments, certainly the right model of the present invention can not be limited with this Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

1. a kind of state determines method it is characterised in that methods described includes:
Obtain the client identification that running status in online database is labeled as the client of presence;
When receiving the presence announcement information that the corresponding client of described client identification sends in preset time period, really The current running status of fixed described client is presence;
When not receiving the described presence announcement information that described client sends in described preset time period, determine institute Stating the current running status of client is off-line state.
2. the method for claim 1 is it is characterised in that described ought receive described client mark in preset time period When knowing the presence announcement information that corresponding client sends, determine that the current running status of described client is presence, Including:
Obtain the client type of described client;
When the client type of described client is the first kind, determine the corresponding first time period of the described first kind;
When receiving the described presence announcement information that described client sends in described first time period, determine described The current running status of client is presence.
3. the method for claim 1 is not it is characterised in that described ought receive described visitor in described preset time period During the described presence announcement information that family end sends, after determining that the current running status of described client is off-line state, Also include:
Delete the described client identification in described online database.
4. the method for claim 1 is it is characterised in that methods described also includes:
When the time interval that described client is submitted to is detected, generate transmission cycle fresh information, the described transmission cycle is more Fresh information carries described time interval;
Send described transmission cycle fresh information to described client, so that described client is with described time interval for sending week Phase feeds back described presence announcement information.
5. method as claimed in claim 4 is it is characterised in that described send described transmission cycle renewal letter to described client After breath, also include:
Described preset time period is updated, the time period after being updated;
Received before receiving time period after described presence announcement information begins to pass through described renewal from the last time During the described presence announcement information that described client sends, determine that the current running status of described client is in wire State;
When from the last time receive described presence announcement information begin to pass through described update after time period when do not receive During the described presence announcement information that described client sends, determine that the current running status of described client is offline shape State.
6. a kind of server is it is characterised in that described server includes:
Identifier acquisition module, for obtaining the client mark that running status in online database is labeled as the client of presence Know;
Presence determining module, receives what the corresponding client of described client identification sent for working as in preset time period During presence announcement information, determine that the current running status of described client is presence;
Off-line state determining module, does not receive the described online of described client transmission for working as in described preset time period During state notification information, determine that the current running status of described client is off-line state.
7. server as claimed in claim 6 is it is characterised in that described presence determining module, specifically for:
Obtain the client type of described client;
When the client type of described client is the first kind, determine the corresponding first time period of the described first kind;
When receiving the described presence announcement information that described client sends in described first time period, determine described The current running status of client is presence.
8. server as claimed in claim 6 is it is characterised in that described server also includes:
For described off-line state determining module, mark removing module, determines that the current running status of described client is offline shape After state, delete the described client identification in described online database.
9. server as claimed in claim 6 is it is characterised in that described server also includes:
Fresh information generation module, for when the time interval that described client is submitted to is detected, generating the transmission cycle more Fresh information, described transmission cycle fresh information carries described time interval;
Fresh information sending module, for sending described transmission cycle fresh information to described client, so that described client With described time interval for sending presence announcement information described in periodic feedback.
10. server as claimed in claim 9 is it is characterised in that described server also includes:
Update module, for described fresh information sending module to described client send described transmission cycle fresh information it Afterwards, described preset time period is updated, the time period after being updated;
Described presence determining module, is additionally operable to begin to pass through institute when receiving described presence announcement information from the last time When receiving the described presence announcement information that described client sends before stating the time period after renewal, determine described client Current running status is held to be presence;
Described off-line state determining module, is additionally operable to begin to pass through institute when receiving described presence announcement information from the last time When not receiving the described presence announcement information that described client sends when stating the time period after renewal, determine described client Current running status is held to be off-line state.
CN201610940867.4A 2016-10-24 2016-10-24 State notification method and server Active CN106411713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610940867.4A CN106411713B (en) 2016-10-24 2016-10-24 State notification method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610940867.4A CN106411713B (en) 2016-10-24 2016-10-24 State notification method and server

Publications (2)

Publication Number Publication Date
CN106411713A true CN106411713A (en) 2017-02-15
CN106411713B CN106411713B (en) 2020-06-05

Family

ID=58012685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610940867.4A Active CN106411713B (en) 2016-10-24 2016-10-24 State notification method and server

Country Status (1)

Country Link
CN (1) CN106411713B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888384A (en) * 2017-03-23 2017-06-23 北京奇艺世纪科技有限公司 A kind of receiving handling method and device of offline message
CN107205157A (en) * 2017-05-17 2017-09-26 贵阳朗玛信息技术股份有限公司 Net cast method based on IPTV, apparatus and system
CN108632234A (en) * 2017-08-28 2018-10-09 北京视联动力国际信息技术有限公司 A kind of user login method and device
CN113301063A (en) * 2020-02-24 2021-08-24 中国移动通信集团上海有限公司 Method, device and equipment for determining equipment information of Internet of things and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552740A (en) * 2009-05-14 2009-10-07 腾讯科技(北京)有限公司 Instant communication system, clients, server and method for judging on-line state
US20090313552A1 (en) * 2008-06-16 2009-12-17 Microsoft Corporation Online/offline proto link behavior and proto page conflict resolution
CN102647314A (en) * 2012-05-16 2012-08-22 深圳市乐唯科技开发有限公司 Client side on-line state judgment method and system
CN103297323A (en) * 2013-05-02 2013-09-11 华为软件技术有限公司 Method and device for sending user states
CN103873895A (en) * 2012-12-14 2014-06-18 中国传媒大学 DVB/IPTV dual-mode interactive business protection system
CN105075276A (en) * 2013-01-11 2015-11-18 瑞典爱立信有限公司 Technique for operating client and server devices in a broadcast communication network
JP2016005640A (en) * 2015-09-03 2016-01-14 大都販売株式会社 server
US20160240036A1 (en) * 2011-05-24 2016-08-18 Zynga Inc. Online game with matching of different data types

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090313552A1 (en) * 2008-06-16 2009-12-17 Microsoft Corporation Online/offline proto link behavior and proto page conflict resolution
CN101552740A (en) * 2009-05-14 2009-10-07 腾讯科技(北京)有限公司 Instant communication system, clients, server and method for judging on-line state
US20160240036A1 (en) * 2011-05-24 2016-08-18 Zynga Inc. Online game with matching of different data types
CN102647314A (en) * 2012-05-16 2012-08-22 深圳市乐唯科技开发有限公司 Client side on-line state judgment method and system
CN103873895A (en) * 2012-12-14 2014-06-18 中国传媒大学 DVB/IPTV dual-mode interactive business protection system
CN105075276A (en) * 2013-01-11 2015-11-18 瑞典爱立信有限公司 Technique for operating client and server devices in a broadcast communication network
CN103297323A (en) * 2013-05-02 2013-09-11 华为软件技术有限公司 Method and device for sending user states
JP2016005640A (en) * 2015-09-03 2016-01-14 大都販売株式会社 server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888384A (en) * 2017-03-23 2017-06-23 北京奇艺世纪科技有限公司 A kind of receiving handling method and device of offline message
CN106888384B (en) * 2017-03-23 2019-08-30 北京奇艺世纪科技有限公司 A kind of receiving handling method and device of offline message
CN107205157A (en) * 2017-05-17 2017-09-26 贵阳朗玛信息技术股份有限公司 Net cast method based on IPTV, apparatus and system
CN108632234A (en) * 2017-08-28 2018-10-09 北京视联动力国际信息技术有限公司 A kind of user login method and device
CN113301063A (en) * 2020-02-24 2021-08-24 中国移动通信集团上海有限公司 Method, device and equipment for determining equipment information of Internet of things and storage medium
CN113301063B (en) * 2020-02-24 2023-02-28 中国移动通信集团上海有限公司 Method, device and equipment for determining equipment information of Internet of things and storage medium

Also Published As

Publication number Publication date
CN106411713B (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN106060107B (en) A kind of method and system that service request by all kinds of means is uniformly accessed into
EP3920562A1 (en) Method and system for performing charging processing on network slice client, and related device
CN108965912B (en) A kind of method, client and the server of video data processing
CN106411713A (en) Status notification method and server
EP2989545A1 (en) Defining interdependent virtualized network functions for service level orchestration
CN104144098A (en) Information pushing method and system and pushing server equipment
CN114501469A (en) Method, device and system for configuring network slice
CN107636722A (en) For the management method and management server using multiple SIM card
WO2022116665A1 (en) Method and system for adjusting tcp flow
US20220408332A1 (en) Method for advertising route, network element, system, and device
CN103763206B (en) Network scheduling method and gateway
US10478731B2 (en) Method and apparatus for storing user data
US9900804B2 (en) Method and device for processing to share network resources, and method, device and system for sharing network resources
CN111436029B (en) Method, system and related equipment for carrying out charging processing on network slice example
CN109104309B (en) Edge server management system and method of CDN (content delivery network)
CN108833167B (en) Communication optimization system and method based on edge calculation
CN113382065A (en) File downloading method, device, system, equipment and storage medium
CN111193778A (en) Method, device, equipment and medium for WEB service load balancing
CN110401709A (en) Processing method, device and the storage medium of session in a kind of instant messaging application
CN115410580A (en) Voice recognition method, device, equipment and medium for command scheduling system
CN114422404A (en) Flow statistical method, device, equipment and storage medium
CN114143903A (en) Method, device, equipment and medium for configuring network slice PDU session
CN114338373A (en) Network element configuration data storage method and device, electronic equipment and storage medium
CN103986740A (en) Multi-terminal application supporting always-online-infrastructure method, devices and system
CN114697885A (en) LAN group charging method and related device

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