CN104618510B - a kind of method and device for establishing communication connection - Google Patents
a kind of method and device for establishing communication connection Download PDFInfo
- Publication number
- CN104618510B CN104618510B CN201510088905.3A CN201510088905A CN104618510B CN 104618510 B CN104618510 B CN 104618510B CN 201510088905 A CN201510088905 A CN 201510088905A CN 104618510 B CN104618510 B CN 104618510B
- Authority
- CN
- China
- Prior art keywords
- client
- communication
- request
- account
- communication target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method and devices for establishing communication connection, are related to Internet technical field, wherein the above method includes:Receive the communication request that communication starting client is sent, wherein include N in communication request1Height is asked, N1>=1, N1Identical communication target account is carried in height request;According to the correspondence between pre-recorded communications account and client, the corresponding N of communication target account is determined2A communication target client, wherein N2>=1 and N2≤N1, there are correspondences at least one client for a communications account;To identified N2A communication target client forwards the son request for including in communication request respectively, so that identified N2The client for receiving communication request in a communication target client establishes communication connection with starting client is communicated.Using scheme provided in an embodiment of the present invention, enable to quickly establish communication connection between two clients.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for establishing communication connection.
Background technology
With the fast development of hardware technology, the performance of the terminals such as mobile phone, tablet computer is stronger and stronger, can support
Using more and more.User is various using these terminal accesses in application, can be logged in together in different terminals with identical account
The client of one application, and then access Internet resources, communicated etc. with the user for logging in the applications client with other accounts,
Wherein, different accounts are used to indicate the identity information of different user.
In practical application, it is assumed that the first user has registered account A in application X, and is mounted with to answer in a station terminal
With the client of X, it is denoted as customer end A 1.
Second user has registered account B in application X, and is mounted with respectively using X's in two different terminals
Client, wherein be denoted as customer end B 1 and customer end B 2.
If current first user is logged in account A, using customer end A 1 using X, it is desirable to be carried out with the user of account B is used
Communication, wherein user is first logged in account B, using customer end B 1 using X, then is applied with account B, using the login of customer end B 2
X can specifically be realized by following steps:
Customer end A 1 sends communication request to server, wherein the mark of account B is carried in the communication request;
After server receives above-mentioned communication request, the reception client that the communication request is first determined according to the communication request is needed
End, since in the prior art, server is used when generally only record last time user is using the login application of a certain account
Client, so, server is customer end B 2 according to the client that above-mentioned communication request determines;
The communication request received is transmitted to customer end B 2 by server, so that being built between customer end A 1 and customer end B 2
Vertical communication connection, so that two users can communicate.
However, in practical application, it is although user's last time logs in used client when applying X using account B
B2, but the terminal of installation customer end B 2 may not be used but by active user, in this case, user can not obtain in time
Know that other users have sent communication request, and then two clients can not quickly establish communication connection.
Invention content
The embodiment of the invention discloses a kind of method and devices for establishing communication connection, can quickly establish two clients
Communication connection between end.
In order to achieve the above objectives, the embodiment of the invention discloses it is a kind of establish communication connection method, the method includes:
Receive the communication request that communication starting client is sent, wherein include N in the communication request1Height is asked, N1
>=1, the N1Identical communication target account is carried in height request;
According to the correspondence between pre-recorded communications account and client, determine that the communication target account corresponds to
N2A communication target client, wherein N2>=1 and N2≤N1, there are corresponding passes at least one client for a communications account
System;
To identified N2A communication target client forwards the son request for including in the communication request respectively, so that
Identified N2The client for receiving communication request in a communication target client establishes communication with the starting client that communicates
Connection.
It is described according between pre-recorded communications account and client in a specific embodiment of the present invention
Correspondence determines the corresponding N of the communication target account2A communication target client, including:
According to the correspondence between pre-recorded communications account and client, determine that the communication target account corresponds to
Client;
In client determined by selection, User Status is the N of presence2A client is communication target client.
In a specific embodiment of the present invention, the communication request for receiving communication starting client and sending, packet
It includes:
Receive communication starting client according to preset numerical value sends comprising N1The communication request of height request.
In a specific embodiment of the present invention, the communication request for receiving communication starting client and sending, packet
It includes:
It receives the client terminal quantity that communication starting client is sent and determines request;
Determine the corresponding client terminal quantity of communication target account;
The client terminal quantity is sent to the communication starting client;
Receive the communication starting client according to the client terminal quantity sends comprising N1The communication of height request is asked
It asks.
In a specific embodiment of the present invention, the method for establishing communication connection further includes:
Determining N2After any client in a communication target client receives communication request, stop to other clients
Forward the son request for including in the communication request.
In a specific embodiment of the present invention, the method for establishing communication connection further includes:
Receive the user login information that client is sent, wherein in the user login information, including communications account and visitor
Family client information;
The communications account and client-side information for including according to the user login information, update is described pre-recorded to lead to
Believe the correspondence between account and client.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of device for establishing communication connection, described device includes:
Communication request receiving module, the communication request sent for receiving communication starting client, wherein the communication is asked
Include N in asking1Height is asked, N1>=1, the N1Identical communication target account is carried in height request;
Client determining module, for according to the correspondence between pre-recorded communications account and client, determining
The corresponding N of the communication target account2A communication target client, wherein N2>=1 and N2≤N1, communications account at least
There are correspondences for one client;
Son request forwarding module, is used for identified N2A communication target client is forwarded respectively in the communication request
Including son request so that identified N2Receive the client of communication request and the communication in a communication target client
Starting client establishes communication connection.
In a specific embodiment of the present invention, the client determining module, including:
Client determination sub-module is used for according to the correspondence between pre-recorded communications account and client, really
Determine the corresponding client of the communication target account;
Client selects submodule, and for selecting in identified client, User Status is the N of presence2A visitor
Family end is communication target client.
In a specific embodiment of the present invention, request receiving module is believed in the connection, is specifically used for receiving communication
Starting client according to preset numerical value send include N1The communication request of height request.
In a specific embodiment of the present invention, the communication request receiving module, including:
First request receiving submodule determines request for receiving the client terminal quantity that communication starting client is sent;
Client terminal quantity determination sub-module, the client terminal quantity corresponding for determining communication target account;
Client terminal quantity sending submodule, for sending the client terminal quantity to the communication starting client;
Second request receiving submodule is sent for receiving the communication starting client according to the client terminal quantity
Including N1The communication request of height request.
In a specific embodiment of the present invention, the device for establishing communication connection further includes:
Son request stops sending module, for determining N2Any client in a communication target client receives communication
After request, stop forwarding the son request for including in the communication request to other clients.
In a specific embodiment of the present invention, the device for establishing communication connection further includes:
Log-on message receiving module, the user login information for receiving client transmission, wherein the user logs in letter
In breath, including communications account and client-side information;
Correspondence update module, the communications account for including according to the user login information and client letter
Breath updates the correspondence between the pre-recorded communications account and client.
As seen from the above, in scheme provided in an embodiment of the present invention, server receives what communication starting client was sent
After communication request, according to the correspondence between pre-recorded communications account and client, determine that communication target account corresponds to
Communication target client, and by the communicator for including in communication request request be transmitted to determined by communication target client,
So that the client for receiving communication request in communication target client establishes communication connection with starting client is communicated.With it is existing
Technology is compared, due in scheme provided in an embodiment of the present invention, between the pre-recorded communications account of server and client
In correspondence, communications account and at least one client there are correspondence rather than a communications account only with it is last
Once logging in the client applied with the account, there are correspondences, and therefore, server can ask communication according to record case
The son request for including in asking is forwarded to identified communication target client, rather than is only forwarded to last time and is stepped on the account
The client of application is recorded, such user is when using any one corresponding terminal in these clients, it can be seen that service
The communication request that device is sent, and then two clients can quickly establish communication connection, realize the communication between two users.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of structural schematic diagram of system for establishing communication connection provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of method for establishing communication connection provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for establishing communication connection provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of device for establishing communication connection provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another device for establishing communication connection provided in an embodiment of the present invention.
Specific implementation mode
In practical application, user can install the client of a certain application in used terminal, and pass through the client
It holds the client with the application installed in other users institute using terminal to be communicated, carries out communicating it in two clients
Before, two clients need to first establish communication connection, for this purpose, an embodiment of the present invention provides it is a kind of establish communication connection method and
Device first carries out overall introduction to communication connection method for building up provided in an embodiment of the present invention below.
Fig. 1 is a kind of structural schematic diagram of system for establishing communication connection provided in an embodiment of the present invention.It is wrapped in the system
It includes:Server 101, first terminal 102, second terminal 103, third terminal 104 and the 4th terminal 105.
Wherein, user C has registered account Tom in application Y, and the client using Y is mounted in first terminal 102
C1, user D have registered account Jerry in application Y, and in second terminal 103, third terminal 104 and the 4th terminal 105
It is mounted with the client using Y, is denoted as:Client D1, client D2 and client D3.
It is assumed that the correspondence between communications account and client pre-recorded in server 101 includes:
Client C1 applies Y so that communications account Tom is logged;
Client D1 applies Y so that communications account Jerry is logged;
Client D2 applies Y so that communications account Jerry is logged;
Client D3 applies Y so that communications account Jerry is logged;
Wherein, client D3 is that user's last time logs in the client for applying Y using communications account Jerry.
If user C is logged in account Tom, using client C1 using after Y, wanting by being communicated with user D using Y,
It can then be realized by following steps:
Server receives the communication request that client C1 is sent, wherein is asked comprising 3 sons in the communication request, each
Communications account Jerry is carried in son request;
Server determines communications account according to the correspondence between its pre-recorded above-mentioned communications account and client
Corresponding 3 clients of Jerry, client D1, client D2 and client D3;
Server forwards 3 sons for including in above-mentioned communication request to client D1, client D2 and client D3 respectively
Request.
If user D receives the communication request of user C, the client by any one in above-mentioned 3 clients
It can establish and communicate to connect with client C1.
As seen from the above, user D is using any one in second terminal 103, third terminal 104 and the 4th terminal 105
The communication request that user C is sent can be seen when a, rather than only can just see when four terminals 105 is used in user D
The communication request that user C is sent.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Fig. 2 is a kind of flow diagram of method for establishing communication connection provided in an embodiment of the present invention, and this method includes:
S201:Receive the communication request that communication starting client is sent.
Wherein, include N in above-mentioned communication request1Height is asked, N1>=1, and this N1It is carried in height request identical logical
Believe target account.
The quantity of son request can be preset included in communication request, can also be to be obtained from server
's.
Specifically, receiving the communication request that communication starting client is sent, can be realized by following steps:
Receive communication starting client according to preset numerical value sends comprising N1The communication request of height request.
It can be with through the following steps that realizing:
Server first receives the client terminal quantity that communication starting client is sent and determines request, further according to the request, determines
The corresponding client terminal quantity of communication target account, it is rear to communication starting client send determined by client terminal quantity, client
After termination receives the feedback information of server, it includes N to be sent to server1The communication request of height request, and then server is logical
It crosses network and receives the communication request.
Those skilled in the art are it is understood that communicate starting client in addition to that can send client to server
It holds quantity to determine that request is outer, client device type can also be sent to server and determine request, server is according to above-mentioned visitor
Family end quantity determines that request and client device type determine request, determines the equipment class of client terminal quantity and each client
Type, and above- mentioned information is sent to communication starting client, the client terminal quantity that communication starting client is determined according to server
Determine the quantity for the son request for including in communication request, and communication request sent to server, in the request of each height in addition to comprising
Except communication target account, also correspondence includes the device type of communication target account number.
For example, server determines request according to client terminal quantity determination request and client device type, it is so determining that communicate
The corresponding client terminal quantity of target account is:3, client device type is:Mobile phone, computer, tablet computer, then client to
Can include that 3 sons are asked in the communication request that server is sent, each height request is respectively:
Including communication target account and client device type are the son request of mobile phone;
Including communication target account and client device type are the son request of computer;
Including communication target account and client device type are the son request of tablet computer.
S202:According to the correspondence between pre-recorded communications account and client, communication target account pair is determined
The N answered2A communication target client.
Wherein, N2>=1 and N2≤N1, there are correspondences at least one client for a communications account, it is possible to understand that
For:Correspondence between the communications account that server is recorded and client, can be a communications account respectively with this
Communications account logs in the correspondence between one or more of all clients of application client.
In addition, identified N2In a communication target client, each client can be once with communication target account
The client for logging in application can also be the client that application is being logged in communication target account.
Those skilled in the art are it is understood that the destinations traffic account of server record is corresponding with client
In relationship, it is presence that may there was only the User Status of part client, and the User Status of another part client is offline
State, and under normal conditions, the probability for the corresponding terminal of client that User Status is presence is used in user, remote high
In the probability that the corresponding terminal of client that User Status is off-line state is used.
Therefore, according to the correspondence between pre-recorded communications account and client, communication target account pair is determined
The N answered2When a communication target client, can first according to the correspondence between pre-recorded communications account and client,
Determine the corresponding client of communication target account, in client determined by reselection, User Status is the N of presence2It is a
Client is communication target client.
In this way, after determining communication target client using the above method, the probability that user sees communication request can be improved.
In addition, according to the correspondence between pre-recorded communications account and client, communication target account pair is determined
It, can be with the login moment of each client, the user activity of each client, Ge Geke when the communication target client answered
The information such as user's online hours at family end determine that, specifically, the login moment of client is closer apart from current time, user is
Possibility using the corresponding terminal of the client is bigger;The user activity of client is higher, and the client is used in user
Hold the possibility of corresponding terminal bigger;User's online hours of client are bigger, and it is corresponding that the client is used in user
The possibility of terminal is bigger.
Certainly, in practical application, above-mentioned several factors can also be considered, and then determine communication target client.
S203:To identified N2A communication target client forwards the son request for including in communication request respectively, so that
N determined by obtaining2The client for receiving communication request in a communication target client establishes communication link with starting client is communicated
It connects.
Wherein, communication request can be received there are one client in communication target client, it is possibility to have multiple client
Receive communication request.When multiple client receives communication request, communication starting client can respectively with each client
Communication connection is established, and then realizes the communication between client and multiple client.
In a specific embodiment of the present invention, in each height request, other than it can include communication target account,
The device type etc. that communication target client can also be included, for example, device type is:Mobile phone, computer, tablet computer etc.
Deng, in this case, server to destination client forward son request when, can according to each height ask in include target visitor
The device type at family end corresponds to forwarding.
In a specific embodiment of the present invention, the method for above-mentioned foundation communication connection can also include:
Receive the user login information that client is sent, and the communications account for including according to the user login information and visitor
Family client information updates the correspondence between pre-recorded communications account and client.
Wherein, it in user login information may include communications account and client-side information, certainly, in the user login information
Can also include other information, the application is defined not to this.
Above-mentioned client-side information may include:Device identification, network identity, communications account, the application identities logged in
Etc..
It should be noted that the application do not limit above-mentioned steps execute sequence, any steps of S201-S203 can be located at
Before rapid, it can also be located at after either step.
Specifically, the communications account and client-side information that include according to user login information, update pre-recorded lead to
Believe the correspondence between account and client, Ke Yishi:
It first detects in the correspondence between pre-recorded communications account and client, if there are user login informations
Correspondence between corresponding communications account and client increases the communications account and visitor in the server if being not present
Correspondence between the end of family, and if it exists, can then update the information except communications account and client, example in the correspondence
Such as, login time etc..
As seen from the above, in scheme provided in this embodiment, server receives the communication that communication starting client is sent
After request, according to the correspondence between pre-recorded communications account and client, determine that communication target account is corresponding logical
Believe destination client, and the communicator for including in communication request request is transmitted to identified communication target client, so that
It obtains the client for receiving communication request in communication target client and establishes communication connection with starting client is communicated.With the prior art
It compares, due in scheme provided in this embodiment, the correspondence between the pre-recorded communications account of server and client
In, there are correspondences rather than a communications account only with last time with this at least one client for a communications account
There are correspondences for the client of account login application, and therefore, server will can include in communication request according to record case
Son request be forwarded to determined by communication target client, rather than be only forwarded to last time and application logged in the account
Client, such user is when using any one corresponding terminal in these clients, it can be seen that server was sent
Communication request, and then two clients can quickly establish communication connection, realize the communication between two users.
It describes in detail again to the application below by four specific examples.
Example one:
S201:Receive the communication request that communication starting client C1 is sent, wherein asked comprising 4 sons in the communication request
It asks, includes communication target account Jerry in each height request.
S202:According to the correspondence between pre-recorded communications account and client, server is found in record only
There are three groups of correspondences between Jerry and client, client is respectively:Client D1, client D2 and client D3,
And then the corresponding 3 communication target clients of Jerry can be obtained.
S203:3 son requests of selection are transmitted to client D1, client D2 and visitor respectively from 4 above-mentioned son requests
Family end D3, so that the client for receiving communication request in this 3 clients is established with client C1 and communicated to connect, in addition, can
Client is notified to stop sending not selected 1 son request.
Example two:
S201:Receive the communication request that communication starting client C1 is sent, wherein asked comprising 3 sons in the communication request
It asks, includes communication target account Jerry in each height request.
S202:According to the correspondence between pre-recorded communications account and client, server is found in record only
There are three groups of correspondences between Jerry and client, client is respectively:Client D1, client D2 and client D3,
And then the corresponding 3 communication target clients of Jerry can be obtained.
S203:Above-mentioned 3 sons request is transmitted to client D1, client D2 and client D3 respectively so that this 3
The client and client C1 for receiving communication request in a client establish communication connection.
Example three:
S201:Receive the communication request that communication starting client C1 is sent, wherein asked comprising 4 sons in the communication request
It asks, includes communication target account Jerry in each height request.
S202:According to the correspondence between pre-recorded communications account and client, server is found in record only
There are three groups of correspondences between Jerry and client, client is respectively:Client D1, client D2 and client D3,
Wherein, the User Status of client D1 is presence, chosen to obtain the corresponding 1 communication target client of Jerry, client
Hold D1.
S203:1 son request of selection is transmitted to client D1 from above-mentioned 4 son requests, so that client D1 receives
It establishes and communicates to connect with client C1 after communication request, in addition, client can be notified to stop not selected 3 sons of transmission and ask
It asks.
Example four:
S201:Receive the communication request that communication starting client C1 is sent, wherein asked comprising 1 son in the communication request
It asks, includes communication target account Jerry in each height request.
S202:According to the correspondence between pre-recorded communications account and client, server is found in record only
There are three groups of correspondences between Jerry and client, client is respectively:Client D1, client D2 and client D3,
Wherein, the active degree highest of client D1, it is chosen to obtain the corresponding 1 communication target client of Jerry, client D1.
S203:Above-mentioned 1 son request is transmitted to client D1 so that client D1 receive after communication request with visitor
Family end C1 establishes communication connection.
In aforementioned four example, due in the correspondence between pre-recorded communications account and client, Jerry with
Multiple client is there are correspondence, and the quantity of sub- number of requests included in communication request and client not necessarily phase
Together, so, server can selectively forward the sub- request, to improve the probability that user sees the communication, for example, user's shape
State, user's active degree etc..
In one particular embodiment of the present invention, referring to Fig. 3, the stream of another method for establishing communication connection is provided
Journey schematic diagram in the present embodiment, further includes compared with previous embodiment:
S204:Determining N2After any client in a communication target client receives communication request, stop to other
The son request for including in client forwarding communication request.
After any client in communication target client receives communication request, it is possible to determine that the client is used in user
Hold corresponding terminal, user is simultaneously relatively low using the probability of other client counterpart terminals, and since server is to client
Forwarding son request, can occupy certain channel resource, so, to save channel resource, any in determining destination client
After client has received communication request, the son request for including to other clients forwarding communication request can be stopped, to release in time
Put channel resource.
Specifically, server can determine that each client in communication target client is by way of actively monitoring
It is no to have received communication request.
In addition, after the client in communication target client receives communication request, feedback information can be sent to server,
So that server learns that the client has received communication request.
As seen from the above, in scheme provided in this embodiment, any visitor of the server in determining communication target client
Family terminates after by communication request, stops forwarding the son request for including in communication request to other clients, can discharge quilt in time
The channel resource of occupancy, avoids channel resource from wasting.
Corresponding with the above-mentioned method of foundation communication connection, the embodiment of the present invention additionally provides a kind of foundation communication connection
Device.
Fig. 4 is a kind of structural schematic diagram of device for establishing communication connection provided in an embodiment of the present invention, which includes:
Communication request receiving module 401, client determining module 402 and son request forwarding module 403.
Wherein, communication request receiving module 401, the communication request sent for receiving communication starting client, wherein institute
State in communication request includes N1Height is asked, N1>=1, the N1Identical communication target account is carried in height request;
Client determining module 402 is used for according to the correspondence between pre-recorded communications account and client, really
Determine the corresponding N of the communication target account2A communication target client, wherein N2>=1 and N2≤N1, communications account with extremely
There are correspondences for a few client;
Son request forwarding module 403, is used for identified N2A communication target client forwards the communication to ask respectively
The son request for including in asking, so that identified N2Receive in a communication target client the client of communication request with it is described
It communicates starting client and establishes communication connection.
Specifically, the client determining module 402 may include:Client determination sub-module and client select submodule
Block (not shown).
Wherein, client determination sub-module, for according to the corresponding pass between pre-recorded communications account and client
System, determines the corresponding client of the communication target account;
Client selects submodule, and for selecting in identified client, User Status is the N of presence2A visitor
Family end is communication target client.
Specifically, the connection letter request receiving module 401 can be specifically used for receiving communication starting client according in advance
That the numerical value of setting is sent includes N1The communication request of height request.
Specifically, the communication request receiving module 401 can also include:First request receiving submodule, number clients
Measure determination sub-module, client terminal quantity sending submodule and the second request receiving submodule (not shown).
Wherein, the first request receiving submodule is asked for receiving the client terminal quantity determination that communication starting client is sent
It asks;
Client terminal quantity determination sub-module, the client terminal quantity corresponding for determining communication target account;
Client terminal quantity sending submodule, for sending the client terminal quantity to the communication starting client;
Second request receiving submodule is sent for receiving the communication starting client according to the client terminal quantity
Including N1The communication request of height request.
In a kind of optional embodiment of the present invention, the device of above-mentioned foundation communication connection can also include:Log in letter
Cease receiving module and correspondence update module (not shown).
Wherein, log-on message receiving module, the user login information for receiving client transmission, wherein the user
In log-on message, including communications account and client-side information;
Correspondence update module, the communications account for including according to the user login information and client letter
Breath updates the correspondence between the pre-recorded communications account and client.
As seen from the above, in scheme provided in this embodiment, server receives the communication that communication starting client is sent
After request, according to the correspondence between pre-recorded communications account and client, determine that communication target account is corresponding logical
Believe destination client, and the communicator for including in communication request request is transmitted to identified communication target client, so that
It obtains the client for receiving communication request in communication target client and establishes communication connection with starting client is communicated.With the prior art
It compares, due in scheme provided in this embodiment, the correspondence between the pre-recorded communications account of server and client
In, there are correspondences rather than a communications account only with last time with this at least one client for a communications account
There are correspondences for the client of account login application, and therefore, server will can include in communication request according to record case
Son request be forwarded to determined by communication target client, rather than be only forwarded to last time and application logged in the account
Client, such user is when using any one corresponding terminal in these clients, it can be seen that server was sent
Communication request, and then two clients can quickly establish communication connection, realize the communication between two users.
In one particular embodiment of the present invention, referring to Fig. 5, the knot of another device for establishing communication connection is provided
Structure schematic diagram, compared with previous embodiment, in the present embodiment, above-mentioned apparatus further includes:Son request stops sending module 404.
Wherein, sub- request stops sending module 404, for determining N2Any client in a communication target client
After receiving communication request, stop forwarding the son request for including in the communication request to other clients.
As seen from the above, in scheme provided in this embodiment, any visitor of the server in determining communication target client
Family terminates after by communication request, stops forwarding the son request for including in communication request to other clients, can discharge quilt in time
The channel resource of occupancy, avoids channel resource from wasting.
For device embodiments, since it is substantially similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
One of ordinary skill in the art will appreciate that all or part of step in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (12)
1. a kind of method for establishing communication connection, which is characterized in that the method includes:
Receive the communication request that communication starting client is sent, wherein include N in the communication request1Height is asked, N1>=1,
Per height, request includes the device type of communication target account and the corresponding communication target client of the communication target account,
The N1The communication target account carried in height request is identical;
According to the correspondence between pre-recorded communications account and client, the corresponding N of the communication target account is determined2
A communication target client, wherein N2>=1 and N2≤N1, there are correspondences at least one client for a communications account;
According to the device type for the corresponding destination client of the communication target account that each height request includes, to institute
Determining N2A communication target client corresponds to the son request for forwarding and including in the communication request, so that identified N2It is a
The client for receiving communication request in communication target client establishes communication connection with the starting client that communicates.
2. according to the method described in claim 1, it is characterized in that, it is described according to pre-recorded communications account and client it
Between correspondence, determine the corresponding N of the communication target account2A communication target client, including:
According to the correspondence between pre-recorded communications account and client, the corresponding visitor of the communication target account is determined
Family end;
In client determined by selection, User Status is the N of presence2A client is communication target client.
3. according to the method described in claim 1, it is characterized in that, the communication for receiving communication starting client transmission is asked
It asks, including:
Receive communication starting client according to preset numerical value sends comprising N1The communication request of height request.
4. according to the method described in claim 1, it is characterized in that, the communication for receiving communication starting client transmission is asked
It asks, including:
It receives the client terminal quantity that communication starting client is sent and determines that request and client device type determine request;
Determine the corresponding client terminal quantity of communication target account and client device type;
The client terminal quantity and the client device type are sent to the communication starting client;
That receive that the communication starting client sends according to the client terminal quantity and the client device type includes N1It is a
The communication request of son request.
5. according to the described method of any one of claim 1-4, which is characterized in that the method further includes:
Determining N2After any client in a communication target client receives communication request, stop forwarding to other clients
The son request for including in the communication request.
6. according to the described method of any one of claim 1-4, which is characterized in that the method further includes:
Receive the user login information that client is sent, wherein in the user login information, including communications account and client
Information;
The communications account and client-side information for including according to the user login information update the pre-recorded communication account
Correspondence number between client.
7. a kind of device for establishing communication connection, which is characterized in that described device includes:
Communication request receiving module, the communication request sent for receiving communication starting client, wherein in the communication request
Including N1Height is asked, N1>=1, per height, request includes communication target account and the corresponding communication of the communication target account
The device type of destination client, the N1The communication target account carried in height request is identical;
Client determining module, described according to the correspondence between pre-recorded communications account and client, determining
The corresponding N of communication target account2A communication target client, wherein N2>=1 and N2≤N1, a communications account with it is at least one
There are correspondences for client;
Son request forwarding module, the corresponding target visitor of the communication target account for including according to each height request
The device type at family end, to identified N2A communication target client, which corresponds to, forwards the son for including in the communication request to ask
It asks, so that identified N2Receive the client of communication request and the communication starting client in a communication target client
Establish communication connection.
8. device according to claim 7, which is characterized in that the client determining module, including:
Client determination sub-module, for according to the correspondence between pre-recorded communications account and client, determining institute
State the corresponding client of communication target account;
Client selects submodule, and for selecting in identified client, User Status is the N of presence2A client is
Communication target client.
9. device according to claim 7, which is characterized in that the communication request receiving module is specifically used for receiving logical
Letter starting client according to preset numerical value sends comprising N1The communication request of height request.
10. device according to claim 7, which is characterized in that the communication request receiving module, including:
First request receiving submodule determines request and client for receiving the client terminal quantity that communication starting client is sent
Device type determines request;
Client terminal quantity determination sub-module, for determining the corresponding client terminal quantity of communication target account and client device class
Type;
Client terminal quantity sending submodule, for sending the client terminal quantity and the client to the communication starting client
End equipment type;
Second request receiving submodule, for receiving the communication starting client according to the client terminal quantity and the client
That end equipment type is sent includes N1The communication request of height request.
11. according to the device described in any one of claim 7-10, which is characterized in that described device further includes:
Son request stops sending module, for determining N2Any client in a communication target client receives communication request
Afterwards, stop forwarding the son request for including in the communication request to other clients.
12. according to the device described in any one of claim 7-10, which is characterized in that described device further includes:
Log-on message receiving module, the user login information for receiving client transmission, wherein the user login information
In, including communications account and client-side information;
Correspondence update module, communications account and client-side information for including according to the user login information, more
The newly correspondence between the pre-recorded communications account and client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510088905.3A CN104618510B (en) | 2015-02-26 | 2015-02-26 | a kind of method and device for establishing communication connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510088905.3A CN104618510B (en) | 2015-02-26 | 2015-02-26 | a kind of method and device for establishing communication connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104618510A CN104618510A (en) | 2015-05-13 |
CN104618510B true CN104618510B (en) | 2018-09-28 |
Family
ID=53152785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510088905.3A Active CN104618510B (en) | 2015-02-26 | 2015-02-26 | a kind of method and device for establishing communication connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104618510B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107872381B (en) * | 2017-11-20 | 2020-09-29 | 北京小米移动软件有限公司 | Prompting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252548A (en) * | 2008-01-28 | 2008-08-27 | 北京亿企通信息技术有限公司 | Method for multi-point login in instant communicating tools |
CN102025648A (en) * | 2009-09-16 | 2011-04-20 | 腾讯科技(深圳)有限公司 | Instant messaging method and server |
US7953803B2 (en) * | 2006-02-08 | 2011-05-31 | International Business Machines Corporation | Multiple login instant messaging |
CN103051512A (en) * | 2011-10-11 | 2013-04-17 | 阿里巴巴集团控股有限公司 | Instant messaging establishing method and system |
CN103685357A (en) * | 2012-09-06 | 2014-03-26 | 深圳市快播科技有限公司 | Account multi-open message processing method and system |
-
2015
- 2015-02-26 CN CN201510088905.3A patent/CN104618510B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7953803B2 (en) * | 2006-02-08 | 2011-05-31 | International Business Machines Corporation | Multiple login instant messaging |
CN101252548A (en) * | 2008-01-28 | 2008-08-27 | 北京亿企通信息技术有限公司 | Method for multi-point login in instant communicating tools |
CN102025648A (en) * | 2009-09-16 | 2011-04-20 | 腾讯科技(深圳)有限公司 | Instant messaging method and server |
CN103051512A (en) * | 2011-10-11 | 2013-04-17 | 阿里巴巴集团控股有限公司 | Instant messaging establishing method and system |
CN103685357A (en) * | 2012-09-06 | 2014-03-26 | 深圳市快播科技有限公司 | Account multi-open message processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104618510A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108833181B (en) | NG-CN network slice system and network slice selection method | |
US8126439B1 (en) | Persona management for mobile enabling services | |
CN101242306B (en) | Method, system, device and server for automatic discovery of network device | |
US20130073636A1 (en) | Group chat across networks | |
US7664518B2 (en) | Group call server, group call system, terminal, and group call control method | |
US9198222B2 (en) | Telecommunication network | |
CN106027679A (en) | Implementing method, apparatus and system for video conference and cloud desktop terminal | |
CN108282846B (en) | Service request processing method and device | |
CN113596191A (en) | Data processing method, network element equipment and readable storage medium | |
CN103414740B (en) | A kind of private cloud account configuration method and device | |
CN103701835A (en) | Browser based converged communication establishing method and converged communication system | |
CN110808948A (en) | Remote procedure calling method, device and system | |
CN105873241A (en) | Method and device for establishing talking connection | |
CN113572835A (en) | Data processing method, network element equipment and readable storage medium | |
US20100151868A1 (en) | Communication apparatus and mobile terminal | |
CN105323720A (en) | Trunking communication business processing method, trunking core network equipment, and user equipment | |
EP3301968A1 (en) | Network device and terminal for multi-net aggregation transmission, and operating method thereof | |
KR102108532B1 (en) | Method and apparatus for improving the quality of a service in communication systems | |
US9391890B2 (en) | Network-initiated method and system for establishing data communication using IP with a wireless terminal | |
CN104618510B (en) | a kind of method and device for establishing communication connection | |
CN107343285B (en) | Management equipment and equipment management method | |
CN108632355B (en) | Routing method for household appliance network, control terminal, readable storage medium and equipment | |
JP2019518382A5 (en) | ||
CN106789966A (en) | Call business route processing method and system | |
CN112788738A (en) | Code number processing method and device for public and private network convergence system |
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 |