Movatterモバイル変換


[0]ホーム

URL:


CN102655495B - A kind of link method for reconstructing, system and device - Google Patents

A kind of link method for reconstructing, system and device
Download PDF

Info

Publication number
CN102655495B
CN102655495BCN201110048602.0ACN201110048602ACN102655495BCN 102655495 BCN102655495 BCN 102655495BCN 201110048602 ACN201110048602 ACN 201110048602ACN 102655495 BCN102655495 BCN 102655495B
Authority
CN
China
Prior art keywords
link
server
client
signature information
chat
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
Application number
CN201110048602.0A
Other languages
Chinese (zh)
Other versions
CN102655495A (en
Inventor
杨洛斌
陈延彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201110048602.0ApriorityCriticalpatent/CN102655495B/en
Publication of CN102655495ApublicationCriticalpatent/CN102655495A/en
Application grantedgrantedCritical
Publication of CN102655495BpublicationCriticalpatent/CN102655495B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses a kind of link method for reconstructing and system: set up two between client with server in advance and link, be respectively link 1 and link 2, when link 1 disconnects, client determines that whether link 2 is normal, if, then utilize link 2 to send to server and rebuild message, and reception server generates and the signing messages returned, and rebuilds link 1 according to the signing messages received.The present invention discloses a kind of client.Apply mthods, systems and devices of the present invention, can implementation complexity be reduced.

Description

Link reconstruction method, system and device
Technical Field
The present invention relates to network technologies, and in particular, to a method, a system, and an apparatus for link reestablishment.
Background
In the existing multi-player online role-playing network game, a user inputs an account and a password through a client, after logging in the game, a server generates signature information, and establishes a main line link and a chat link with the client according to the signature information, wherein the two links exist simultaneously in the game process. The chat link is used for processing chat information among different users (players) in the game, and the mainline link is used for processing functional information except the chat information, such as battles among the users.
In practical application, due to various reasons, such as poor network conditions, the main line link may be disconnected, and accordingly, the client prompts the user to disconnect the network and quit the game, and then the user needs to restart the game and re-input the account and the password for logging in, and subsequently, the main line link and the chat link need to be re-established between the server and the client, which is very tedious in implementation process.
Disclosure of Invention
In view of the above, the present invention is directed to a link reconstruction method, which can reduce implementation complexity.
Another object of the present invention is to provide a link reconstruction system capable of reducing implementation complexity.
Still another object of the present invention is to provide a client capable of reducing implementation complexity.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a link reestablishment method is characterized in that two links, namely a link 1 and a link 2, are established in advance between a client and a server; when the link 1 is disconnected, the method comprises the following steps:
the client determines whether the link 2 is normal, if so, the client sends a reconstruction message to the server by using the link 2 and receives signature information generated and returned by the server;
the link 1 is reconstructed from the received signature information.
A link reconstruction system, comprising: the system comprises a client and a server, wherein two links, namely a link 1 and a link 2, are pre-established between the client and the server;
the client is used for determining whether the link 2 is normal or not when the link 1 is disconnected, if so, sending a reconstruction message to the server by using the link 2, receiving signature information generated and returned by the server, and reconstructing the link 1 according to the signature information;
and the server is used for generating and returning the signature information to the client after receiving the reconstruction message.
A client establishes two links in advance between the client and a server, wherein the two links are a link 1 and a link 2 respectively; the client comprises:
the first processing unit is used for determining whether the link 2 is normal or not when the link 1 is disconnected, if so, sending a reconstruction message to the server by using the link 2, receiving signature information generated and returned by the server, and sending the signature information to the second processing unit;
the second processing unit is configured to reconstruct the link 1 according to the received signature information.
Therefore, by adopting the technical scheme of the invention, when one link, such as a main line link, is disconnected, the main line link can be automatically rebuilt by using the other link, namely a chat link, so that the user does not need to restart the game, re-input the account number and the password and the like, and the realization complexity is well reduced.
Drawings
FIG. 1 is a flow chart of an embodiment of the method of the present invention;
FIG. 2 is a schematic diagram of the components of the system of the present invention;
fig. 3 is a schematic structural diagram of the client according to the embodiment of the present invention.
Detailed Description
Aiming at the problems in the prior art, the invention provides an improved link reconstruction scheme which comprises the following steps: two links, namely a link 1 and a link 2, are pre-established between the client and the server and are used for supporting the game played by the user; when the link 1 is disconnected, the client determines whether the link 2 is normal, if not, the game quits, if so, the reconstruction message is sent to the server by using the link 2, the signature information generated and returned by the server is received, the link 1 is reconstructed according to the signature information, and the game is continued after the establishment is successful.
In order to make the technical solution of the present invention clearer and more obvious, the solution of the present invention is further described in detail below by referring to the drawings and examples.
FIG. 1 is a flow chart of an embodiment of the method of the present invention. In this embodiment, a main line link (link 1) and a chat link (link 2) are pre-established between the client and the server, and are used for supporting a game played by a user. As shown in fig. 1, the method comprises the following steps:
step 11: when the main line link is disconnected, the client determines whether the chat link is normal, if so, step 13 is executed, otherwise, step 12 is executed.
Step 12: the client prompts the user to disconnect the network and quit the game.
Subsequently, the user can perform processing such as restarting the game in the existing manner.
Step 13: the client sends a reconstruction message to the server by using the chat link; the server generates signature information and returns the signature information to the client.
If the chat link is normal, the client can use a fault-tolerant means, namely, request signature information from the server, and rebuild the main line link according to the requested signature information in the following.
For the server, after receiving the reconstruction message sent by the client through the chat link, the server can know that the chat link still exists (is not disconnected), and uses the chat link as a proof that the user has effectively logged in, generates legal signature information, and returns the legal signature information to the client through the chat link.
In this embodiment, the format and the content of the reconstructed message are not limited, as long as the server knows that the subsequent processing needs to be performed according to the method described in this embodiment after receiving the message.
Step 14: and the client side reconstructs the main line link according to the received signature information, and continues the game after the reconstruction is successful.
If the mainline link reconstruction is successful, the previously played game can be continued; when the main line link is disconnected again, step 11 may be repeatedly performed.
If the main line link is not successfully rebuilt for N times continuously due to some reason, such as poor network conditions, the user can be prompted to disconnect the network and quit the game, N is a positive integer, and the specific value can be determined according to actual needs, such as 3.
In addition, in order to make the game more smoothly, after the main line link is successfully rebuilt, data synchronization can be performed between the client and the server, so as to overcome the problem of inconsistent foreground and background data caused by the disconnection of the main line link.
In the embodiment shown in fig. 1, the main line link is disconnected and the chat link is not disconnected as an example, in practical applications, the chat link may be disconnected and the main line link is not disconnected, and for this situation, there is no effective processing manner in the prior art, and the manner shown in fig. 1 is also applicable.
It can be seen that the two links have a mutual proof effect, and the game can be played without quitting as long as the two links are not disconnected at the same time.
Based on the above description, fig. 2 is a schematic structural diagram of the system according to the embodiment of the present invention. As shown in fig. 2, includes: the client 21 and the server 22, two links, namely link 1 and link 2, are pre-established between the client 21 and the server 22; wherein,
the client 21 is used for determining whether the link 2 is normal or not when the link 1 is disconnected, if so, sending a reconstruction message to the server 22 by using the link 2, receiving signature information generated and returned by the server 22, and reconstructing the link 1 according to the signature information;
and the server 22 is used for generating and returning signature information to the client 21 after receiving the reconstruction message.
The client 21 is further configured to synchronize data with the server 22 after the link 1 is successfully rebuilt.
Fig. 3 is a schematic structural diagram of the client according to the embodiment of the present invention. Two links, namely a link 1 and a link 2, are pre-established between the client and the server; as shown in fig. 3, includes:
the first processing unit 31 is used for determining whether the link 2 is normal or not when the link 1 is disconnected, and if so, sending a reconstruction message to the server by using the link 2, receiving signature information generated and returned by the server, and sending the signature information to the second processing unit 32;
a second processing unit 32 for reconstructing the link 1 from the received signature information.
The second processing unit 32 can be further configured to synchronize data with the server after the link 1 is successfully reconstructed.
For the specific work flow of the system and apparatus embodiments shown in fig. 2 to 3, please refer to the corresponding description in the method embodiment shown in fig. 1, which is not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

CN201110048602.0A2011-03-012011-03-01A kind of link method for reconstructing, system and deviceActiveCN102655495B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110048602.0ACN102655495B (en)2011-03-012011-03-01A kind of link method for reconstructing, system and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110048602.0ACN102655495B (en)2011-03-012011-03-01A kind of link method for reconstructing, system and device

Publications (2)

Publication NumberPublication Date
CN102655495A CN102655495A (en)2012-09-05
CN102655495Btrue CN102655495B (en)2015-11-04

Family

ID=46731019

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110048602.0AActiveCN102655495B (en)2011-03-012011-03-01A kind of link method for reconstructing, system and device

Country Status (1)

CountryLink
CN (1)CN102655495B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1933608A (en)*2005-11-142007-03-21华为技术有限公司Method for realizing to play stream media data
CN101163113A (en)*2006-10-122008-04-16阿里巴巴公司Disconnection reconnecting system and method of instant communication
CN101902404A (en)*2010-07-292010-12-01中兴通讯股份有限公司Method and device for realizing automatic re-networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060135259A1 (en)*2004-12-172006-06-22Nokia CorporationSystem, game server, terminal, and method for game event notification in a multiplayer game

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1933608A (en)*2005-11-142007-03-21华为技术有限公司Method for realizing to play stream media data
CN101163113A (en)*2006-10-122008-04-16阿里巴巴公司Disconnection reconnecting system and method of instant communication
CN101902404A (en)*2010-07-292010-12-01中兴通讯股份有限公司Method and device for realizing automatic re-networking

Also Published As

Publication numberPublication date
CN102655495A (en)2012-09-05

Similar Documents

PublicationPublication DateTitle
CN103841111B (en)A kind of method for preventing Data duplication from submitting and server
US10841106B1 (en)Combined authentication and encryption
EP2485443A1 (en)System and method for managing multiple queues of non-persistent messages in a networked environment
WO2011137303A3 (en)Transferring a conference session between client devices
CN102904903B (en)Communication system and communication means
CN106685748A (en) A heartbeat information sending method, server and terminal
CN106254377A (en)Support soft load-balancing method and the system of the connection of magnanimity length
CN102215243A (en)Event synchronization method, system, client and server
CN106131138A (en)A kind of display data real time propelling movement system and method based on non-obstruction queue
CN103259715A (en)Method, device and system for managing multi-people session
CN103780619A (en)Wide area network real-time interactive game synchronization method and device, and system
CN103327043B (en) A message push method and system, relationship chain platform server
CN102571575A (en)Session information creation method, device and system
CN107294830B (en)A kind of data transmission method and system
CN105302486A (en)Virtual offline desktop block device storage synchronization method
CN104660728B (en)NAT penetrating methods based on intelligent home control system
CN102655495B (en)A kind of link method for reconstructing, system and device
CN104301423B (en)A kind of method, apparatus and system sending heartbeat message
CN109842647A (en)A kind of method, apparatus, system and medium maintaining long connection
CN108939538A (en)A kind of disconnection reconnecting method for web game
KR101206604B1 (en)Peer to peer communication method between online game clients
CN104065913A (en)Instant messaging client
CN107982912B (en)Information processing method and terminal
CN112995223A (en)Streaming media transmission control method and device, electronic equipment and storage medium
CN109889439B (en)Cross-platform multi-scene instant messaging method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp