CN103457828A - Method and system for cross-website instant messaging - Google Patents

Method and system for cross-website instant messaging Download PDF

Info

Publication number
CN103457828A
CN103457828A CN2012101830462A CN201210183046A CN103457828A CN 103457828 A CN103457828 A CN 103457828A CN 2012101830462 A CN2012101830462 A CN 2012101830462A CN 201210183046 A CN201210183046 A CN 201210183046A CN 103457828 A CN103457828 A CN 103457828A
Authority
CN
China
Prior art keywords
user
website
server
access client
message
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
CN2012101830462A
Other languages
Chinese (zh)
Other versions
CN103457828B (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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201210183046.2A priority Critical patent/CN103457828B/en
Publication of CN103457828A publication Critical patent/CN103457828A/en
Application granted granted Critical
Publication of CN103457828B publication Critical patent/CN103457828B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and system for cross-website instant messaging. The method comprises the steps that a user logs in an IM server through a client terminal having access to a website; when a first user needs to send an instant message to a second user logging in a second website through a first website in which the first user logs, the instant message and an IM account number of the second user are sent to the IM server by a client terminal having access to the first website; according to the IM account number of the second user, the instant message is sent to a client terminal having access to the second website by the IM server; the client terminal having access to the second website sends the instant message to a webpage of the second website. According to the technical scheme, users logging in different websites can conduct instant messaging in a cross-website mode and rapid sharing of information is achieved.

Description

Cross-network instant messaging method and system
Technical Field
The invention relates to an information interaction technology in the communication field, in particular to an inter-network instant messaging method and an inter-network instant messaging system.
Background
Instant Messenger (IM) refers to a service that is capable of sending and receiving internet messages instantly. Since 1998, the functions of instant messaging are becoming more and more abundant, and various functions such as e-mail, blog, music, tv, game, and search are gradually integrated. Instant messaging is not a simple chat tool, but has been developed into a comprehensive information platform integrating communication, information, entertainment, search, e-commerce, office collaboration, enterprise customer service and the like. Instant messaging differs from e-mail in that the instant messaging conversation is instant. Most instant messaging can provide characteristics of status information such as displaying a list of contacts, whether a contact is online, whether a conversation with a contact can be made, etc.
At present, a Taobao network, a man-machine network, a Xinlang microblog and the like can provide own web instant messaging tools, so that a user can share information and can be in instant contact with friends or other online users. However, each portal is a separate instant messenger that maintains its own web page, and thus the contact between users is greatly restricted. For example, a user a and a user B both have accounts at the same time in the green microblog and the personal network, and are friends with each other in both websites, and if the user a logs in the green microblog, the user B logs in the personal network, although both users are on the internet, they cannot contact each other instantly; only when two users log on the same website at the same time, the instant contact can be carried out.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a cross-web instant messaging method and system, which can implement cross-web instant messaging between users logging in different websites, and implement fast information sharing.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides an instant communication system across networks, comprising: the system comprises an access client of a first website, an IM server and an access client of a second website; wherein,
the system comprises an access client of a first website, a first server and an IM server, wherein the access client is used for sending an instant message to a second user who logs in a second website through a first website which is logged in by the first user, and sending the instant message and an IM account number of the second user to the IM server;
the IM server is used for forwarding the instant message to an access client of a second website according to the IM account of a second user;
and the access client of the second website is used for forwarding the instant message to the webpage of the second website.
In the above-mentioned system, the first and second sensors are arranged in a single circuit,
the access client of the first website and/or the access client of the second website are/is also used for receiving login information sent by a webpage and sending login information to the IM server when a user logs in the website through the client, wherein the login information carries the unique identifier and additional information of the user;
the IM server is further used for opening an account for the user, adding the user information of the user and judging whether the user logs in other websites or not when judging that the user information of the user does not exist locally according to the login message; when judging that the user information of the user exists locally according to the login message, directly judging whether the user logs in other websites; the system is also used for broadcasting a user state updating message to all access clients concerning the websites of the user when judging that the user does not log in other websites, setting the user state to be online, inquiring an IM account number of the user, and sending the IM account number to the access clients of the websites which are logged in by the user through a response message; when judging that the user logs in other websites, directly inquiring an IM account of the user, and sending the IM account to an access client of the website logged in by the user through a response message;
and the access client of the first website and/or the access client of the second website are/is also used for judging whether the login is successful according to the response message and displaying corresponding contents according to whether the login is successful.
The invention also provides a cross-network instant communication method, wherein a user logs in an IM server through an access client of a website; further comprising:
when a first user needs to send an instant message to a second user who logs in a second website through a first website, an access client of the first website sends the instant message and an IM account of the second user to an IM server;
the IM server forwards the instant message to an access client of a second website according to the IM account of a second user;
and the access client of the second website forwards the instant message to the webpage of the second website.
In the above method, the logging in of the user to the IM server through the access client of the website is:
when a user logs in a website through a client, an access client of the website receives login information sent by a webpage and sends login information to an IM server, wherein the login information carries a unique identifier and additional information of the user;
when the IM server judges that the user information of the user does not exist locally according to the login message, firstly opening an account for the user, adding the user information of the user, and then judging whether the user logs in other websites or not; when the IM server judges that the user information of the user exists locally according to the login message, the IM server directly judges whether the user logs in other websites;
when the IM server judges that the user does not log in other websites, the IM server firstly broadcasts a user state updating message to all access clients concerning the websites of the user, sets the user state to be online, inquires the IM account of the user, and sends the IM account of the user to the access clients of the websites logged in by the user through a response message; when judging that the user logs in other websites, directly inquiring an IM account of the user, and sending the IM account to an access client of the website logged in by the user through a response message;
and the access client of the website logged in by the user judges whether the login is successful according to the response message and displays corresponding content according to whether the login is successful.
In the above-mentioned method, the first step of the method,
the login information comprises: the login account, the display name, the website identification, the unique identifier and the additional information of the user on the website;
the unique identifier of the user is a mailbox, a mobile phone number or a certificate number of the user; identifying whether the users registered in different websites are the same user or not according to the unique identifier; providing the same unique identifier when a user registers in each website, wherein the unique identifiers are consistent when the same user registers in different websites;
the additional information is remark information of the user or control information of the IM server.
In the above method, before the IM server determines that the user information of the user is not available locally according to the login message, the method further includes: the IM server judges whether the user information of the user exists locally according to the login message;
the IM server judges whether the user information of the user exists locally according to the login message: the analysis module in the IM server analyzes the login message, and sends the unique identifier and the additional information of the user obtained after analysis to the detection updating module in the IM server; the detection updating module maintains and manages a user information table, and judges whether the user information of the user exists locally or not according to the unique identifier sent by the analysis module and the user information table maintained and managed by the detection updating module.
In the above-mentioned method, the first step of the method,
each item in the user information table corresponds to user information of one user;
the user information comprises a unique identifier of the user, an IM account number of the user, a user state and a friend list of the user.
In the above method, the determining whether the user has logged in to another website is:
a detection updating module of the IM server judges whether the user state recorded in the user information table is an online state, if not, the user does not log in other websites; if the user is in the online state, the user is indicated to be logged in at other websites.
In the above method, the broadcasting the user state update message to all access clients that concern about the website of the user, and setting the user state to be online is:
a detection updating module of the IM server triggers a routing module of the IM server, and the routing module broadcasts a user state updating message to all access clients of websites concerning the user; meanwhile, the detection updating module sets the user state of the user to be online in a maintenance and management user information table;
and the access client of each website updates the displayed user state of the user according to the user state updating message broadcast by the routing module in the IM server.
In the above method, when the first user needs to send an instant message to a second user who logs in to a second website through a first website that logs in, the sending, by an access client of the first website, the instant message and an IM account of the second user to an IM server is:
after a user logs in an IM server through a website, if a first user in the IM server needs to send an instant message to a second user who logs in a second website through a logged-in first website, an access client of the first website receives the instant message sent by a webpage of the first website and sent to the webpage of the first website by the user through a client, and the access client of the first website sends the instant message and an IM account of the second user to the IM server.
In the above method, the step of forwarding the instant message to the access client of the second website by the IM server according to the IM account of the second user is:
the IM server comprises a routing module, an analysis module and a message sending module, wherein the routing module is used for sending the received IM account number and the received IM message to the IM server;
when the second user is in an online state, the routing module finds the corresponding second user according to the IM account sent by the access client of the first user, and sends the instant message to the access client of the second website logged by the second user; when the second user is in an off-line state, the routing module stores the instant message until the second user is in an on-line state, and then the instant message is actively pushed to an access client of a second website logged in by the second user, or the instant message is actively downloaded from the routing module by the access client of the second website.
In the above method, the step of forwarding the instant message to the web page of the second website by the access client of the second website is:
after an access client in a second website logged by a second user receives the instant message sent by the IM server, the access client forwards the instant message to a webpage of the second website, and the webpage of the second website displays the instant message; or the access client of the second website does not forward the instant message to the webpage of the second website.
According to the cross-network instant messaging method and the system, a user logs in an IM server through an access client of a website; when a first user needs to send an instant message to a second user who logs in a second website through a first website, an access client of the first website sends the instant message and an IM account of the second user to an IM server; the IM server forwards the instant message to an access client of a second website according to the IM account of a second user; the access client of the second website forwards the instant message to the webpage of the second website, so that cross-website instant communication among users logging in different websites can be realized, information can be rapidly shared, and the users and friends can conveniently communicate instantly; in addition, the state of the user can be synchronously updated in each website, the process of realizing instant messaging is simplified, and the friend information of the user is rapidly expanded.
Drawings
FIG. 1 is a schematic structural diagram of an instant messaging system for implementing cross-network of the present invention;
FIG. 2 is a flow chart of the method for implementing cross-network instant messaging according to the present invention;
fig. 3 is a flowchart illustrating a method for implementing step 201 in the present invention.
Detailed Description
The basic idea of the invention is: a user logs in an IM server through an access client of a website; when a first user needs to send an instant message to a second user who logs in a second website through a first website, an access client of the first website sends the instant message and an IM account of the second user to an IM server; the IM server forwards the instant message to an access client of a second website according to the IM account of a second user; and the access client of the second website forwards the instant message to the webpage of the second website.
The invention is further described in detail below with reference to the drawings and the specific embodiments.
The invention provides an instant communication system across networks, fig. 1 is a schematic structural diagram of an instant communication system across networks according to the invention, as shown in fig. 1, the system includes: an access client 10 of a first website, an IM server 20 and an access client 30 of a second website; wherein,
an access client 10 of a first website, configured to send an instant message and an IM account of a second user to an IM server 20 when the first user needs to send the instant message to the second user logged in to a second website through a logged-in first website;
the IM server 20 is used for forwarding the instant message to the access client 30 of the second website according to the IM account of the second user;
the access client 30 of the second website is used for forwarding the instant message to the webpage of the second website.
In the system, the access client 10 of the first website and/or the access client 30 of the second website are further configured to receive login information sent by a webpage and send a login message to the IM server 20 when a user logs in the website through the client, where the login message carries a unique identifier and additional information of the user;
the IM server 20 is further configured to, when determining that there is no user information of the user locally according to the login message, open an account for the user first, add the user information of the user, and then determine whether the user has logged in at another website; when judging that the user information of the user exists locally according to the login message, directly judging whether the user logs in other websites; the system is also used for broadcasting a user state updating message to all access clients concerning the websites of the user when judging that the user does not log in other websites, setting the user state to be online, inquiring an IM account number of the user, and sending the IM account number to the access clients of the websites which are logged in by the user through a response message; when judging that the user logs in other websites, directly inquiring an IM account of the user, and sending the IM account to an access client of the website logged in by the user through a response message;
the access client 10 of the first website and/or the access client 30 of the second website are further configured to determine whether the login is successful according to the response message, and display corresponding content according to whether the login is successful
Each website is provided with one access client, not all access clients are shown in fig. 1, only a first access client 10 and a second access client 30 are shown;
the IM server 20 further comprises: an analysis module 21, a detection updating module 22 and a routing module 23;
wherein, the IM server 20 determines whether the user information of the user exists locally according to the login message as follows: the analysis module 21 in the IM server 20 analyzes the login message, and sends the unique identifier and the additional information of the user obtained after the analysis to the detection update module 22 in the IM server 20; the detection updating module 22 maintains and manages the user information table, and determines whether the user information of the user exists locally according to the unique identifier sent by the parsing module and the user information table maintained and managed by the parsing module.
The judgment of whether the user logs in other websites is as follows: the detection updating module 22 of the IM server 20 determines whether the user status recorded in the user information table is already online, and if not, it indicates that the user is not logged in another website; if the user is in the online state, the user is indicated to be logged in at other websites.
The broadcasting of the user state update message to all access clients concerning the website of the user and setting the user state to be online are: the detection updating module 22 of the IM server 20 triggers the routing module 23 of the IM server, and the routing module 23 broadcasts the user status updating message to all access clients concerning the website of the user; meanwhile, the detection updating module 22 sets the user state of the user to be online in the maintenance and management user information table;
and the access client of each website updates the displayed user state of the user according to the user state updating message broadcast by the routing module in the IM server.
When the first user needs to send an instant message to a second user who logs in to a second website through a first website that logs in, an access client 10 of the first website sends the instant message and an IM account of the second user to an IM server 20: after a user logs in an IM server through a website, if a first user in the IM server needs to send an instant message to a second user who logs in a second website through a logged-in first website, an access client of the first website receives the instant message sent by a webpage of the first website and sent to the webpage of the first website by the user through a client, and the access client of the first website sends the instant message and an IM account of the second user to the IM server.
The access client 30 that the IM server 20 forwards the instant message to the second website according to the IM account of the second user is: the IM server comprises a routing module, an analysis module and a message sending module, wherein the routing module is used for sending the received IM account number and the received IM message to the IM server;
when the second user is in an online state, the routing module finds the corresponding second user according to the IM account sent by the access client of the first user, and sends the instant message to the access client of the second website logged by the second user; when the second user is in an off-line state, the routing module stores the instant message until the second user is in an on-line state, and then the instant message is actively pushed to an access client of a second website logged in by the second user, or the instant message is actively downloaded from the routing module by the access client of the second website.
The step of forwarding the instant message to the web page of the second website by the access client 30 of the second website is: after an access client in a second website logged by a second user receives the instant message sent by the IM server, the access client forwards the instant message to a webpage of the second website, and the webpage of the second website displays the instant message; or the access client of the second website does not forward the instant message to the webpage of the second website.
Based on the above system, the present invention further provides a cross-network instant messaging method, fig. 2 is a schematic flow chart of the cross-network instant messaging method of the present invention, as shown in fig. 2, the method includes the following steps:
step 201, a user logs in an IM server through an access client of a website.
Step 202, when a first user needs to send an instant message to a second user who logs in a second website through a logged-in first website, an access client of the first website sends the instant message and an IM account of the second user to an IM server;
specifically, after a user logs in an IM server through a website, if a first user needs to send an instant message to a second user who logs in a second website through a logged-in first website, an access client of the first website receives the instant message sent by a webpage of the first website and sent to the webpage of the first website by the user through a client, and the access client of the first website sends the instant message and an IM account of the second user to the IM server; the instant message may be text information, voice information, video information, file information, etc.
Step 203, the IM server forwards the instant message to an access client of a second website according to the IM account of the second user;
specifically, an analysis module in the IM server analyzes the received instant message, and sends the analyzed instant message and the received IM account to a routing module of the IM server;
the routing module forwards the received instant message according to a pre-configured routing strategy, or stores the instant message, and temporarily does not forward the instant message; for example, the routing module may find a corresponding second user according to an IM account sent by an access client of a first user, and then obtain a state of the second user from the detection update module, and if the second user is also in an online state, the routing module sends the instant message to an access client of a website where the second user currently logs in, such as an access client of a second website; if the second user is in an offline state, the routing module may temporarily store the instant message, and after the second user is in an online state, the routing module may actively push the instant message to an access client of a website that the second user logs in, such as the access client of the second website, or an access client of the website that the second user logs in, such as the access client of the second website, and actively download the instant message from the routing module.
Step 204, the access client of the second website forwards the instant message to the webpage of the second website;
specifically, after receiving the instant message sent by the IM server, the access client of the second website, to which the second user logs in, may select whether to display the instant message according to a pre-configured display policy, and if the display policy is that the instant message needs to be displayed, the access client of the second website forwards the instant message to the webpage of the second website, and the webpage of the second website displays the instant message, and the second user watches the instant message; if the display policy is that the instant message does not need to be displayed, the access client of the second website will not forward the instant message to the webpage of the second website, and the second user will not be able to view the instant message.
Fig. 3 is a schematic flowchart of a specific implementation method of step 201 in the present invention, which is a specific implementation method for a user to log in an IM server through an access client of a website, as shown in fig. 3, the method includes the following steps:
step 301, when a user logs in a website through a client, an access client of the website receives login information sent by a webpage and sends login information to an IM server, wherein the login information carries a unique identifier and additional information of the user;
specifically, each website is pre-configured with an access client, so that when a user logs in any website through the client, such as a man-machine network, a newwave microblog, a happy network, a treasure-making network and the like, the access client of the website can receive login information sent by a webpage of the website; the client used by the user can be a computer, a mobile terminal and the like, and the user can log in any website through any client; the login information comprises a login account, a display name, a website identification, a unique identifier of the user, additional information and the like of the user on the website;
after receiving login information sent by a webpage, an access client of the website extracts a unique identifier and additional information of a user from the login information and sends the unique identifier and the additional information of the user to an IM server through login information;
the unique identifier of the user can be a mailbox, a mobile phone number, a certificate number and the like of the user, and whether the users registered in different websites are the same user or not can be identified according to the unique identifier; when a user registers in each website, the same unique identifier must be provided, and when the same user registers in different websites, the unique identifiers must be consistent; the additional information sent by the access client of the website to the IM server may be remark information of the user, or control information of the IM server, such as notifying the IM server whether to push a buddy list of the user, whether to push the latest contact of the user, whether the website supports a voice call function, and the like.
Step 302, the IM server judges whether the user information of the user exists locally according to the login message, if not, step 303 is executed, and if so, step 304 is executed;
specifically, after receiving a login message sent by an access client of a website, an analysis module in the IM server analyzes the login message, and sends a unique identifier and additional information of a user obtained after analysis to a detection update module in the IM server;
the detection updating module is used for maintaining and managing a user information table, each table entry in the user information table corresponds to user information of one user, the user information comprises information such as a unique identifier of the user, an IM account number of the user, a user state and a friend list of the user, and the user state comprises online, offline, busy and the like; the IM account of the user is used for identifying an access client of a website which the user currently logs in, for example, when the user logs in a green microblog, the IM account of the user identifies the access client in the green microblog, and when the user logs in a QQ again next time, the IM account of the user identifies the access client of the QQ, and the access client identified by the IM account changes according to different websites which the user logs in; the friend list of the user comprises friend information added by the user in all websites, and the friend list can be sent to the access client when the access client requests to acquire the friend information; the detection updating module judges whether the user information of the user exists locally or not according to the unique identifier sent by the analysis module and a user information table maintained and managed by the detection updating module; if the user information of the user does not exist, executing step 303 first, and then executing step 304; if there is already user information for the user, step 304 is performed directly.
Step 303, the IM server opens an account for the user and adds the user information of the user;
specifically, the detection update module of the IM server automatically opens an account for the user, and adds the user information of the user to its own user information table.
Step 304, the IM server determines whether the user has logged in at another website, if not, step 305 is executed, if yes, step 306 is executed;
specifically, the detection update module of the IM server determines whether the user has logged in another website, that is, determines whether the user state of the user is already online according to the user state recorded in the user information table, and if not, indicates that the user has not logged in another website, then step 305 is executed first, and then step 306 is executed; if it is already online, indicating that the user is already logged on to another website, step 306 is performed directly.
Step 305, the IM server broadcasts the user status update message to all access clients concerning the website of the user, and sets the user status to be online;
specifically, a detection updating module of the IM server triggers a routing module of the IM server, and the routing module broadcasts a user state updating message to all access clients of websites concerning the user; meanwhile, the detection updating module sets the user state of the user to be online in a maintenance and management user information table;
and after the access client of each website receives the user state updating message broadcast by the routing module in the IM server, updating the user state of the user displayed in the corresponding website according to the indication in the user state updating message.
Step 306, the IM server inquires the IM account of the user and sends the IM account to the access client of the website which the user logs in through a response message;
specifically, the detection updating module of the IM server searches an IM account of the user corresponding to the unique identifier in the user information table according to the unique identifier in the login information, sends the IM account to the routing module of the IM server, and the routing module sends the IM account to an access client of a website where the user logs in through a response message.
Step 307, the access client of the website logged in by the user judges whether the login is successful according to the response message, and displays corresponding content according to whether the login is successful;
specifically, after receiving the response message, if the indication carried in the response message indicates that the login is successful, the access client displays corresponding content according to the user configuration, such as displaying a login interface, displaying a friend list, displaying a recent contact person, and the like, and can subsequently perform instant messaging with friends logged in an IM server through other websites through an IM account on the logged-in website; and if the carried indication shows that the login fails, the access client prompts failure information.
The presentation forms of the access client provided by the invention are various, and the access client can be nested in a webpage in a web mode for use by a user, and can also be used in the client after being downloaded and installed by the user.
When the instant communication system is integrated in a website, a mode that any online user can carry out instant communication can be selected, and a mode that the instant communication can be carried out only with friends or concerned users can also be selected; if any online user can carry out the mode of instant messaging, when the IM server pushes the state updating messages of the users, all the user state updating messages of the website are not sent to the access client sides of other websites at one time, but pushed in batches; for example, when a user opens a certain page of a website, the IM server only pushes out user state update information contained in the page; if the mode is the mode that the instant messaging can be carried out only with the friend or the concerned user, the IM server only pushes the state updating message of the friend or the concerned user.
The friends of the user can be grouped according to websites registered by the friends, for example, friends of the user in the personal network and friends of the user in the microblog can be respectively grouped into a group in a friend list of the user. As an embodiment of the invention, the instant messaging software implementation based on the system can also support functions of discussion groups, group chat and the like, and users in different websites can be invited to the same discussion group or group; and the functions of voice chat, video chat, file transmission, screen capture and the like can also be provided.
For the user, only the user logs in the website, but actually, an access client of the website automatically logs in the IM server. After login is successful, no matter which website the user is located in, instant messaging between the user and friends is based on the same IM account number of the user, and is similar to QQ, Web QQ and PC QQ chatting on a terminal.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (12)

1. An inter-network instant messaging system, the system comprising: the system comprises an access client of a first website, an IM server and an access client of a second website; wherein,
the system comprises an access client of a first website, a first server and an IM server, wherein the access client is used for sending an instant message to a second user who logs in a second website through a first website which is logged in by the first user, and sending the instant message and an IM account number of the second user to the IM server;
the IM server is used for forwarding the instant message to an access client of a second website according to the IM account of a second user;
and the access client of the second website is used for forwarding the instant message to the webpage of the second website.
2. The system of claim 1,
the access client of the first website and/or the access client of the second website are/is also used for receiving login information sent by a webpage and sending login information to the IM server when a user logs in the website through the client, wherein the login information carries the unique identifier and additional information of the user;
the IM server is further used for opening an account for the user, adding the user information of the user and judging whether the user logs in other websites or not when judging that the user information of the user does not exist locally according to the login message; when judging that the user information of the user exists locally according to the login message, directly judging whether the user logs in other websites; the system is also used for broadcasting a user state updating message to all access clients concerning the websites of the user when judging that the user does not log in other websites, setting the user state to be online, inquiring an IM account number of the user, and sending the IM account number to the access clients of the websites which are logged in by the user through a response message; when judging that the user logs in other websites, directly inquiring an IM account of the user, and sending the IM account to an access client of the website logged in by the user through a response message;
and the access client of the first website and/or the access client of the second website are/is also used for judging whether the login is successful according to the response message and displaying corresponding contents according to whether the login is successful.
3. A cross-network instant communication method is characterized in that a user logs in an IM server through an access client of a website; the method further comprises the following steps:
when a first user needs to send an instant message to a second user who logs in a second website through a first website, an access client of the first website sends the instant message and an IM account of the second user to an IM server;
the IM server forwards the instant message to an access client of a second website according to the IM account of a second user;
and the access client of the second website forwards the instant message to the webpage of the second website.
4. The method of claim 3, wherein the user logging into the IM server through the access client of the website comprises:
when a user logs in a website through a client, an access client of the website receives login information sent by a webpage and sends login information to an IM server, wherein the login information carries a unique identifier and additional information of the user;
when the IM server judges that the user information of the user does not exist locally according to the login message, firstly opening an account for the user, adding the user information of the user, and then judging whether the user logs in other websites or not; when the IM server judges that the user information of the user exists locally according to the login message, the IM server directly judges whether the user logs in other websites;
when the IM server judges that the user does not log in other websites, the IM server firstly broadcasts a user state updating message to all access clients concerning the websites of the user, sets the user state to be online, inquires the IM account of the user, and sends the IM account of the user to the access clients of the websites logged in by the user through a response message; when judging that the user logs in other websites, directly inquiring an IM account of the user, and sending the IM account to an access client of the website logged in by the user through a response message;
and the access client of the website logged in by the user judges whether the login is successful according to the response message and displays corresponding content according to whether the login is successful.
5. The method of claim 4,
the login information comprises: the login account, the display name, the website identification, the unique identifier and the additional information of the user on the website;
the unique identifier of the user is a mailbox, a mobile phone number or a certificate number of the user; identifying whether the users registered in different websites are the same user or not according to the unique identifier; providing the same unique identifier when a user registers in each website, wherein the unique identifiers are consistent when the same user registers in different websites;
the additional information is remark information of the user or control information of the IM server.
6. The method of claim 4, wherein before the IM server determines from the login message that the user information of the user is not available locally, the method further comprises: the IM server judges whether the user information of the user exists locally according to the login message;
the IM server judges whether the user information of the user exists locally according to the login message: the analysis module in the IM server analyzes the login message, and sends the unique identifier and the additional information of the user obtained after analysis to the detection updating module in the IM server; the detection updating module maintains and manages a user information table, and judges whether the user information of the user exists locally or not according to the unique identifier sent by the analysis module and the user information table maintained and managed by the detection updating module.
7. The method of claim 6,
each item in the user information table corresponds to user information of one user;
the user information comprises a unique identifier of the user, an IM account number of the user, a user state and a friend list of the user.
8. The method of claim 4, wherein the determining whether the user has logged on to another website is:
a detection updating module of the IM server judges whether the user state recorded in the user information table is an online state, if not, the user does not log in other websites; if the user is in the online state, the user is indicated to be logged in at other websites.
9. The method of claim 4, wherein the broadcasting the user status update message to all access clients interested in the website of the user and placing the user status online is:
a detection updating module of the IM server triggers a routing module of the IM server, and the routing module broadcasts a user state updating message to all access clients of websites concerning the user; meanwhile, the detection updating module sets the user state of the user to be online in a maintenance and management user information table;
and the access client of each website updates the displayed user state of the user according to the user state updating message broadcast by the routing module in the IM server.
10. The method of claim 3, wherein when the first user needs to send an instant message to a second user logged in to a second website through a first website logged in, the sending, by an access client of the first website, the instant message and an IM account of the second user to the IM server is:
after a user logs in an IM server through a website, if a first user in the IM server needs to send an instant message to a second user who logs in a second website through a logged-in first website, an access client of the first website receives the instant message sent by a webpage of the first website and sent to the webpage of the first website by the user through a client, and the access client of the first website sends the instant message and an IM account of the second user to the IM server.
11. The method of claim 3, wherein the step of the IM server forwarding the instant message to the access client of the second website according to the IM account of the second user comprises:
the IM server comprises a routing module, an analysis module and a message sending module, wherein the routing module is used for sending the received IM account number and the received IM message to the IM server;
when the second user is in an online state, the routing module finds the corresponding second user according to the IM account sent by the access client of the first user, and sends the instant message to the access client of the second website logged by the second user; when the second user is in an off-line state, the routing module stores the instant message until the second user is in an on-line state, and then the instant message is actively pushed to an access client of a second website logged in by the second user, or the instant message is actively downloaded from the routing module by the access client of the second website.
12. The method of claim 3, wherein the step of forwarding the instant message to the webpage of the second website by the access client of the second website comprises:
after an access client in a second website logged by a second user receives the instant message sent by the IM server, the access client forwards the instant message to a webpage of the second website, and the webpage of the second website displays the instant message; or the access client of the second website does not forward the instant message to the webpage of the second website.
CN201210183046.2A 2012-06-05 2012-06-05 The instant communication method and system of a kind of inter-network Expired - Fee Related CN103457828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210183046.2A CN103457828B (en) 2012-06-05 2012-06-05 The instant communication method and system of a kind of inter-network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210183046.2A CN103457828B (en) 2012-06-05 2012-06-05 The instant communication method and system of a kind of inter-network

Publications (2)

Publication Number Publication Date
CN103457828A true CN103457828A (en) 2013-12-18
CN103457828B CN103457828B (en) 2018-04-06

Family

ID=49739807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210183046.2A Expired - Fee Related CN103457828B (en) 2012-06-05 2012-06-05 The instant communication method and system of a kind of inter-network

Country Status (1)

Country Link
CN (1) CN103457828B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888325A (en) * 2014-03-19 2014-06-25 宇龙计算机通信科技(深圳)有限公司 Device and method for achieving automatic grouping through access to local area network
CN104038503A (en) * 2014-06-24 2014-09-10 北京奇虎科技有限公司 Cross-site logging method, cross-site logging device and cross-site logging system
CN104410567A (en) * 2014-12-22 2015-03-11 刘德琳 Instant communication method and device
CN104486203A (en) * 2014-12-17 2015-04-01 伍威 System and method for exchanging message across terminal devices based on IPV6
CN104811370A (en) * 2015-04-27 2015-07-29 北京北信源软件股份有限公司 Safe instant messaging system structure based on identification
CN104821908A (en) * 2015-04-08 2015-08-05 北京北信源软件股份有限公司 Exclusive service-supporting instant messaging method and system
CN110417636A (en) * 2018-04-28 2019-11-05 黄楚媛 A kind of the self-organizing instantaneous communication system and its method of decentralization
CN112073290A (en) * 2019-06-11 2020-12-11 颜丽峰 Method or system for realizing mutual communication access of users among different websites or system platforms

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404288A (en) * 2001-09-13 2003-03-19 腾讯科技(深圳)有限公司 Cellphone number and instant communication number bundling and cellphone state display method
CN101778053A (en) * 2009-12-23 2010-07-14 中兴通讯股份有限公司 Inter-instant messenger communication method and device
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN102255897A (en) * 2011-07-04 2011-11-23 盛大计算机(上海)有限公司 IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404288A (en) * 2001-09-13 2003-03-19 腾讯科技(深圳)有限公司 Cellphone number and instant communication number bundling and cellphone state display method
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN101778053A (en) * 2009-12-23 2010-07-14 中兴通讯股份有限公司 Inter-instant messenger communication method and device
CN102255897A (en) * 2011-07-04 2011-11-23 盛大计算机(上海)有限公司 IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888325A (en) * 2014-03-19 2014-06-25 宇龙计算机通信科技(深圳)有限公司 Device and method for achieving automatic grouping through access to local area network
CN104038503A (en) * 2014-06-24 2014-09-10 北京奇虎科技有限公司 Cross-site logging method, cross-site logging device and cross-site logging system
CN104486203A (en) * 2014-12-17 2015-04-01 伍威 System and method for exchanging message across terminal devices based on IPV6
CN104410567A (en) * 2014-12-22 2015-03-11 刘德琳 Instant communication method and device
CN104821908A (en) * 2015-04-08 2015-08-05 北京北信源软件股份有限公司 Exclusive service-supporting instant messaging method and system
CN104821908B (en) * 2015-04-08 2017-11-28 北京北信源软件股份有限公司 Support the special instant communicating method and system for enjoying service
CN104811370A (en) * 2015-04-27 2015-07-29 北京北信源软件股份有限公司 Safe instant messaging system structure based on identification
CN104811370B (en) * 2015-04-27 2018-05-08 北京北信源软件股份有限公司 A kind of security instant communication system framework based on mark
CN110417636A (en) * 2018-04-28 2019-11-05 黄楚媛 A kind of the self-organizing instantaneous communication system and its method of decentralization
CN112073290A (en) * 2019-06-11 2020-12-11 颜丽峰 Method or system for realizing mutual communication access of users among different websites or system platforms

Also Published As

Publication number Publication date
CN103457828B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN103457828B (en) The instant communication method and system of a kind of inter-network
CN100384186C (en) System and method for multiple account number simultaneously realizing IMPS service on one client
AU2011353561B2 (en) Message push notification client improvements for multi-user devices
EP3206377B1 (en) Synchronizing messages on connected devices
KR101565276B1 (en) Method and system for communications and computer storage medium
US9270773B2 (en) Method and electronic device for receiving, viewing and forwarding information published on network
CN102958008B (en) Method, system and mobile terminals for realizing instant messaging
CN101119215B (en) Method for network gaming system to trigger instant communication operation and network gaming system
US20140289351A1 (en) Method and device for sending message to group user(s) through microblog
EP2599271B1 (en) Instant messaging using multiple instances of a client
KR102079892B1 (en) Management of multiple profiles for a single account in an asynchronous messaging system
US20170155609A1 (en) Method and device for prompting dynamic information about contact person
JP2010533906A (en) Method, system and apparatus for sorting topics within a group
US20140372330A1 (en) Social network user information association method and device
CN103067248A (en) Method and device for displaying chaining summary information in instant messaging software window
US20100312839A1 (en) Instant Messaging Method and System
CN110768895A (en) Message prompting method and device, electronic equipment and storage medium
US20140324994A1 (en) Method and device for transmitting and forwarding a message
CN106100974B (en) Information sharing method and device
CA2691879A1 (en) Instant messaging system, component and method for additional service
SG183552A1 (en) Method and apparatus for exchanging information between service platforms
CN110224924B (en) State updating method and device, storage medium and electronic device
KR101545663B1 (en) Device, system and method for changing multi-user relationship chain
CN103312592B (en) A kind of method that batch sends information to instant communication client on webpage
US20150065103A1 (en) Device and Method for Enhancing a Call

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180406

Termination date: 20210605

CF01 Termination of patent right due to non-payment of annual fee