CN109618012B - Method, device, terminal and storage medium for establishing connection - Google Patents

Method, device, terminal and storage medium for establishing connection Download PDF

Info

Publication number
CN109618012B
CN109618012B CN201910130370.XA CN201910130370A CN109618012B CN 109618012 B CN109618012 B CN 109618012B CN 201910130370 A CN201910130370 A CN 201910130370A CN 109618012 B CN109618012 B CN 109618012B
Authority
CN
China
Prior art keywords
server
connection
terminal
data packet
type
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
CN201910130370.XA
Other languages
Chinese (zh)
Other versions
CN109618012A (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 Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910130370.XA priority Critical patent/CN109618012B/en
Publication of CN109618012A publication Critical patent/CN109618012A/en
Application granted granted Critical
Publication of CN109618012B publication Critical patent/CN109618012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for establishing connection, belonging to the technical field of networks, wherein the method comprises the following steps: receiving a disconnection notification, wherein the disconnection notification carries a server identifier of a first server disconnected from the terminal; if the first server is determined to be the first type of server according to the server identifier, when the current preset connection condition of the first server is detected to be met, connection with the first server is established again; the first type of server is a server which needs to be connected when the preset connection condition is met after the connection between the first type of server and the terminal is disconnected, the server is divided into the first type of server and the second type of server, when the connection between the terminal and the first type of server is disconnected, the connection does not need to be established immediately, the connection is reestablished when the preset connection condition is met, under the condition that the normal use of a user is not influenced, consumed resources are reduced, and the normal operation of the terminal is guaranteed.

Description

Method, device, terminal and storage medium for establishing connection
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for establishing a connection.
Background
With the development of internet technology and the gradual enrichment of business functions, the processing capability of a terminal cannot meet business requirements, and a server is generally connected with the terminal, and data interaction is performed through the established connection to provide services for the terminal. When the connection between the terminal and the server is disconnected due to unstable network conditions or other reasons, the connection needs to be re-established.
When the connection between the terminal and the server is disconnected, a disconnection notification is triggered, and when the terminal receives the disconnection notification, the terminal immediately reestablishes the connection with the server so as to continue to perform data interaction with the server through the reestablished connection.
When the connection is disconnected every time, the terminal needs to reestablish the connection, so that more resources of the terminal are consumed, and the normal operation of the terminal is possibly influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for establishing connection, which can solve the problems in the related art. The technical scheme is as follows:
in one aspect, a method for establishing a connection is provided, where the method includes:
receiving a disconnection notification, wherein the disconnection notification carries a server identifier of a first server disconnected from the terminal;
if the first server is determined to be a first-class server according to the server identifier, when the current preset connection condition of the first server is detected to be met, connection is established with the first server again;
and the first type server is a server which needs to be connected when the preset connection condition is met after the connection between the first type server and the terminal is disconnected.
In another aspect, an apparatus for establishing a connection is provided, the apparatus comprising:
a first receiving module, configured to receive a disconnection notification, where the disconnection notification carries a server identifier of a first server disconnected from a terminal;
the first connection module is used for reestablishing connection with the first server when the first server is detected to meet the preset connection condition of the first server currently if the first server is determined to be a first type of server according to the server identifier;
and the first type server is a server which needs to be connected when the preset connection condition is met after the connection between the first type server and the terminal is disconnected.
In another aspect, a terminal is provided, which includes: a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to carry out the operations performed in the method of establishing a connection as described.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the operations performed in the method of establishing a connection as described.
The method, the device, the terminal and the storage medium for establishing the connection provided by the embodiment of the invention receive a disconnection notice, wherein the disconnection notice carries a server identifier of a first server disconnected with the terminal; and if the first server is determined to be the first type server according to the server identifier, when the current preset connection condition of the first server is detected to be met, the first server is re-connected with the first server, wherein the first type server is a server which needs to be connected when the preset connection condition is met after the first type server is disconnected with the terminal. By dividing the server into the first type server and the second type server, when the connection between the terminal and the first type server is disconnected, the connection does not need to be established immediately, but is reestablished when the preset connection condition is met, so that under the condition that the normal use of a user is not influenced, the consumed resources are reduced, and the normal operation of the terminal is ensured.
According to the method, the device, the terminal and the storage medium provided by the embodiment of the invention, after the terminal is connected with the first server again, when the first data packet sent by the first server through the connection is received, the current interface is updated based on the first data packet, and when the data packet sent by the first server through the connection is not received, under the condition that the display state of the current interface is kept, the user information stored by the terminal is obtained, the login request carrying the user information is sent to the first server, the terminal is not forced to quit the current interface, but the first server is logged in under the condition that the display state of the current interface is kept, silent login is realized, the condition that the user is interrupted by quitting the current interface is avoided, and the login process is ensured to be completed under the condition that the user is not sensed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of an implementation environment provided by embodiments of the invention;
fig. 3 is a flowchart of a method for establishing a connection according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a connection relationship between servers according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for establishing a connection according to the related art;
fig. 6 is a flowchart of a method for establishing a connection according to an embodiment of the present invention;
fig. 7 is a flowchart of a method for establishing a connection according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for establishing a connection according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating login to a first server while maintaining a display state of a current interface according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a terminal performing data interaction with a first server in different states according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an apparatus for establishing a connection according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 13 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention, and fig. 2 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Referring to fig. 1 and 2, the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 may be various types of devices such as a mobile phone, a computer, a tablet computer, and a smart television, and the server 102 may be a server, or a functional module in a server, such as a process or a program running in a server, or a server cluster composed of a plurality of servers, or a cloud computing service center.
In the first case, referring to fig. 1, a connection is established between a terminal 101 and a server 102, data interaction is performed between the terminal 101 and the server 102 through the established connection, during the interaction, the terminal 101 sends an uplink data packet to the server 102, and the server 102 sends a downlink data packet to the terminal 101, so that the server 102 provides a service for the terminal 101. For example, in a game scenario, the server may provide a plurality of services such as account management, data management, rewards, arbitration, operation synchronization, and the like for the terminal.
In the second case, referring to fig. 2, the connection between the terminal 101 and the server 102 may be disconnected due to unstable network conditions or other reasons, and the connection needs to be reestablished.
The embodiment of the invention is applied to the scenes that the connection between the terminal and the server is disconnected and the connection needs to be reestablished.
For example, a game client is installed on a player's terminal, and the game client establishes a connection with a server and logs in to the server, thereby performing data interaction through the connection. The player can use the game client to play a game with other players. When the connection between the game client and the server is disconnected, the method provided by the embodiment of the invention can be adopted to reestablish the connection between the game client and the server so as to ensure the normal use of the player.
Or, a live client is installed on a terminal of the anchor, the live client establishes connection with the server, and logs in the server, so that data interaction is performed through the connection. The anchor may be live using a live client. When the connection between the live broadcast client and the server is disconnected, the method provided by the embodiment of the invention can be adopted to reestablish the connection between the live broadcast client and the server so as to ensure the normal operation of the live broadcast.
Of course, the embodiments of the present invention may also be applied to other scenarios, which are not described herein again.
Fig. 3 is a flowchart of a method for establishing a connection according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the terminal 101 in the embodiment shown in fig. 1 or fig. 2. Referring to fig. 3, the method includes:
301. a disconnect notification is received.
In the embodiment of the invention, after the terminal establishes the connection with the first server, data interaction can be carried out through the connection. When the connection is disconnected, the terminal receives the disconnection notification, so that the terminal is notified that the connection between the terminal and the first server is disconnected currently.
The disconnection notification carries a server identification of the first server with which the connection with the terminal is disconnected. The server identifier is used to determine a uniquely corresponding server, and may be a name, a number, an address, or the like of the server. When the terminal receives the disconnection notification, it can determine which server is currently disconnected according to the server identifier carried by the disconnection notification.
The connection may be a TCP (Transmission Control Protocol) connection, an HTTP (Hyper Text Transfer Protocol) connection, or other types of connections.
In the related art, the connection is immediately reestablished each time the connection between the terminal and the server is disconnected, but this method consumes excessive resources. Therefore, in the embodiment of the invention, the terminal is provided with two types of servers, and different reconnection rules can be adopted for different types of servers. The two types of servers are as follows:
1. a first type of server: and the server needs to establish connection when the preset connection condition is met after the connection between the server and the terminal is disconnected.
That is, the first-class server is provided with the preset connection condition, and if the connection between the terminal and the first-class server is disconnected, the connection with the first-class server does not need to be established immediately, but the connection with the first-class server is established when the preset connection condition is met.
The first type of server may include one or more servers, and the plurality of servers may be the same or different. Accordingly, the preset connection conditions of different servers may be the same or different.
For example, in a game scenario, the first class of servers may include Proxy servers and Lobby servers.
2. A second type of server: and the server needs to reestablish the connection after the connection with the terminal is disconnected.
That is, if the connection between the terminal and the first type server is disconnected, the terminal needs to establish a connection with the second type server immediately.
The second type of server may include one or more servers, and the plurality of servers may be the same or different. For example, in a Game scenario, the second type of Server may be a Game Server.
In the two types of servers, the second type of server is a server which needs to be connected when the terminal normally operates, the first type of server is a server which needs to be connected only when the terminal is in some cases, and the terminal does not need to be connected with the first type of server in other cases.
Referring to fig. 4, the Game Server is used as a basic Server of the Proxy Server and the Lobby Server, and is responsible for general logic interaction functions, such as logging in a Game, upgrading, and the like, and a terminal needs to establish a connection with the Game Server if a Game is to be played. And the Game Server can also be responsible for address issuing of Proxy Server and Lobby Server, namely when the terminal is to establish connection with the Proxy Server or Lobby Server, the address of the Proxy Server or Lobby Server can be issued for the terminal through the Game Server.
The Proxy Server is responsible for multi-Player interaction logic in a game scene, such as motion synchronization, NPC (Non-Player Character) interaction and the like, and a terminal does not need to establish connection with the Proxy Server when playing a game and only needs to establish connection with the Proxy Server when entering a certain game mode. Wherein, each game mode comprises game rules, number of people, progress flow, win-or-lose judgment and the like.
The Lobby Server functions similarly to Proxy Server. And the Lobby Server has a branching function, and can dynamically distribute Server identifications for the terminals, so that the terminals can establish connection with different servers, and the purpose of load balancing is achieved.
In the embodiment of the present invention, when receiving the disconnection notification, the terminal first determines which type of server the first server currently disconnected belongs to according to the server identifier of the first server, and when determining that the first server belongs to the second type of server, step 302 is executed, and when determining that the first server belongs to the first type of server, the step executed is described in detail in the following embodiment shown in fig. 8.
In a possible implementation manner, the terminal may determine which type of server the first server is according to a correspondence between the server identifier and the server type.
Such as: as shown in table 1 below, the terminal may pre-store a correspondence between the server identifier and the server category, and determine the server category to which the first server belongs according to the correspondence when the server identifier of the first server is obtained.
TABLE 1
Server identification Server classes
XXXXXX 1
YYYYYY 2
ZZZZZZZ 2
302. And if the first server is determined to be the first type server according to the server identification, creating session data with the first server when the operation associated with the first server is detected, and reestablishing connection with the first server based on the session data.
In the embodiment of the invention, when the terminal determines that the first server is the first type server according to the server identifier, the terminal does not immediately establish connection with the first server, but detects whether the preset connection condition of the first server is met currently. When the current preset connection condition of the first server is detected to be met, the first server is connected with the second server again, and if the current preset connection condition of the first server is not detected to be met, the first server is not connected with the second server.
The preset connection condition can be set according to a function provided by the first server for the terminal. In one possible implementation, the preset connection condition may be that the terminal stores session data associated with the first server. The terminal needs to perform data interaction with the first server, and session data associated with the first server can be created when the first server needs to provide services for the terminal. And when the terminal does not need to perform data interaction with the first server and does not need to be served by the first server, the session data can be deleted. Thus, the session data represents the interaction state between the terminal and the first server. And after receiving the disconnection notification, the terminal detects whether the session data exist, so that whether the preset connection condition is met currently is determined according to the detection result.
And, the session data may be created by the terminal upon detecting an operation associated with the first server. The operation associated with the first server may be an operation of clicking a button associated with the first server, an operation of entering an interface associated with the first server, or the like.
In one possible implementation, the terminal, currently in a game scenario, displays a game lobby interface that includes a variety of game entry buttons, such as: a multiplayer team game, a two player battle game, a one player breakthrough game, etc., and each game entry button is associated with a different server, respectively, the operation associated with the first server may be an operation in which the user clicks the game entry button associated with the first server.
When the terminal detects the operation associated with the first server, session data are created, the terminal detects the existence of the session data at the moment, and then connection with the first server is established again based on the session data when the terminal determines that the preset connection condition is met currently. In another embodiment, when the session data does not exist, the connection with the first server is not reestablished.
In a possible implementation manner, when the terminal receives the disconnection notification, and a request for connection re-establishment is originally generated, when the terminal determines that the preset connection condition is currently met, the request for connection re-establishment is maintained, so that the terminal can be connected with the first server again based on the request. And when the terminal determines that the preset connection condition is not met currently, the request for reestablishing the connection can be discarded, and the connection with the first server is not established any more. Compared with the mode that the terminal needs to reestablish the connection every time the connection is disconnected in the related technology, the method provided by the embodiment of the invention reduces the consumed resources and ensures the normal operation of the terminal under the condition that the normal use of the user is not influenced.
In one possible implementation manner, each time the terminal generates a request, the request is stored in the queue, and the request in the queue is also extracted and processed based on the extracted request. Then, when the terminal generates a request for reestablishing a connection, the request for reestablishing a connection is stored in the queue. When the terminal determines that the preset connection condition is currently met, the request for reestablishing the connection is kept so as to reestablish the connection with the first server based on the request. And when the terminal determines that the preset connection condition is not met currently, the request for reestablishing the connection can be deleted from the queue, so that the connection with the first server is not established any more.
Fig. 5 is a flowchart of a method for establishing a connection according to the related art, and fig. 6 is a flowchart of a method for establishing a connection according to an embodiment of the present invention.
Further, the terminal may create different session data for different servers, and when the terminal detects operations associated with the different servers, session data associated with the servers are created respectively. The terminal detects whether the created session data includes session data of the first server to judge whether to establish connection with the first server again, when the terminal detects that the created session data includes session data associated with the first server, the terminal establishes connection with the first server again, and when the terminal detects that the created session data does not include session data associated with the first server, the terminal ignores the received disconnection notification or discards the generated request for establishing connection again.
For example: if the session data of the first server is "1", the session data of the second server is "2", and the session data of the third server is "3", the terminal may determine whether to re-establish a connection with the first server by detecting whether the session data "1" is included in the session data.
It should be noted that the terminal may establish a connection with one or more servers at the same time, and the servers may be independent from each other and do not affect each other.
Or, in the plurality of servers, the second type server is a server which needs to be connected when the terminal normally operates, and therefore data interaction with the first type server can be performed only after the terminal establishes connection with the second type server. The connection between the terminal and the first type server is established based on the connection between the terminal and the second type server, i.e. the connection with the first type server can only be established if the terminal establishes a connection with the second type server.
The number of the connections established by the terminal may be 1, 2, 3 or other numbers.
In a possible implementation manner, when the terminal detects that the preset connection condition of the first server is currently met, the connection between the terminal and the second server is also disconnected, and the second server is a second-type server, the connection between the terminal and the second server is reestablished, and then the connection between the terminal and the first server is reestablished.
In the embodiment of the invention, after detecting that the preset connection condition of the first server is met currently, the terminal also judges whether the terminal is connected with the second type server currently, if the connection between the terminal and the second server belonging to the second type server is also disconnected, the connection with the second server needs to be reestablished firstly, and the connection with the first server is established only after the connection is successful.
For example: fig. 7 is a flowchart of a method for establishing a connection according to an embodiment of the present invention, and referring to fig. 7, after detecting that a preset connection condition of a first server is currently satisfied, a terminal further performs a different interaction process with the first server by determining whether the terminal is currently connected to a second type server.
The method provided by the embodiment of the invention receives a disconnection notice, wherein the disconnection notice carries the server identifier of a first server disconnected with a terminal; and if the first server is determined to be the first type server according to the server identifier, when the current preset connection condition of the first server is detected to be met, the first server is re-connected with the first server, wherein the first type server is a server which needs to be connected when the preset connection condition is met after the first type server is disconnected with the terminal. By dividing the server into the first type server and the second type server, when the connection between the terminal and the first type server is disconnected, the connection does not need to be established immediately, but is reestablished when the preset connection condition is met, so that under the condition that the normal use of a user is not influenced, the consumed resources are reduced, and the normal operation of the terminal is ensured.
Fig. 8 is a flowchart of a method for establishing a connection according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the terminal 101 in the embodiment shown in fig. 1 or fig. 2. Referring to fig. 8, the method includes:
801. a disconnect notification is received.
The disconnection notification carries a server identifier of the first server disconnected from the terminal.
Step 801 is similar to step 301, and is not described herein again.
802. And if the first server is determined to be the second type server according to the server identification, reestablishing the connection with the first server.
In the embodiment of the invention, when the terminal determines that the first server is the second type server according to the server identifier, the terminal immediately establishes connection with the first type server again.
803. And receiving a first data packet sent by the first server through the connection.
804. And acquiring a second identifier included in a second data packet stored locally.
In the embodiment of the present invention, in the process of the terminal interacting with the first server, the first server stores data packets of the terminal, and each data packet includes an identifier, where the identifier is used to indicate the sequence of the data packets, and may be indicated by numbers or letters, or may also be indicated by other forms. In one possible implementation, when the identifier is represented by a number, the larger the number, the later the ordering of the packets is represented. Alternatively, when the identifiers are represented by letters, the later the letters are, the later the packet ordering is represented.
In a possible implementation manner, when the terminal detects an operation of a user, an operation request corresponding to the operation may be sent to the first server, and when the first server receives the operation request, the first server responds to the operation request to generate operation data, and sends the operation data to the terminal in the form of a data packet.
Or, when receiving an operation request sent by another terminal, the first server responds to the operation request to generate operation data, and when determining that the operation data is associated with the terminal, the first server sends the operation data to the terminal in the form of a data packet.
For example: when the terminal detects that a user clicks a button of the use skill in the current interface, the use skill request is sent to the first server, the first server controls the use skill of the terminal according to the use skill request, operation data of the use skill are generated and sent to the terminal in the form of a data packet, and the terminal can display an animation effect of the use skill in the current interface.
After the first server generates the data packet, the data packet is sent to the terminal, and the data packet is cached to the first server. In a possible implementation manner, the first server sets a first preset duration, and deletes the data packet when the first server determines that the lifetime of the data packet reaches the first preset duration. The lifetime can be determined according to a duration of data interaction between the terminal and the first server under a normal condition.
For example: and when the first server detects that the data packet is cached to the first server, timing is started, and when the timing duration reaches a first preset duration, the data packet is deleted.
Taking the data packet stored in the first server as the first data packet as an example, after the terminal establishes a connection with the first server again, the first server sends the first data packet to the terminal through the connection, the first data packet at least comprises a first identifier, the terminal receives the first data packet sent by the first server, obtains a second identifier included in a second data packet stored locally, and determines the sequence of the first data packet and the second data packet according to the first identifier and the second identifier.
The first identifier is used for indicating the sequence of the first data packet, and the second identifier is used for indicating the sequence of the second data packet.
After comparing the sequence of the first data packet and the second data packet according to the first identifier and the second identifier, the terminal may execute the following steps 805 and 806 or 807 based on the sequence of the first data packet and the second data packet:
805. and when the first data packet is determined to be positioned behind the second data packet according to the first identification and the second identification, storing the first data packet.
And when the first data packet is determined to be positioned behind the second data packet according to the first identifier and the second identifier, the first data packet is cached in the first server after the connection between the terminal and the first server is disconnected, and the terminal does not receive the data packet, and then the terminal stores the first data packet.
806. And updating the current interface based on the first data packet.
In the embodiment of the invention, when the connection between the terminal and the first server is disconnected, the displayed interface of the terminal is stuck because the data interaction between the terminal and the first server is stopped. In the process, the first data packet generated by the first server cannot be sent to the terminal. When the terminal establishes connection with the first server again, the current interface can be updated based on the operation data in the first data packet after the first data packet is stored.
For example: in a game scene, two terminals carry out two-person fighting through a first server, when the connection between one terminal and the first server is disconnected, the display interface of the terminal is stuck, a player using the terminal cannot carry out the next operation and is defeated by a player of the other terminal, then when the terminal is connected with the first server again, the terminal receives the first data packet, and the player is determined to be failed based on the first data packet, and then the interface of game failure is displayed.
It should be noted that, in the subsequent process, the terminal may further send a third data packet to the first server based on the first data packet, where the third data packet carries the first identifier, and after receiving the third data packet, the first server may determine, according to the third data packet, that the terminal has received the first data packet, so as to delete the first data packet from the first server.
807. And filtering the first data packet when the first data packet is determined not to be positioned behind the second data packet according to the first identification and the second identification.
When the first data packet is determined to be before the second data packet according to the first identifier and the second identifier, the terminal is indicated to store the same data packet as the first data packet, and therefore, the first data packet is filtered.
It should be noted that, the embodiment of the present invention is only described as an example in which the first server sends the first data packet. Since the first server may generate a plurality of data packets during the disconnection of the terminal from the first server, the plurality of data packets may be buffered. When the terminal establishes connection with the first server again, the first server may send all currently cached data packets to the terminal, and the terminal determines whether to store each received data packet. Or, the first server may also send the last data packet currently cached to the terminal.
In one possible implementation manner, each time the first server generates one data packet, the first server stores the data packet into the queue and extracts each data packet in the queue, so that the extracted data packet is sent to the terminal through the connection with the terminal. In the process of disconnection between the terminal and the first server, the first server stores a plurality of data packets into the queue, and after the terminal establishes connection with the first server again, the first server extracts one data packet each time according to the sequence of the plurality of data packets in the queue and sends the data packet to the terminal through the connection.
According to the method provided by the embodiment of the invention, the terminal receives the first data packet sent by the first server again after establishing connection with the first server again, so that the problem of terminal data loss caused by disconnection is avoided; and whether the terminal receives the data packet or not is determined by comparing the sequence of the data packet stored locally at the terminal with the sequence of the received data packet sent by the server, so that the data packet is filtered, and the problem that more resources of the terminal are consumed due to repeated processing of the data packet is solved.
In another embodiment, the above step 803-807 can be replaced by the step 808:
808. when a data packet sent by the first server through connection is not received, under the condition that the display state of the current interface is kept, user information stored by the terminal is obtained, a login request is sent to the first server, and when the login request is received by the first server, the terminal is set to be in a login state based on the user information.
And when the terminal establishes connection with the first server again but does not receive the data packet sent by the first server through the connection, the terminal determines to quit the first server. And the terminal acquires the user information stored by the terminal under the condition of keeping the display state of the current interface, sends a login request to the first server, wherein the login request carries the user information, and when the first server receives the login request, the terminal is set to be in a login state based on the user information. The user information may include the user's account number, password, or other login information for the user.
The terminal can set a second preset time length, and when the terminal establishes connection with the first server again and does not receive the data packet sent by the first server within the second preset time length, the terminal determines to quit the first server. The second preset time duration may be determined according to a frequency of interaction between the terminal and the first server.
For example: fig. 9 is a flowchart illustrating login to a first server while maintaining a display state of a current interface according to an embodiment of the present invention. Referring to fig. 9, the terminal transmits a login request to the first server while maintaining the display state of the current interface. At this point, the user may continue to view the current interface without being aware of the background login process.
In a possible implementation manner, the terminal may further set a first state and a second state, where the first state is used to indicate that the first server stores the data packet of the terminal, and the terminal may continue data interaction with the first server, and the second state is used to indicate that the first server does not store the data packet of the terminal, and the terminal needs to log in the first server again.
Fig. 10 is a schematic diagram of a terminal performing data interaction with a first server in different states according to an embodiment of the present invention, and referring to fig. 10, when the terminal determines that the first server is a second-type server according to a server identifier, the terminal first enters a first state (reconnect log, reconnect and re-log), at this time, a data packet sent by the first server may be received, or when the terminal does not receive the data packet sent by the first server, the terminal enters a second state (reconnect log, reconnect and log), in a case of maintaining a display state of a current interface, obtains user information stored by the terminal, and sends a log request carrying the user information to the first server.
In the method provided by the embodiment of the invention, after the terminal is connected with the first server again, when a first data packet sent by the first server through the connection is received, the current interface is updated based on the first data packet, and when the data packet sent by the first server through the connection is not received, under the condition that the display state of the current interface is kept, the user information stored by the terminal is obtained, and a login request carrying the user information is sent to the first server.
In the related art, only one connection is established for a terminal, and the complex situation that a plurality of connections are disconnected simultaneously cannot be solved. At present, due to the requirement of multiple functions of the terminal, connections may be established with multiple servers, and multiple connections need to be managed, which brings great challenges to the terminal. In the embodiment of the invention, under the condition of disconnection, corresponding connection can be reestablished only when needed according to the characteristics of different connections, so that the excessive connection cost is avoided.
Fig. 11 is a schematic structural diagram of an apparatus for establishing a connection according to an embodiment of the present invention, where the apparatus includes:
a first receiving module 1101, configured to receive a disconnection notification, where the disconnection notification carries a server identifier of a first server disconnected from a terminal;
the first connection module 1102 is configured to, if it is determined that the first server is a first-class server according to the server identifier, reestablish a connection with the first server when it is detected that a preset connection condition of the first server is currently satisfied;
the first type of server is a server which needs to be connected when the preset connection condition is met after the connection between the first type of server and the terminal is disconnected.
The device for establishing connection provided by the embodiment of the invention receives a disconnection notice, wherein the disconnection notice carries the server identifier of a first server disconnected with a terminal; and if the first server is determined to be the first type server according to the server identifier, when the current preset connection condition of the first server is detected to be met, the first server is re-connected with the first server, wherein the first type server is a server which needs to be connected when the preset connection condition is met after the first type server is disconnected with the terminal. By dividing the server into the first type server and the second type server, when the connection between the terminal and the first type server is disconnected, the connection does not need to be established immediately, but is reestablished when the preset connection condition is met, so that under the condition that the normal use of a user is not influenced, the consumed resources are reduced, and the normal operation of the terminal is ensured.
Optionally, the first connection module 1101 includes:
a creating unit configured to create session data with the first server when an operation associated with the first server is detected;
and the first connection unit is used for reestablishing connection with the first server based on the session data.
Optionally, the apparatus further comprises:
and the second connection module is used for reestablishing connection with the first server if the first server is determined to be the second type server according to the server identifier, and the second type server is a server which needs to reestablish connection after the connection with the terminal is disconnected.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a first data packet sent by the first server through connection, wherein the first data packet at least comprises a first identifier, and the first identifier is used for indicating the sequence of the first data packet;
the acquisition module is used for acquiring a second identifier included in a second data packet stored locally, wherein the second identifier is used for indicating the sequence of the second data packet;
and the storage module is used for storing the first data packet when the first data packet is determined to be positioned behind the second data packet according to the first identifier and the second identifier.
Optionally, the apparatus further comprises:
and the updating module is used for updating the current interface based on the first data packet.
Optionally, the apparatus further comprises:
and the filtering module is used for filtering the first data packet when the first data packet is determined not to be positioned behind the second data packet according to the first identifier and the second identifier.
Optionally, the apparatus further comprises:
and the sending module is used for acquiring the user information stored by the terminal and sending a login request to the first server under the condition of keeping the display state of the current interface when the data packet sent by the first server through connection is not received, wherein the login request carries the user information.
Optionally, the first connection module 1102 includes:
the second connection unit is used for reestablishing the connection with the second server and reestablishing the connection with the first server when the second connection unit detects that the preset connection condition of the first server is met currently, the connection between the terminal and the second server is also disconnected, and the second server is a second-type server;
the second type of server is a server which needs to be reestablished after the connection between the second type of server and the terminal is disconnected.
Fig. 12 is a schematic structural diagram of a terminal 1200 according to an embodiment of the present invention. The terminal 1200 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a notebook computer, a desktop computer, a head-mounted device, or any other intelligent terminal. Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for being possessed by processor 1201 to implement the method of establishing a connection provided by the method embodiments herein.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, touch display 1205, camera 1206, audio circuitry 1207, pointing component 1208, and power source 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 12G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in still other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is configured to locate a current geographic Location of the terminal 1200 to implement navigation or LBS (Location Based Service). The Positioning component 1208 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the touch display 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on a side bezel of terminal 1200 and/or an underlying layer of touch display 1205. When the pressure sensor 1213 is disposed on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the touch display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1201 authorizes the user to have relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the touch display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1212, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1212 is used to capture the distance between the user and the front face of the terminal 1200. In one embodiment, when the proximity sensor 1212 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the touch display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1212 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the touch display 1205 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 13 is a schematic structural diagram of a server 1300 according to an embodiment of the present invention, where the server 1300 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1301 and one or more memories 1302, where the memory 1302 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1301 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 1300 may be configured to perform the steps performed by the terminal in the method for establishing a connection described above.
An embodiment of the present invention further provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one section of a program, a code set, or an instruction set, and the instruction, the program, the code set, or the instruction set is loaded by the processor and has an operation in the method for establishing a connection according to the foregoing embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the instruction, the program, the code set, or the set of instructions is loaded by a processor and has an operation in the method for establishing a connection, which is implemented in the foregoing embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A method of establishing a connection, the method comprising:
receiving a disconnection notification, wherein the disconnection notification carries a server identifier of a first server disconnected from the terminal;
if the first server is determined to be a first type server according to the server identification, when the operation associated with the first server is detected, session data between the first server and the first server are created;
reestablishing a connection with the first server based on the session data;
the first type of server is a server which needs to be connected when a preset connection condition is met after the first type of server is disconnected with the terminal.
2. The method of claim 1, further comprising:
and if the first server is determined to be a second server according to the server identifier, reestablishing connection with the first server, wherein the second server is a server which needs to reestablish connection after the connection with the terminal is disconnected.
3. The method of claim 2, wherein after the reestablishing the connection with the first server, the method further comprises:
receiving a first data packet sent by the first server through the connection, wherein the first data packet at least comprises a first identifier, and the first identifier is used for indicating the sequence of the first data packet;
acquiring a second identifier included in a second data packet stored locally, wherein the second identifier is used for indicating the sequence of the second data packet;
and when the first data packet is determined to be positioned behind the second data packet according to the first identification and the second identification, storing the first data packet.
4. The method of claim 3, wherein after storing the first packet, the method further comprises:
and updating the current interface based on the first data packet.
5. The method of claim 3, further comprising:
filtering the first data packet when it is determined that the first data packet is not located after the second data packet according to the first identifier and the second identifier.
6. The method of claim 2, wherein after the reestablishing the connection with the first server, the method further comprises:
and when the data packet sent by the first server through the connection is not received, under the condition of keeping the display state of the current interface, acquiring the user information stored by the terminal, and sending a login request to the first server, wherein the login request carries the user information.
7. The method of claim 1, further comprising:
when the preset connection condition of the first server is met, the connection between the terminal and a second server is also disconnected, and the second server is a second type server, the connection between the terminal and the second server is reestablished, and then the connection between the terminal and the first server is reestablished;
and the second type of server is a server which needs to be reestablished after the connection between the second type of server and the terminal is disconnected.
8. An apparatus for establishing a connection, the apparatus comprising:
a first receiving module, configured to receive a disconnection notification, where the disconnection notification carries a server identifier of a first server disconnected from a terminal;
the first connection module is used for establishing session data with the first server when the operation associated with the first server is detected if the first server is determined to be a first type server according to the server identification; reestablishing a connection with the first server based on the session data;
the first type of server is a server which needs to be connected when a preset connection condition is met after the first type of server is disconnected with the terminal.
9. The apparatus of claim 8, further comprising:
and the second connection module is used for reestablishing connection with the first server if the first server is determined to be a second type server according to the server identifier, and the second type server is a server which needs to reestablish connection after the connection with the terminal is disconnected.
10. The apparatus of claim 9, further comprising:
and the sending module is used for obtaining the user information stored by the terminal and sending a login request to the first server under the condition of keeping the display state of the current interface when the data packet sent by the first server through the connection is not received, wherein the login request carries the user information.
11. The apparatus of claim 8, wherein the first connection module comprises:
the second connection unit is used for reestablishing the connection with the second server and reestablishing the connection with the first server when the second connection unit detects that the preset connection condition of the first server is met currently, the connection between the terminal and the second server is also disconnected, and the second server is a second type server;
and the second type of server is a server which needs to be reestablished after the connection between the second type of server and the terminal is disconnected.
12. A terminal, characterized in that the terminal comprises: a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded and executed by the processor to carry out the operations performed in the method of establishing a connection according to any one of claims 1 to 7.
13. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to perform the operations performed in the method of establishing a connection according to any one of claims 1 to 7.
CN201910130370.XA 2019-02-21 2019-02-21 Method, device, terminal and storage medium for establishing connection Active CN109618012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910130370.XA CN109618012B (en) 2019-02-21 2019-02-21 Method, device, terminal and storage medium for establishing connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910130370.XA CN109618012B (en) 2019-02-21 2019-02-21 Method, device, terminal and storage medium for establishing connection

Publications (2)

Publication Number Publication Date
CN109618012A CN109618012A (en) 2019-04-12
CN109618012B true CN109618012B (en) 2021-10-15

Family

ID=66019001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910130370.XA Active CN109618012B (en) 2019-02-21 2019-02-21 Method, device, terminal and storage medium for establishing connection

Country Status (1)

Country Link
CN (1) CN109618012B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426878A (en) * 2013-09-02 2015-03-18 博雅网络游戏开发(深圳)有限公司 Server connection method and server connection device
CN105407008A (en) * 2015-12-17 2016-03-16 上海斐讯数据通信技术有限公司 Reconnecting method and system for interrupted TCP (Transmission Control Protocol) connection, terminal and server
CN106797312A (en) * 2014-07-10 2017-05-31 瑞尔创新国际公司 For the system and method for real-time security cloud service
CN107332735A (en) * 2017-07-04 2017-11-07 四川长虹技佳精工有限公司 The network communication method of Auto-reconnect after disconnection
CN108616914A (en) * 2018-03-30 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of disconnection reconnecting
CN109327520A (en) * 2018-10-19 2019-02-12 中国银行股份有限公司 Establish the method and device that terminal is connect with server node

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6572702B2 (en) * 2015-09-18 2019-09-11 ブラザー工業株式会社 Communication equipment
US10205801B2 (en) * 2016-01-12 2019-02-12 International Business Machines Corporation Data transfer policies between source and target servers in a wide area network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426878A (en) * 2013-09-02 2015-03-18 博雅网络游戏开发(深圳)有限公司 Server connection method and server connection device
CN106797312A (en) * 2014-07-10 2017-05-31 瑞尔创新国际公司 For the system and method for real-time security cloud service
CN105407008A (en) * 2015-12-17 2016-03-16 上海斐讯数据通信技术有限公司 Reconnecting method and system for interrupted TCP (Transmission Control Protocol) connection, terminal and server
CN107332735A (en) * 2017-07-04 2017-11-07 四川长虹技佳精工有限公司 The network communication method of Auto-reconnect after disconnection
CN108616914A (en) * 2018-03-30 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of disconnection reconnecting
CN109327520A (en) * 2018-10-19 2019-02-12 中国银行股份有限公司 Establish the method and device that terminal is connect with server node

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Improvement of Voltage Quality in Connection of Wind Farms to Transmission Network Using VSC-HVDC";Hanif. Livani,Javad. Rouhi,Saeed. Lesan;《2008 Power Quality and Supply Reliability Conference》;20081017;全文 *
"基于Netty框架的智能终端与服务器通信的研究";魏莹;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180430;全文 *

Also Published As

Publication number Publication date
CN109618012A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109246123B (en) Media stream acquisition method and device
CN110278464B (en) Method and device for displaying list
CN111494965B (en) Information processing method, device, equipment and storage medium
CN111918090B (en) Live broadcast picture display method and device, terminal and storage medium
CN110149332B (en) Live broadcast method, device, equipment and storage medium
CN110139116B (en) Live broadcast room switching method and device and storage medium
CN109445577B (en) Virtual room switching method and device, electronic equipment and storage medium
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN109194972B (en) Live stream acquisition method and device, computer equipment and storage medium
CN111092809B (en) Method and device for pushing information in real time, computer equipment and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN111918086A (en) Video connection method, device, terminal, server and readable storage medium
CN109246228B (en) Resource acquisition method, resource allocation method, device, equipment and storage medium
CN108579075B (en) Operation request response method, device, storage medium and system
CN108616835B (en) Method, device and system for acquiring network resources based on browser and storage medium
CN113204671A (en) Resource display method, device, terminal, server, medium and product
WO2022142722A1 (en) Video playback method and apparatus, electronic device, and system
US11558645B2 (en) Method for managing live-streaming room, and electronic device
CN110912830A (en) Method and device for transmitting data
CN113144622A (en) Node switching method, device, equipment and computer readable storage medium
CN108260023B (en) Live broadcast method and device
CN109618012B (en) Method, device, terminal and storage medium for establishing connection
CN112367533B (en) Interactive service processing method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant