Summary of the invention
In view of this, the object of the present invention is to provide a kind of method and device of setting up the point-to-point connection of multichannel, to solve the technical problem that any one participant member breaks down and might cause meeting to fail in the prior art.
For addressing the above problem, the embodiment of the invention provides following scheme:
A kind of method of setting up the point-to-point connection of multichannel, server is created the tables of data that is used to write down the participation node after receiving that node is created connection requests, and this method comprises:
Node sends to server and adds application;
Server sends the current data table to described node, and with described nodes records in this tables of data;
After described node is received described current data table, respectively with the current data table in the node that write down set up point-to-point the connection.
Wherein, after all point-to-point connections were set up, also comprise: each node carried out the transmission and the reception of data by described connection and other nodes.
Wherein, when having node to withdraw from, also comprise:
Withdraw from node and discharge and being connected of other nodes, and exit command to the server transmission;
Server is deleted the described node that withdraws from from tables of data.
Wherein, also comprise:
After server judges that last node withdraws from, the deleted data table.
A kind of device of setting up the point-to-point connection of multichannel,
Server end comprises:
The data table stores unit is used for creating the tables of data that record participates in node after receiving that node is created connection requests;
Add the application receiving element, be used to receive the adding application that node that application adds sends;
The tables of data transmitting element, the node that is used for adding to application sends the current data table;
The tables of data updating block, the nodes records that is used for application is added is to described tables of data;
Node side comprises:
Add the application transmitting element, be used for sending the adding application to server;
The tables of data receiving element is used for the current data table that reception server returns;
The unit that connects, the node that is used for respectively having write down with the current data table connects.
Wherein, node side also comprises:
The data transmit-receive unit is used for transmission and reception that connection and other nodes by described foundation carry out data.
Wherein,
Server end also comprises:
The receiving element that exits command, what be used for that receiving node sends exits command;
Described tables of data updating block also is used for according to the described described node that withdraws from of deletion that exits command;
Node side also comprises:
Discharge linkage unit, be used for when node withdraws from, release participates in being connected of nodes with other;
The transmitting element that exits command is used for sending to server and exits command.
Wherein, server end also comprises:
The tables of data delete cells is used for after judging last node and withdrawing from the deleted data table.
A kind of client terminal device of setting up the point-to-point connection of multichannel is arranged at node, comprising:
Add the application transmitting element, be used for sending the adding application to server;
The tables of data receiving element is used for the current data table that reception server returns;
The unit that connects is used for setting up point-to-point the connection with the node that the current data table has write down respectively.
Wherein, also comprise:
The data transmit-receive unit is used for transmission and the reception of carrying out data by the point-to-point connection of setting up and other nodes.
Wherein, also comprise:
Discharge linkage unit, be used for when node withdraws from, release participates in the point-to-point of node with other and is connected;
The transmitting element that exits command is used for sending to server and exits command.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
As seen, in the embodiment of the invention, node sends to server and adds application, server sends the current data table to described node, and with described nodes records in this tables of data, after described node is received described current data table, respectively with the current data table in the node that write down set up point-to-point the connection, can make the equal of each node in the network, the outage of individual nodes or broken string etc. can not influence the effect and the success rate of whole meeting.In addition, utilize the embodiment of the invention, can realize audio frequency, video conference, have wide range of applications.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Realize that in point-to-point mode audio/video conference need consider integrality, uniqueness and the dynamic connectivity that connects when connecting.Wherein integrality is meant that each user of each user and other in the audio/video conference should have and is connected; Uniqueness is meant if user a connects to user b application, then user b just can not connect to user a application again, because establishment of connection is two-way, user a is after connection has been set up in user b application, and user b is unnecessary to the connection that user a application is set up again; Dynamic connectivity is meant in meeting and carries out in the process, for the user of new invitation or the user of new application adding, should be able to set up effective the connection with other users.
The embodiment of the invention is considered the participant for the point-to-point audio/video conference of each multichannel, they are from receiving invitation to adhereing to meeting, on server, can show the time difference opposite sex to the process that adds meeting to the server application again, and this temporal otherness can be converted into the order that connects between the user, i.e. adjustment by server, can make and go in an orderly manner between the participant to set up point-to-point connection, thereby reach the integrality and the uniqueness of connection.
With reference to Fig. 2, in embodiments of the present invention, realize that the method that the embodiment of the invention provided may further comprise the steps:
Server is created the tables of data that is used to write down the participation node after receiving that node is created connection requests,
S201: node sends to server and adds application;
S202: server sends the current data table to described node, and with described nodes records in this tables of data;
It should be noted that it is that server at first sends current tables of data to described node here, then just with described nodes records in this tables of data, can avoid like this repeating to connect between two nodes;
S203: after described node is received described current data table, respectively with the current data table in the node that write down set up point-to-point the connection.
Can guarantee so all to connect between any two, and the connection of setting up has uniqueness all participants.After point-to-point connection between per two reference nodes is set up, they promptly can utilize the point-to-point connection of foundation to send or receive data, after all participants set up point-to-point connection between any two, each participant can by these point-to-point connections directly and other participants carry out the transmission or the reception of data, do not need server or special case member's forwarding, each node equality.
If meeting carries out having in the process new terminal to apply to add meeting, perhaps the new terminal of invitation adds fashionable, the method that this terminal can adopt present embodiment to provide is equally set up point-to-point the connection with existing participant, after setting up, just can participate in speech directly or receive audio, video data.
Below in conjunction with embodiment method provided by the invention is described in detail, and analyzes integrality, uniqueness and the dynamic connectivity of the present invention in setting up point-to-point connection procedure.
Referring to Fig. 3, suppose that terminal A, B, C, D login on server S, and remain on line states, establishing A is the conference initiator, invites B, C conference participation in advance, then this embodiment specifically may further comprise the steps:
S301: conference initiator A sends the request of creating meeting to server;
S302: after server is received the request of A, produce the tables of data T that is used to write down the participant, simultaneously tables of data is initialized as sky, and send the invitation that adds meeting to B, C;
S303: terminal A sends the application that adds meeting to server, after server has passed through the application of terminal A, sends current data table T to terminal A, adds terminal A then in tables of data T; Terminal A is after the order of receiving server, because tables of data T this moment is empty, so terminal A need not send point-to-point connection request to any terminal;
After S304: terminal B receives the invitation of meeting, suppose to adhere to meeting, then send the application that adds meeting, after server has passed through the application of terminal B, send current chained list T, in chained list T, add terminal B then to terminal B to server; Terminal B is after the order of receiving server, and terminal A in current chained list T sends and sets up point-to-point connection request, and point-to-point connection the between foundation and the A;
As shown in Figure 4, the direction that dotted arrow connects for request, the point-to-point connection of solid arrow for setting up; The member of current adding meeting is terminal A and B, has set up between B and the A to be connected, and has integrality; Terminal B has set up connection to terminal A request, does not exist A to the process that the B request connects, and has uniqueness;
At this moment, terminal A and terminal B just can utilize set up point-to-point to be connected to send mutually or receive data;
After S305: terminal C receives the invitation of meeting, suppose to adhere to meeting, then send the application that adds meeting, after server has passed through the application of terminal C, send current chained list T, in chained list T, add terminal C then to terminal C to server; Terminal C is after the order of receiving server, and terminal A, B in current chained list T send respectively and set up point-to-point connection request, and point-to-point connection the between foundation and A, the B;
As shown in Figure 5, the direction that dotted arrow connects for request, the point-to-point connection of solid arrow for setting up; The member of current adding meeting is terminal A, B and C, wherein between B and the A, all set up between C and the A and between C and the B and be connected, has integrality; B has set up connection to the A request, the process that does not exist A to connect to the B request, and C has set up connection to the A request, the process that does not exist A to connect to the C request, C has set up connection to the B request, does not exist B to the process that the C request connects, and has uniqueness; C has existed and has set up on the connection basis and being connected that A, B set up at A, B, therefore has dynamic connectivity.
At this moment, owing to all set up point-to-point the connection between terminal B and A, C and A, C and the B, so terminal A, B, C can transmit and receive data by these connections and other members respectively.
Suppose to carry out in the process in meeting, terminal D has been received the invitation of meeting, and adheres to meeting, and then the step of this terminal D adding meeting is as follows:
Terminal D sends the application that adds meeting to server, after server has passed through the application of terminal D, sends current chained list T to terminal D, adds terminal D then in chained list T; Terminal D is after the order of receiving server, and terminal A, B in current chained list T and C send respectively and set up point-to-point connection request, and point-to-point connection the between foundation and A, B, the C;
As shown in Figure 6, the direction that dotted arrow connects for request, the point-to-point connection of solid arrow for setting up; The member of current adding meeting is terminal A, B, C and D, wherein between B and the A, between C and the A, between C and the B, between D and the A, between D and the B, all set up between D and the C and be connected, have integrality; B has set up connection to the A request, the process that does not exist A to connect to the B request, C has set up connection to the A request, the process that does not exist A to connect to the C request, C has set up connection to the B request, the process that does not exist B to connect to the C request, D has set up connection to the A request, the process that does not exist A to connect to the D request, D has set up connection to the B request, the process that does not exist B to connect to the D request, and D has set up connection to the C request, do not exist C to the process that the D request connects, have uniqueness; D has existed and has set up on the connection basis and being connected that A, B, C set up at A, B, C, therefore has dynamic connectivity;
Terminal D just can connect with other members' transmissions or reception data by these as original member after setting up above-mentioned connection.
Certainly, carry out also having in the process member in meeting and withdraw from, then after this member's decision is withdrawed from, may further comprise the steps:
The member who withdraws from is released to other members' point-to-point connection respectively, and sends the order of withdrawing from meeting to server; Server is deleted the described member who withdraws from after receiving described exiting command from chained list.
Because this member is after withdrawing from, the connection between other members still exists, so the transfer of data between other members can also normally be carried out.
After meeting adjourned, server was when judging last member and withdraw from, and deletion chained list T discharges this conference applications.
It should be noted that, the method of prior art realizes that audio conferencing comprises the step of audio mixing, make this prior art can only be applied to audio conferencing, because vision signal can not be mixed, if the prior art is used for video by force, then the special case member is because can not mixed video and need transmit data for other members, the data that send to other members also will send to the special case member and allow its forwarding, the result who does like this is, the required Internet resources of other members do not obtain reducing, and the required Internet resources of special case member increase greatly, can not embody the advantage of point-to-point connection.And in the method that the embodiment of the invention provides, do not have the step of audio mixing, and the complete equality in the status of each node, therefore, both be applicable to audio signal, also be applicable to vision signal, range of application is more extensive.
Corresponding with the method that the foregoing description is provided, referring to Fig. 7, the embodiment of the invention also provides a kind of device of setting up the point-to-point connection of multichannel, comprising:
Server end comprises:
Data table stores unit U701 is used for creating the tables of data that also keeping records participates in node after receiving that node is created connection requests;
Add application receiving element U702, be used for the adding application that receiving node sends;
Tables of data transmitting element U703, the node that is used for adding to application sends the current data table;
Tables of data updating block U704, the nodes records that is used for application is added is to described tables of data;
Node side comprises:
Add application transmitting element U705, be used for sending the adding application to server;
Tables of data receiving element U706 is used for the current data table that reception server returns;
The unit U707 that connects, the node that is used for respectively having write down with the current data table connects.
In setting up the process of point-to-point connection, at first the data table stores unit U701 by server end creates the tables of data that is used to write down the participation node; Node side sends the adding application by adding application transmitting element U705 to server after adhereing to; The adding application receiving element U702 of server end is after receiving the adding application that node side sends, by tables of data transmitting element U703, the current data table is sent to node side,, will apply for that the nodes records of adding is in tables of data then by tables of data updating block U704; After the tables of data receiving element U706 of node side received the current data table that server sends, the node that is write down in the current data table by the unit U707 that connects sent the request of connecting, and sets up point-to-point connection respectively.
More than after point-to-point connection sets up, each node just can carry out the transmission of data and received by described point-to-point connection, referring to Fig. 8, when transceive data, node side also comprises:
Data transmit-receive unit U708 is used for by the point-to-point connection of the unit U707 foundation that connects and transmission and the reception that other nodes carry out data.
Carry out having node and withdrawing from the process in meeting, at this moment, referring to Fig. 9,
This device server end also comprises:
The receiving element U709 that exits command, what be used for that receiving node sends exits command;
At this moment, tables of data updating block U704 also is used for withdrawing from node according to the described deletion that exits command;
Node side also comprises:
Discharge linkage unit U710, be used for when node withdraws from, release participates in being connected of nodes with other;
The transmitting element U711 that exits command is used for sending to server and exits command.
Utilize above device, when node withdrawed from, the release linkage unit U710 of node side at first discharged and being connected of other nodes, and was sent to server by the transmitting element U711 that exits command then to exit command; Server end exit command receiving element receive exit command after, by tables of data updating block U704 according to the node that withdraws from of deletion that exits command.
The part that does not describe in detail in Fig. 8, the device shown in Figure 9 can be considered for length referring to the relevant portion of device shown in Figure 7, is not described in detail in this.
In addition, corresponding with the method and apparatus of setting up the point-to-point connection of multichannel that the embodiment of the invention provides, the embodiment of the invention also provides a kind of client terminal device of setting up the point-to-point connection of multichannel, and referring to Figure 10, this device comprises:
Add application unit U1001, be used for sending the adding application to server;
Tables of data receiving element U1002 is used for the current data table that reception server returns;
The unit U1003 that connects, the node that is used for respectively having write down with the current data table connects.
When setting up point-to-point connection, at first send the adding application to server by adding application unit U1001, after server is received and is added application, send the current data table to node, after tables of data receiving element U1002 receives described current data table, connect unit U1003 respectively with described current data table in the node that write down connect.
After above-mentioned point-to-point connection was set up, client can be carried out the transmission and the reception of data by these connections, at this moment, referring to Figure 11, also comprises:
Data transmit-receive unit U1004 is used for by the point-to-point connection of the described unit U1003 foundation that connects and transmission and the reception that other nodes carry out data.
Carry out having node and withdrawing from the process in meeting, at this moment,, also comprise referring to Figure 12:
Discharge linkage unit U1005, be used for when node withdraws from, release participates in being connected of nodes with other;
The transmitting element U1006 that exits command is used for sending to server and exits command.
The part that does not describe in detail in Figure 11, the device shown in Figure 12 can be considered for length referring to the relevant portion of device shown in Figure 10, is not described in detail in this.
From above embodiment as seen, node sends to server and adds application, server sends the current data table to described node, and with described nodes records in this tables of data, after described node is received described current data table, respectively with the current data table in the node that write down set up point-to-point the connection, can make the equal of each node in the network, the outage of individual nodes or broken string etc. can not influence the effect and the success rate of whole meeting.
More than to a kind of method and device of setting up the point-to-point connection of multichannel provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.