A kind of sharing method regarding networked server and regard networked server
Technical field
The present invention relates to network communication technology fields, more particularly to a kind of sharing method regarding networked server and regarding connection
Network server.
Background technology
The various network applications of high speed development now with network technology emerge one after another, can in numerous network applications
Phonovision, live streaming and convention business growth are very fast.
Currently, needing progress videophone, live streaming or meeting industry depending on the first client under networked server when first
When in business, first regard networked server will receive the first client send service request, and to the service request at
Reason, is sent to the first client, when other, which regard the client under networked server, carries out service request, can only obtain corresponding clothes
It is engaged in device treated service request, difference between networked server depending on that cannot be shared.
As it can be seen that existing server process pattern, there is a large amount of first client into industry depending on networked server when first
When business request, first can be caused to regard, and networked server processing speed is slack-off, increases the first pressure for regarding networked server, final shadow
Ring the usage experience of client.
Invention content
The present invention provides a kind of sharing method regarding networked server and networked server is regarded, to solve in the prior art
Existing difference is depending on can not achieve shared problem between networked server.
To solve the above-mentioned problems, the invention discloses a kind of sharing methods regarding networked server, including:Receive first
The first service request that client is sent, wherein carrying first identifier information and second identifier in first service request
Information;Judge whether the first identifier information and self identification information are consistent;If inconsistent, multiple in networked server
It searches second to match with the second identifier information and regards networked server;If searching successfully, establishes and regard networking with described second
First service request is sent to described second and regards networked server, connection is regarded by described second by the connection relation of server
Network server handles first service request, obtains the first business datum;It receives described second and regards networked server
First business datum is simultaneously sent to first client by the first business datum of transmission.
Preferably, the method further includes:Receive the second service request of the second client transmission, wherein described second
First identifier information and second identifier information are carried in service request;When the first identifier information of second service request
When inconsistent with the identification information of itself, search second that there is connection relation with itself and regard networked server;Judge described
One service request described second depending on networked server in whether be finished;If it is not, then second service request is sent
It is handled to described second depending on networked server, obtains the second business datum;It receives second and regards networked server is sent the
Two business datums, and second business datum is sent to second client.
Preferably, the method further includes:After second service request, interrupts and regard networking clothes with described second
The connection of business device.
Preferably, the method further includes:If the first identifier information is consistent with the identification information of itself, to described
First service request is handled to obtain the first business datum;First business datum is sent to first client.
The method further includes:If it is the multiple regard networked server in search with the second identifier information searching not at
When work(, then generates prompt message and the prompt message is sent to first client, to prompt user not find phase
It is matched to regard networked server.
To solve the above-mentioned problems, the invention also discloses one kind regarding networked server, including:First receiving module is used
In receive the first client send the first service request, wherein carried in first service request first identifier information with
And second identifier information;First judgment module, for judging whether the first identifier information and self identification information are consistent;The
If one searching module searches second to match with the second identifier information multiple for inconsistent in networked server
Depending on networked server;Establish a connection module, if for searching successfully, establishes the connection for regarding networked server with described second
Relationship, is sent to described second by first service request and regards networked server, and networked server is regarded to institute by described second
It states the first service request to be handled, obtains the first business datum;Second receiving module regards networking clothes for receiving described second
First business datum is simultaneously sent to first client by the first business datum of business device transmission.
Preferably, the server further includes:Third receiving module, for receiving described the in second receiving module
Two the first business datums sent depending on networked server and after first business datum is sent to first client,
Receive the second client transmission the second service request, wherein carried in second service request first identifier information with
And second identifier information;Second searching module, the mark for first identifier information and itself when second service request
When information is inconsistent, searches second that there is connection relation with itself and regard networked server;Second judgment module, for judging
State the first service request described second depending on networked server in whether be finished;First processing module is used for if it is not, then will
Second service request is sent to described second and is handled depending on networked server, obtains the second business datum;4th receives
Module regards the second business datum that networked server is sent for receiving second, and second business datum is sent to institute
State the second client.
Preferably, the server further includes:Interrupt module receives second for the 4th receiving module and regards networking clothes
It is engaged in the second business datum that device sends, and after second business datum is sent to second client, when described the
After two service requests, the connection for regarding networked server with described second is interrupted.
Preferably, the server further includes:Second processing module, for judging described the in first judgment module
After whether one identification information and self identification information are consistent, if the first identifier information is consistent with the identification information of itself,
Then first service request is handled to obtain the first business datum;First sending module is used for first business
Data are sent to first client.
Preferably, the server further includes:Second sending module, for regarding connection multiple in first searching module
Match with the second identifier information second is searched in network server after networked server, if the multiple regard networking clothes
When being engaged in searching unsuccessful with the second identifier information searching in device, then generates prompt message and be sent to the prompt message
First client, with prompt user do not find match regard networked server.
Compared with prior art, the present invention has the following advantages:
Sharing method provided in an embodiment of the present invention regarding networked server and networked server is regarded, receives the first client
The first service request sent judges wherein carrying first identifier information and second identifier information in the first service request
Whether first identifier information is consistent with self identification information, if inconsistent, in multiple lookup and the second marks in regarding networked server
Know information matches second and regard networked server, if searches successfully establish and second regarding networked server connection relation, by the
One service request is sent to second and regards networked server, is handled, is obtained depending on the first service request of networked server pair by second
To the first business datum, receives the first business datum that second regards networked server transmission and the first business datum is sent to the
One client.As it can be seen that provide through the embodiment of the present invention regarding networked server sharing method and regard networked server, pass through
Depending on forwarding message between networked server so that difference regard the client under networked server can do videophone, be broadcast live with
And the business operations such as convention business, therefore the usage experience of user can be enhanced, moreover, additionally it is possible to mitigate itself and regard networking
The pressure of server.
Description of the drawings
Fig. 1 is a kind of flow chart of sharing method regarding networked server of the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of sharing method regarding networked server of the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram regarding networked server of the embodiment of the present invention three;
Fig. 4 is a kind of structure diagram regarding networked server of the embodiment of the present invention four.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig.1, a kind of flow chart of sharing method regarding networked server of the embodiment of the present invention one is shown.
Sharing method provided in an embodiment of the present invention depending on networked server includes the following steps:
Step 101:The first service request for receiving the transmission of the first client, wherein carrying first in the first service request
Identification information and second identifier information.
First, which regards networked server, receives the first service request that the first client under local server is sent, wherein
First identifier information and second identifier information are carried in first service request.
It should be noted that first identifier information can be the authentication information of the first service request, second identifier letter
Breath can be the contents attribute identification information etc. of the first service request, be not particularly limited to this.
Step 102:Judge whether first identifier information is consistent with self identification information.
After first, which regards networked server, receives the first service request, wherein first also carries mark depending on networked server
Information, and the identification information carried is the first identity identifier information for regarding networked server, and networked server is regarded by first
Identity identifier information matched with first identifier information, according to matching result carry out subsequent operation.
Step 103:If inconsistent, match with second identifier information second is searched in networked server regarding connection multiple
Network server.
When the identity identifier information and the matched matching result of first identifier information progress that first regards networked server
When being inconsistent, first regards networked server in multiple the second marks searched in networked server and carried with the first service request
Know information match second regards networked server.
Step 104:If searching successfully, the connection relation for regarding networked server with second is established, the first service request is sent out
It send to second and regards networked server, handled depending on the first service request of networked server pair by second, obtain the first business number
According to.
After second regards networked server with the success of second identifier information matches, first, which regards networked server, establishes and second
Depending on the connection relation between networked server, to be carried out data transmission by the connection.First regards networked server by the first industry
Business request is sent to second and regards networked server, and second, which regards networked server, receives the first service request and to the first service request
It is handled, obtains the first business datum.
Step 105:Receive second regard networked server transmission the first business datum and the first business datum is sent to
First client.
Second regards networked server by the first business datum by the connection between two servers, is sent to first and regards connection
Network server, first receives the first business datum depending on networked server and the first business datum is sent to the first client.It is logical
Aforesaid operations are crossed, the first client can carry out business operation on a different server.
A kind of sharing method regarding networked server provided in an embodiment of the present invention receives the first client is sent first
Service request judges that first identifier is believed wherein carrying first identifier information and second identifier information in the first service request
Whether breath is consistent with self identification information, if inconsistent, in multiple lookup and the matchings of second identifier information in regarding networked server
Second regard networked server, if searches successfully, establish and second regarding networked server connection relation, by the first service request
It is sent to second and regards networked server, handled depending on the first service request of networked server pair by second, obtain the first business
Data, receive second regard networked server transmission the first business datum and the first business datum is sent to the first client.
As it can be seen that the sharing method regarding networked server provided through the embodiment of the present invention, by disappearing depending on forwarding between networked server
Breath so that difference can do the business operations such as videophone, live streaming and convention business depending on the client under networked server, because
This can enhance the usage experience of user, moreover, additionally it is possible to and mitigate the pressure for itself regarding networked server, to increase
The usage experience of strong user.
Embodiment two
With reference to Fig. 2, a kind of flow chart of sharing method regarding networked server of the embodiment of the present invention two is shown.
Sharing method provided in an embodiment of the present invention depending on networked server includes the following steps:
Step 201:The first service request for receiving the transmission of the first client, wherein carrying first in the first service request
Identification information and second identifier information.
In the embodiment of the present invention by taking first regards networked server execution regarding the sharing method of networked server as an example, said
It is bright.
First, which regards networked server, receives the first service request that the first client under local server is sent, wherein
First identifier information and second identifier information are carried in first service request.
It should be noted that first identifier information can be the authentication information of the first service request, second identifier letter
Breath can be the contents attribute identification information etc. of the first service request, be not particularly limited to this.
Step 202:Judge whether first identifier information is consistent with self identification information;If consistent, 212 are thened follow the steps,
If inconsistent, 203 are thened follow the steps.
After first, which regards networked server, receives the first service request, wherein first also carries mark depending on networked server
Information, and the identification information carried is the first identity identifier information for regarding networked server, and networked server is regarded by first
Identity identifier information matched with first identifier information, according to matching result carry out subsequent process steps.
Step 203:If inconsistent, match with second identifier information second is searched in networked server regarding connection multiple
Network server thens follow the steps 204 if searching successfully, if lookup is unsuccessful, thens follow the steps 214.
When the identity identifier information and the matched matching result of first identifier information progress that first regards networked server
When being inconsistent, first regards networked server in multiple the second marks searched in networked server and carried with the first service request
Know information match second regards networked server.
Step 204:If searching successfully, the connection relation for regarding networked server with second is established, the first service request is sent out
It send to second and regards networked server, handled depending on the first service request of networked server pair by second, obtain the first business number
According to.
After second regards networked server with the success of second identifier information matches, first, which regards networked server, establishes and second
Depending on the connection relation between networked server, to be used for carrying out data transmission.First regards networked server by the first service request
Be sent to second regard networked server, second regard networked server reception the first service request and to the first service request at
Reason, obtains the first business datum.
Step 205:Receive second regard networked server transmission the first business datum and the first business datum is sent to
First client.
Second regards networked server by the first business datum by the connection between two servers, is sent to first and regards connection
Network server, first receives the first business datum depending on networked server and the first business datum is sent to the first client.It is logical
Aforesaid operations are crossed, the first client can carry out business operation on a different server.
Step 206:Receive the second service request of the second client transmission.
Wherein, first identifier information and second identifier information are carried in the second service request.
First receives the second service request that the second client under local server is sent depending on networked server again,
In, the second service request also carries first identifier information and second identifier information.
After first receives the second service request depending on networked server, the first identifier of the second service request can be still judged
Whether information is consistent with the identification information of itself.
Step 207:When the first identifier information of the second service request and the inconsistent identification information of itself, search and oneself
Body has the second of connection relation to regard networked server.
Step 208:Judge the first service request second depending on networked server in whether be finished.
First regards the first service request that networked server judges that the first client is sent second in the networked server
Whether it is finished.
Step 209:It being finished if being not carried out, the second service request is sent to second to be handled depending on networked server,
Obtain the second business datum.
When be not carried out finish when, first depending on networked server by the second service request be sent to second regard networked server,
Second receives the second service request depending on networked server and is handled, and obtains the second business datum.
That is, when judgement is not carried out and finishes, first need not resettle with second depending on networked server regarding networking
Connection between server directly carries out data interaction.
Step 210:It receives second and regards the second business datum that networked server is sent, and the second business datum is sent to
Second client.
Step 211:After the second service request, the connection for regarding networked server with second is interrupted.
First ought judge that the second service request terminates depending on networked server, then interrupts and second between networked server
Connection relation.
Step 212:If first identifier information is consistent with the identification information of itself, the first service request handle
To the first business datum.
When first identifier information is consistent with the identification information of itself, then business processing is directly carried out under local server.
Step 213:First business datum is sent to the first client.
So far, first is corresponding regarding networking clothes regarding the branch of networked server regarding networked server successful search to second
Business device is shared flow and is terminated.
Step 214:If it is multiple regard networked server in search with second identifier information searching it is unsuccessful when, generate prompt
Information simultaneously will be prompted to information and be sent to the first client, with prompt user do not find match regard networked server.
When matching regards networked server less than second, then first disappears depending on networked server to the transmission prompt of the first client
Breath, with prompt client do not find match regard networked server.
A kind of sharing method regarding networked server provided in an embodiment of the present invention receives the first client is sent first
Service request judges that first identifier is believed wherein carrying first identifier information and second identifier information in the first service request
Whether breath is consistent with self identification information, if inconsistent, in multiple lookup and the matchings of second identifier information in regarding networked server
Second regard networked server, if searches successfully, establish and second regarding networked server connection relation, by the first service request
It is sent to second and regards networked server, handled depending on the first service request of networked server pair by second, obtain the first business
Data, receive second regard networked server transmission the first business datum and the first business datum is sent to the first client.
As it can be seen that the sharing method regarding networked server provided through the embodiment of the present invention, by disappearing depending on forwarding between networked server
Breath so that difference can do the business operations such as videophone, live streaming and convention business depending on the client under networked server, because
This can enhance the usage experience of user, moreover, additionally it is possible to and mitigate the pressure for itself regarding networked server, to increase
The usage experience of strong user.
Embodiment three
With reference to Fig. 3, a kind of structure diagram regarding networked server of the embodiment of the present invention three is shown.
It is provided in an embodiment of the present invention to include depending on networked server:First receiving module 301, for receiving the first client
The first service request sent, wherein carrying first identifier information and second identifier information in first service request;
First judgment module 302, for judging whether the first identifier information and self identification information are consistent;First searching module
303, if for inconsistent, networking clothes are regarded with the second of second identifier information matching in multiple searched in networked server
Business device;If the module that establishes a connection 304 establishes the connection relation for regarding networked server with described second for searching successfully,
First service request is sent to described second and regards networked server, networked server is regarded to described first by described second
Service request is handled, and the first business datum is obtained;Second receiving module 305 regards the Internet services for receiving described second
First business datum is simultaneously sent to first client by the first business datum of device transmission.
A kind of the first service request sent regarding networked server, the first client of reception provided in an embodiment of the present invention,
First identifier information and second identifier information are carried in wherein the first service request, judge first identifier information and itself mark
Whether consistent know information, if inconsistent, connection is regarded with the second of the matching of second identifier information in multiple searched in networked server
Network server establishes the connection relation for regarding networked server with second, the first service request is sent to second if searching successfully
It depending on networked server, is handled depending on the first service request of networked server pair by second, obtains the first business datum, receive the
Two depending on networked server send the first business datum and the first business datum is sent to the first client.As it can be seen that passing through this
What inventive embodiments provided regards networked server, by depending on forwarding message between networked server so that difference regards the Internet services
Client under device can do the business operations such as videophone, live streaming and convention business, therefore can enhance the use of user
Experience, moreover, additionally it is possible to and mitigate the pressure for itself regarding networked server, to enhance the usage experience of user.
Example IV
With reference to Fig. 4, a kind of structure diagram regarding networked server of the embodiment of the present invention four is shown.
It is provided in an embodiment of the present invention to include depending on networked server:
It is provided in an embodiment of the present invention to include depending on networked server:First receiving module 401, for receiving the first client
The first service request sent, wherein carrying first identifier information and second identifier information in first service request;
First judgment module 402, for judging whether the first identifier information and self identification information are consistent;First searching module
403, if for inconsistent, networking clothes are regarded with the second of second identifier information matching in multiple searched in networked server
Business device;If the module that establishes a connection 404 establishes the connection relation for regarding networked server with described second for searching successfully,
First service request is sent to described second and regards networked server, networked server is regarded to described first by described second
Service request is handled, and the first business datum is obtained;Second receiving module 405 regards the Internet services for receiving described second
First business datum is simultaneously sent to first client by the first business datum of device transmission.
Preferably, the server further includes:Third receiving module 406, for receiving institute in second receiving module
It states the first business datum that second sends depending on networked server and first business datum is sent to first client
Later, the second service request that the second client is sent is received, wherein first identifier letter is carried in second service request
Breath and second identifier information;Second searching module 407, for when the first identifier information of second service request and itself
Identification information it is inconsistent when, search with itself have connection relation second regard networked server;Second judgment module 408,
For judge first service request described second depending on networked server in whether be finished;First processing module 409,
For being handled depending on networked server if it is not, second service request is then sent to described second, the second business is obtained
Data;4th receiving module 410, for receiving the second the second business datum for regarding networked server transmission, and by described second
Business datum is sent to second client.
Preferably, the server further includes:Interrupt module 411 receives second for the 4th receiving module and regards connection
The second business datum that network server is sent, and after second business datum is sent to second client, work as institute
After stating the second service request, the connection for regarding networked server with described second is interrupted.
Preferably, the server further includes:Second processing module 412, for judging institute in first judgment module
State first identifier information and self identification information it is whether consistent after, if the identification information one of the first identifier information and itself
It causes, then first service request is handled to obtain the first business datum;First sending module 413, for by described the
One business datum is sent to first client.
Preferably, the server further includes:Second sending module 414 is used in first searching module multiple
Depending on searching match with the second identifier information second in networked server after networked server, if the multiple regard connection
When searching unsuccessful with the second identifier information searching in network server, then generates prompt message and send out the prompt message
Send to first client, with prompt user do not find match regard networked server.
A kind of the first service request sent regarding networked server, the first client of reception provided in an embodiment of the present invention,
First identifier information and second identifier information are carried in wherein the first service request, judge first identifier information and itself mark
Whether consistent know information, if inconsistent, connection is regarded with the second of the matching of second identifier information in multiple searched in networked server
Network server establishes the connection relation for regarding networked server with second, the first service request is sent to second if searching successfully
It depending on networked server, is handled depending on the first service request of networked server pair by second, obtains the first business datum, receive the
Two depending on networked server send the first business datum and the first business datum is sent to the first client.As it can be seen that passing through this
What inventive embodiments provided regards networked server, by depending on forwarding message between networked server so that difference regards the Internet services
Client under device can do the business operations such as videophone, live streaming and convention business, therefore can enhance the use of user
Experience, moreover, additionally it is possible to and mitigate the pressure for itself regarding networked server, to enhance the usage experience of user.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.For system embodiment
For, since it is basically similar to the method embodiment, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
It defends oneself bright.
To a kind of sharing method regarding networked server provided by the present invention and networked server is regarded above, carried out in detail
Thin to introduce, principle and implementation of the present invention are described for specific case used herein, and above example is said
The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, foundation
The thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not
It is interpreted as limitation of the present invention.