CN110324296A - A kind of barrage server connection method, device, client - Google Patents

A kind of barrage server connection method, device, client Download PDF

Info

Publication number
CN110324296A
CN110324296A CN201810295001.1A CN201810295001A CN110324296A CN 110324296 A CN110324296 A CN 110324296A CN 201810295001 A CN201810295001 A CN 201810295001A CN 110324296 A CN110324296 A CN 110324296A
Authority
CN
China
Prior art keywords
server
barrage
information
client
barrage server
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.)
Granted
Application number
CN201810295001.1A
Other languages
Chinese (zh)
Other versions
CN110324296B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810295001.1A priority Critical patent/CN110324296B/en
Publication of CN110324296A publication Critical patent/CN110324296A/en
Application granted granted Critical
Publication of CN110324296B publication Critical patent/CN110324296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a kind of barrage server connection method, client and readable storage medium storing program for executing.This method comprises: obtaining the first information to be verified and the first identity information that client is sent the case where gateway server receives the first connection request of client transmission;The first identity information of gateway server base and the first preset-key are controlled, the first verification information is generated;If the first information to be verified is matched with the first verification information, control gateway server responds the first connection request, establishes the connection with client, barrage server info to be connected is sent to client;In the case where barrage information server receives the second connection request of client transmission, the second information to be verified and the second identity information that client is sent are obtained;It controls barrage server and is based on the second identity information and the second preset-key, generate the second verification information;If the second information to be verified is matched with the second verification information, control barrage server responds the second connection request.

Description

A kind of barrage server connection method, device, client
Technical field
The present invention relates to electronic technology field more particularly to a kind of barrage server connection method, device, clients and can Read storage medium.
Background technique
Currently, increasingly by everybody welcome platform is broadcast live in live streaming, spectators send barrage can be very in network direct broadcasting Good plays the function of being interacted with main broadcaster.Due to very big and barrage the real-time of the data volume of barrage, platform is broadcast live Server system barrage server is independent, the transmitting-receiving of the responsible barrage information of sole duty.Independent barrage server out, uses Long TCP connection and client carry out sending barrage and receive barrage.Since client connects gateway server and barrage service Device is largely based on ICP/IP protocol, and due to the characteristic of TCP/IP, anyone once knows the IP address of server and port Number, it can be attached, it is understood that there may be barrage server system is by the potential danger of illegal client side attack, barrage server The safety of system cannot ensure.
Summary of the invention
The embodiment of the invention provides a kind of barrage server connection method, device, client and readable storage medium storing program for executing, use In the safety for improving barrage server system.
In a first aspect, it is applied to barrage information server system the present invention provides a kind of barrage server connection method, The barrage information server system includes multiple gateway servers and multiple barrage servers, which comprises
In the case where gateway server receives the first connection request of client transmission, obtains the client and send The first information to be verified and the first identity information;
The first identity information described in the gateway server base and the first preset-key are controlled, the first verification information is generated;
If first information to be verified is matched with first verification information, gateway server response institute is controlled The first connection request is stated, the connection with the client is established, Xiang Suoshu client sends barrage server info to be connected;
In the case where barrage information server receives the second connection request that the client is sent, the visitor is obtained The second information to be verified and the second identity information that family end is sent, wherein the barrage server is based on institute for the client The barrage server that barrage server info to be connected determines connection is stated, second connection request is to connect the upper gateway The connection request sent after server to the barrage server;
It controls the barrage server and is based on second identity information and the second preset-key, generate the second verifying letter Breath;
If second information to be verified is matched with second verification information, barrage server response institute is controlled State the second connection request.
Optionally, first identity information includes the version number information of the client, client type information, client The device identification at end and the first time for sending first connection request stab any one or more combination in information.
Optionally, second identity information includes the version number information of the client, client type information, client Any one or more combination in the device identification at end and the second timestamp information of transmission second connection request.
Optionally, the first identity information and the first preset-key described in the control gateway server base, generation the One verification information, comprising:
It controls the gateway server and is based on first identity information and first preset-key, it is default using first Encryption Algorithm generates the first encryption data;
It controls the gateway server and is based on first encryption data, using the second predetermined encryption algorithm, generate first Verification information.
Optionally, the second identity information described in the barrage server base and the second preset-key are controlled, second is generated and tests Demonstrate,prove information, comprising:
It controls the barrage server and is based on second identity information and second preset-key, it is default using third Encryption Algorithm generates the second encryption data;
It controls the barrage server and is based on second encryption data, using the 4th predetermined encryption algorithm, generate second Verification information.
Second aspect, the embodiment of the invention provides a kind of barrage server connection methods, are applied to client, comprising:
In the case where detecting that default application program opens barrage function, taken to the gateway of barrage information server system The first connection request, the first information to be verified and the first identity information that business device is sent, so that the gateway server is verified First information to be verified, wherein first information to be verified is based on first identity information and the first preset-key It generates, first preset-key is the key that the gateway server is sent to the client in advance;
If first information to be verified connects the gateway by the verifying of the gateway server, the client Server determines the barrage being connected to based on the barrage server info to be connected that the received gateway server is sent Server;
The second connection request, the second information to be verified and the second identity information sent to the barrage server, so that Obtain the second information to be verified described in the barrage server authentication, wherein first information to be verified is based on first body Part information and the first preset-key generate, and first preset-key is that the gateway server is sent to the client in advance Key.
The third aspect, the embodiment of the invention provides a kind of barrage server attachment devices, are applied to barrage information service Device system, the barrage information server system include multiple gateway servers and multiple barrage servers, and described device includes:
First acquisition unit, in the case where for receiving the first connection request of client transmission in gateway server, Obtain the first information to be verified and the first identity information that the client is sent;
First control unit, for controlling the first identity information described in the gateway server base and the first preset-key, Generate the first verification information;
First authentication unit controls institute if matched for the described first information to be verified with first verification information It states gateway server and responds first connection request, establish the connection with the client, Xiang Suoshu client is sent to even The barrage server info connect;
Second acquisition unit, for receiving the second connection request that the client is sent in barrage information server In the case of, obtain the second information to be verified and the second identity information that the client is sent, wherein the barrage server is The client determines the barrage server of connection, second connection request based on the barrage server info to be connected To connect the connection request sent after the upper gateway server to the barrage server;
Second control unit, for control the barrage server be based on second identity information preset with second it is close Key generates the second verification information;
Second authentication unit controls institute if matched for the described second information to be verified with second verification information It states barrage server and responds second connection request.
Optionally, the first control unit is used for:
The gateway server is based on first identity information and first preset-key, using the first predetermined encryption Algorithm generates the first encryption data;
The gateway server is based on first encryption data, using the second predetermined encryption algorithm, generates the first verifying Information.
Optionally, second control unit is used for:
It controls the barrage server and is based on second identity information and second preset-key, it is default using third Encryption Algorithm generates the second encryption data;
It controls the barrage server and is based on second encryption data, using the 4th predetermined encryption algorithm, generate second Verification information.
Fourth aspect, the embodiment of the invention provides a kind of clients, comprising:
First transmission unit, in the case where detecting that default application program opens barrage function, to barrage information The first connection request, the first information to be verified and the first identity information that the gateway server of server system is sent, so that The gateway server verifies first information to be verified, wherein first information to be verified is based on first identity Information and the first preset-key generate, and first preset-key is that the gateway server is sent to the client in advance Key;
Determination unit, if passing through the verifying of the gateway server, the client for the described first information to be verified End connects the gateway server, based on the barrage server info to be connected that the received gateway server is sent, really Surely the barrage server being connected to;
Second transmission unit, the second connection request, the second information to be verified for being sent to the barrage server and Second identity information, so that the second information to be verified described in the barrage server authentication, wherein first letter to be verified Breath is generated based on first identity information and the first preset-key, and first preset-key is that the gateway server is preparatory It is sent to the key of the client.
5th aspect, the embodiment of the invention provides a kind of barrage server attachment devices, including handle described in processor Such as aforementioned first aspect barrage service as described in the examples is realized when device is for executing the computer program stored in memory The step of device connection method.
6th aspect, the embodiment of the invention provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, described Such as aforementioned first aspect embodiment and second aspect barrage as described in the examples are realized when computer program is executed by processor The step of server connection method.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present invention, barrage server system includes gateway server and barrage server, The malicious attack of illegal client in order to prevent improves the safety of barrage server system, the method in the present embodiment, in visitor Family end connects in barrage server process, needs to verify the identity of client, receives client in gateway server In the case where the first connection request sent, the first information to be verified and the first identity information that client is sent are obtained;Control The first identity information of gateway server base and the first preset-key generate the first verification information;If the first information to be verified with The matching of first verification information, control gateway server respond the first connection request, establish the connection with client, send out to client Send barrage server info to be connected;The case where barrage information server receives the second connection request of client transmission Under, obtain client send the second information to be verified and the second identity information, wherein barrage server be client be based on to The barrage server info of connection determines that the barrage server of connection, the second connection request are after connecting upper gateway server to bullet The connection request that curtain server is sent;It controls barrage server and is based on the second identity information and the second preset-key, generate second Verification information;If the second information to be verified is matched with the second verification information, control barrage server responds the second connection request. First time verifying is carried out when connecting gateway server, then when connecting barrage server by gateway server, is also needed Second of verifying is carried out, in this way, just can effectively prevent the malicious attack of illegal client, improves the peace of gateway server system Quan Xing.
Detailed description of the invention
Fig. 1 is the flow chart of one of first embodiment of the invention barrage server connection method;
Fig. 2 is the flow chart of one of second embodiment of the invention barrage server connection method;
Fig. 3 is the schematic diagram of the barrage server attachment device in third embodiment of the invention;
Fig. 4 is the schematic diagram of the client in fourth embodiment of the invention.
Specific embodiment
The embodiment of the invention provides a kind of barrage server connection method, device, client and readable storage medium storing program for executing, use In the safety for improving barrage server system.Method applied to barrage information server system includes: in gateway server In the case where the first connection request for receiving client transmission, the first information to be verified that the client is sent and the are obtained One identity information;The first identity information described in the gateway server base and the first preset-key are controlled, the first verifying letter is generated Breath;If first information to be verified is matched with first verification information, gateway server response described the is controlled One connection request, establishes the connection with the client, and Xiang Suoshu client sends barrage server info to be connected;In bullet In the case that curtain information server receives the second connection request that the client is sent, obtain that the client sends the Two information to be verified and the second identity information;Control the barrage server be based on second identity information preset with second it is close Key generates the second verification information;If second information to be verified is matched with second verification information, the barrage is controlled Server responds second connection request.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that the application Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Embodiment
Referring to FIG. 1, first embodiment of the invention provides a kind of barrage server connection method, it is applied to barrage information and takes Business device system, the barrage information server system includes multiple gateway servers and multiple barrage servers, the method packet It includes:
S101: in the case where gateway server receives the first connection request of client transmission, the client is obtained Hold the first information to be verified sent and the first identity information;
S102: controlling the first identity information described in the gateway server base and the first preset-key, generates the first verifying Information;
S103: if first information to be verified is matched with first verification information, the gateway server is controlled First connection request is responded, the connection with the client is established, Xiang Suoshu client sends barrage service to be connected Device information;
S104: it in the case where barrage information server receives the second connection request that the client is sent, obtains The second information to be verified and the second identity information that the client is sent, wherein the barrage server is the client The barrage server of connection is determined based on the barrage server info to be connected, second connection request is institute in connection State the connection request sent after gateway server to the barrage server;
S105: controlling the barrage server and be based on second identity information and the second preset-key, generates second and tests Demonstrate,prove information;
S106: if second information to be verified is matched with second verification information, the barrage server is controlled Respond second connection request.
Specifically, in the present embodiment, barrage server system includes multiple gateway servers and multiple barrage services Device, each gateway server connect multiple barrage servers.Client is detecting default application program unlatching barrage function In the case of, client is when determining the gateway server being connected to, the first connection request sent to the gateway server, the One information to be verified and the first identity information.
If client is legitimate client, it is close which can be previously received gateway server is sent in advance first Key, and then it is based on first key and the first identity information, which produces the first information to be verified and tests for gateway server Card, in the present embodiment, the first identity information includes the version number information of the client, client type information, client Device identification and the first time for sending first connection request stab any one or more combination in information.
Client has version number information version, the client type information of client when connecting gateway server Clienttype, the unique ID of equipment (i.e. device identification) of client, the timestamp information time that currently connects.By these information Be spliced together the KEY value for calculating its MD5 value again after encryption to be verified, which is the first letter to be verified Breath.This KEY value depends on time and client-side information, so the value that each client each moment calculates is variation , to improve its threshold being forged.It is implemented as follows:
By order encryptData1=AES.encrypt (version+clienttype+ID+time1, Aeskey1 the first encryption data) is generated, wherein AES.encrypt is then AES (Advanced Encryption Standard, Advanced Encryption Standard) Encryption Algorithm interface, aeskey1 is then the key value used using AES encryption algorithm, i.e., The first key of legitimate client, gateway server and legitimate client is sent in advance for gateway server to use similarly Value.Encrypted encryptData1 is finally obtained as a result, the encryptData1 is that client is generated using AES encryption algorithm The first encryption data.
Then, the first information to be verified, above-mentioned life are generated by order Key1=Md5.Create (encryptData1) It enables by calling MD5 algorithm to obtain the first information Key1 to be verified.
Client can carry and the first information Key1 to be verified and the first identity is reported to believe when connecting gateway server Breath.
In turn, in step s101, in the case where gateway server receives the first connection request of client transmission, The above- mentioned information that the client reports can also be received.In the same way, it is based on the first identity information and first key, is adopted The first verification information Key2 is generated with same Encryption Algorithm.Above-mentioned example is continued to use, in step s 102, gateway server also base It (is set in the unique ID of equipment of the version number information version of client, client type information clienttype, client Standby mark), the timestamp information time1 that currently connects, the first encryption data is generated using AES encryption algorithm, then passes through MD5 Encryption Algorithm calculates the first verification information Key2.
In turn, if client is legitimate client, in step s 103, the first verification information that gateway server generates Key2 is consistent with the first information Key2 to be verified that legitimate client reports, and successful match can be determined, in this way, client can By the verifying of gateway server, the connection request at gateway server customer in response end establishes the connection with client.Gateway clothes Business device can send barrage server info to be connected to client.
Further, barrage service is connected by the barrage server info to be connected that gateway server is sent in client When device, the barrage server being connected to also needs further to verify the client.Detailed process and gateway server Verification process is similar.
Specifically, client in the barrage server for determining to be connected to, passes through order encryptData2= AES.encrypt (version+clienttype+ID+time2, aeskey2) generates the second encryption data, wherein AES.encrypt is then the interface of AES encryption algorithm, and aeskey2 is then the key value used using AES encryption algorithm, as bullet Curtain server is sent to the second key of legitimate client, barrage server and legitimate client in advance and uses same value.Most Obtain encrypted encryptData2 eventually as a result, the encryptData2 be client generated using AES encryption algorithm the Two encryption datas.
Then, the second information to be verified, above-mentioned life are generated by order Key3=Md5.Create (encryptData2) It enables by calling MD5 algorithm to obtain the second information Key3 to be verified.
Client can carry and the second information Key3 to be verified and the second identity is reported to believe when connecting barrage server Breath.By step S104, barrage server is in the information for receiving the client and reporting, then by step S105, using same Mode, be based on the second identity information and the second key, using same Encryption Algorithm generation the second verification information Key4.It continues to use Above-mentioned example, barrage server also based on the version number information version of client, client type information clienttype, The unique ID of the equipment of client (i.e. device identification), the timestamp information time2 currently connected are generated using AES encryption algorithm Then second encryption data calculates the second verification information Key4 by md5 encryption algorithm.
In turn, by step S106, if client is legitimate client, the second verification information that barrage server generates Key4 is consistent with the second information Key3 to be verified that legitimate client reports, and successful match can be determined, in this way, client can By the verifying of barrage server, the connection request at barrage server customer in response end establishes the connection with client.
Further, client and the connection procedure of barrage server are as follows:
In the case where detecting that default application program opens barrage function, it is connected to gateway server;
Obtain the gateway server is sent first candidate barrage server list, the described first candidate barrage server It include the domain name addresses of at least one barrage server in list;
The barrage server in the described first candidate barrage server list is connected by the first preset strategy;
If the barrage server in the described first candidate barrage server list is all connected with failure, the second candidate bullet is obtained Curtain server list includes each barrage service at least one barrage server in the second candidate barrage server list The IP address and port numbers of device;
The barrage server in the described second candidate barrage server list is connected by the second preset strategy.
Specifically, the barrage server connection method in the present embodiment is mainly used in the visitor for being mounted with default application program Family end, default application program can be the application program of live streaming application program or video class, it is, of course, also possible to be other with bullet The application program of curtain function, the application is with no restrictions herein.Further, in the present embodiment, due to the bullet of live streaming application program Curtain information content is larger, and real-time is higher, and barrage server system includes multiple gateway servers and multiple barrage services Device, each gateway server connect multiple barrage servers.The default application program of client when opening barrage function, It needs first to connect gateway server, barrage server is then reconnected by gateway server.
Firstly, being connected to gateway server in the case where detecting that default application program opens barrage function.Gateway clothes The function that business device needs to complete is fewer, and network load is light, and same gateway server can support the connection of multiple client, It is relatively high that client connects into power for gateway server.It, can be from PHP when client connects gateway server (Hypertext Preprocessor, HyperText Preprocessor) server passes through HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) it requests to pull the IP list of candidate gateways server, PHP server can be according to the whole network In each gateway server connection client load situation, selection loads IP address and the port of fewer gateway server Form the IP list of candidate gateways server.As: determining that client connection amount is less than the IP of the gateway server of preset quantity Location and port numbers are added to the IP list of candidate gateways server.
Then, the IP list for the gateway server determined is issued in client by PHP server.Client is from PHP After server obtains the IP list of gateway server, using randomized policy, randomly chooses an IP every time and port is attached, If in connection, completing the Connection Step of gateway server, otherwise randomly choosed from the IP list of gateway server again Remaining IP and port are attached, until being successfully connected gateway server.
In turn, after connecting upper gateway server, client can send the of connection barrage server to gateway server One connection request, upon receiving the request, gateway server can be according to the load feelings of each barrage server for gateway server Condition and geographical location determine the barrage server in the first candidate barrage server list.Specifically, can be few by load And the barrage server close with client location be selected into the first candidate barrage server list.In view of each client institute The region being in, the present embodiment, which is provided firstly, to be parsed domain name (DNS) to determine by way of connecting barrage server The first candidate barrage server list in include at least one barrage server domain name addresses.Determining the first candidate bullet After curtain server list, gateway server sends it to client.
Client is after receiving the first candidate barrage server list, it may include following steps: candidate from described first It successively randomly chooses a barrage server in barrage server list to be attached, until successful connection or first candidate Barrage server in barrage server list is all connected with failure.
Wherein, described that a barrage server progress is successively randomly choosed from the described first candidate barrage server list Connection, comprising: successively randomly choose a barrage server from the described first candidate barrage server list, obtain random choosing The domain name addresses for the barrage server selected;Domain name address is parsed, with obtaining the IP of the randomly selected barrage server Location and port numbers;Based on the IP address and port numbers of the randomly selected barrage server, the randomly selected bullet is connected Curtain server.
Specifically, in the present embodiment, client is after receiving the first candidate barrage server list, in order to as far as possible Realization load balancing, client will use randomized policy to connect the barrage service in the first candidate barrage server list Device.It is attached specifically, can successively randomly choose a barrage server from the first candidate barrage server list, directly Barrage server into successful connection or the first candidate barrage server list is all connected with failure.
In the barrage server that connection is randomly selected, client obtains corresponding domain name addresses, passes through domain name Resolver parses IP address corresponding with the domain name addresses and port numbers, can based on the IP address and port numbers parsed, Corresponding barrage server is connected, in the present embodiment, a barrage server can be determined at random, then carry out domain name Address resolution is finally connected to corresponding barrage server based on the obtained IP address of parsing and port numbers.
Certainly, the method in the present embodiment, can also be directly by barrage all in the first candidate barrage server list The domain name addresses of server is parsed, and obtains the corresponding IP address of each barrage server in the list and port numbers, then It randomly chooses one group of IP address and port numbers is attached.In the specific implementation process, connection can be determined according to actual needs The mode of barrage server in first candidate barrage server list, here, the application is with no restrictions.
When client is successfully connected to a barrage server, client can carry out barrage with the barrage server of connection The interaction of information, if it fails to connect, client can be from the first candidate barrage server list in remaining barrage server Random selection one is attached, until successful connection.Cause client can not parse bullet due to being held as a hostage there are domain name addresses The IP address of curtain server, or the case where the IP address that gets does not connect barrage server yet, so, there is also clients The case where end is all connected with unsuccessfully for the barrage server in the first candidate barrage server list.
When client parses the barrage server in the first candidate barrage server list by way of domain name mapping IP address and port numbers after, the bullet in the first candidate barrage server list is connected with port numbers based on the IP address parsed Curtain server, if domain name is held as a hostage or other reasons cause client not connect the first candidate barrage server list In barrage server.At this time in order to ensure that client can connect upper barrage server as far as possible, client can will be connected The information of failure feeds back to gateway server, and gateway server is after receiving the feedback information, then again by gateway server It is secondary to issue the second candidate barrage server list to client, it include at least one bullet in the second candidate barrage server list The IP address and port numbers of each barrage server in curtain server.IP address and port numbers in this list are the IP that guarantees the minimum, To ensure that client can connect barrage server as far as possible.
Further, in the present embodiment, gateway server can loading condition according to each barrage server and port Occupancy situation determines the IP address and port numbers of the barrage server in the second candidate barrage server list.Specifically, can The second candidate barrage server list, the barrage server being selected into are selected into so that few and the port free time barrage server will be loaded Including its IP address and corresponding port numbers.In turn, client can be based on each barrage in the second candidate barrage server list The IP address and port numbers of server are connected to corresponding barrage server.Further, client can also be by the last time even The candidate barrage server list of the corresponding IP list the most second of the barrage server connect.
Further, it is attached by step S105, the barrage service in the candidate barrage server list of connection second When device, it can use but be not limited to following two mode:
First way: successively randomly choosed from the described second candidate barrage server list a barrage server into Row connection, until successful connection.
Specifically, in the present embodiment, in order to enable each IP address of barrage server and port being capable of equally loadeds Randomized policy can be used also to connect the barrage server in the second candidate barrage server list in pressure, client.Specifically , one group of IP address and the port of a barrage server can be successively randomly choosed from the second candidate barrage server list It number is attached, until the barrage server in successful connection or the second candidate barrage server list is all connected with failure.
When client is successfully connected to a barrage server, client can carry out barrage with the barrage server of connection The interaction of information, if it fails to connect, client can be from the second candidate barrage server list in remaining barrage server Random selection one is attached, until successful connection.Barrage server is not connected due to there is the IP address got Situation, so, there is also the feelings that the barrage server that client is directed in the second candidate barrage server list is all connected with failure Condition.
The second way: by the barrage server in the described second candidate barrage server list by connecting into power by height To low sequence;By the barrage connected into the candidate barrage server list of power being sequentially connected with from high to low described second Server, until successful connection.
Specifically, in the present embodiment, client will record default application program and connect during opening barrage function often The history linkage record of a barrage server, including successful connection record and connection failure record.Such as: live streaming application program exists Barrage function, the record of the barrage server connected during watching the first direct broadcasting room every time, packet are opened in preset time range It includes: the record of IP address 1 that is successful in 24 hours nearest away from current time and unsuccessfully connecting barrage server 1, wherein Being successfully connected number is N1, and the number of failure connection is N2.Succeed in 24 hours nearest away from current time and unsuccessfully connects Connect the record of the IP address 2 of barrage server 2, wherein being successfully connected number is N3, and the number of failure connection is N4.Away from working as The record of success and the IP address 3 for unsuccessfully connecting barrage server 3 in nearest 24 hours of preceding moment, wherein be successfully connected Number is N5, and the number of failure connection is N6.
By history linkage record, it can determine that the success rate of client connection barrage server 1 is N1/ (N1+N2+ N3+N4+N5+N6), the success rate of client connection barrage server 2 is N3/ (N1+N2+N3+N4+N5+N6), client connection The success rate of barrage server 3 is N5/ (N1+N2+N3+N4+N5+N6).It is, of course, also possible to which otherwise definition connection is each The success rate of barrage server, such as: continue to continue to use above-mentioned example, the success rate for defining client connection barrage server 1 is N1-N2, the success rate that client connects barrage server 2 is N3-N4, and the success rate that client connects barrage server 3 is N5- N6.In the specific implementation process, the success rate that client connects each barrage server can be defined according to actual needs, This, the application is with no restrictions.
After client receives the second candidate barrage server list, client can be determined based on history linkage record The success rate of each barrage server in the candidate barrage server list of end connection second.And then by connecting into power from high to low Sequence, by connecting into the barrage server being sequentially connected in the second candidate barrage server list of power from high to low, Until successful connection.
Further, in the present embodiment, client can also according to last received candidate barrage server list come Carry out the connection of barrage server.Such as: for application program is broadcast live, live streaming application program is entered each according to client Between directly, with regard to carrying out the connection of a barrage server, exits direct broadcasting room and then disconnect.Method in the present embodiment, client When entering direct broadcasting room every time, (first is candidate for the candidate barrage server list that can also be issued from last time gateway server at end Barrage server list or the second candidate barrage server list) corresponding IP list random selection or by success rate from high to low Sequence be attached, the strategy of random connection strategy and the sequential connection by success rate from high to low as described above, here, The application repeats no more.For client, barrage server is connected every time, will record the information of the secondary connection, and record is each Whether IP address connection succeeds, and records failure if failure, records success if success.Client with connecting IP every time The record of location can be stored in client local, can also be uploaded to server end.
Due to there is the case where IP address got does not connect barrage server, so, there is also clients to be directed to The case where barrage server in second candidate barrage server list is all connected with unsuccessfully.
In the case that barrage server in the second candidate barrage server list is all connected with failure, in the present embodiment Barrage server connection method is additionally provided based on HTTP (HyperText Transfer Protocol, Hyper text transfer association View) barrage server connection strategy, so, if the barrage server in the second candidate barrage server list connects Failure is connect, the method also includes: barrage server of the connection based on http protocol.
Specifically, including multiple barrage servers in barrage server system, due to being based on TCP/IP in the present embodiment The server connection speed of agreement is very fast, and client can quickly connect barrage server, so, most barrage server For the server based on ICP/IP protocol, the barrage server for having fraction is the server based on http protocol.Such as: barrage It include 90 barrage servers based on ICP/IP protocol, the barrage service comprising 10 based on http protocol in server system Device.
Further, the hyperlink address of the barrage server based on http protocol client-based can request to pass through net It closes server and is issued to client, such as: mistake is all connected with for the barrage server in the second candidate barrage list in client In the case where losing, feedback link failure information to gateway server, gateway server issues after receiving connection failure information The hyperlink address of barrage server based on http protocol is to the client.
Meanwhile the hyperlink address of the barrage server based on http protocol can also be issued to each visitor of the whole network in advance Family end, such as: its corresponding hyperlink address is just sent to the whole network when building the barrage server based on http protocol Client.Each client locally saves the hyperlink address of the barrage server based on http protocol, in client needle In the case where being all connected with failure to the barrage server in the second candidate barrage list, obtain locally save based on http protocol Barrage server hyperlink address, then corresponding barrage based on http protocol is connected to by hyperlink address and is taken Business device.It supports to send and receive barrage by way of HTTP, thus equal mentioned by domain name mapping and IP strategy of guaranteeing the minimum When not connecting barrage server, it is also based on the barrage server based on http protocol in http protocol connection, to ensure Client can be successfully connected to barrage server, send and receive barrage information.
In the present embodiment, when connecting the barrage server based on http protocol, it can use but be not limited to following two Kind mode:
First way: a barrage server is successively randomly choosed from the barrage server based on http protocol and is carried out Connection based on http protocol, until successful connection.
Specifically, in the present embodiment, in order to enable each barrage server based on http protocol of barrage server Can equally loaded pressure, randomized policy can be used also to connect the barrage server based on http protocol in client.Specifically , a barrage server can be successively randomly choosed from the barrage server based on http protocol and is attached, until even It is connected into function.In the present embodiment, the barrage server based on http protocol can also set maximum number of connections, if client is asked It asks when connecting barrage server based on http protocol, if the client terminal quantity that the barrage server currently connects be to set Maximum number of connections, then the barrage server can refuse the connection request of client, and client is assisted from remaining based on HTTP again The barrage server of view randomly chooses one and is attached, until successful connection.
The second way: the client terminal quantity of each barrage server connection based on http protocol is obtained;The company of determining The least barrage server of the client terminal quantity connect;Based on http protocol, the least bullet of client terminal quantity of the connection is connected Curtain server.
Specifically, in the present embodiment, the hyperlink address of the barrage server based on http protocol is based on client In the case that the request at end is issued to client by gateway server, gateway server can also issue each based on http protocol The client terminal quantity that is connected at current time of barrage server, in this way, knowing each bullet based on http protocol in client Curtain server is after the client terminal quantity that current time connects, it may be determined that the least barrage service of the client terminal quantity connected out Device, then it is based on http protocol, connect the barrage server.In this way, can be further improved client connection barrage server Success rate and connection speed improve user experience.
Further, in the present embodiment, client is in the case where detecting that default application program opens barrage function, by It is typically mounted on mobile client in default application program, the network state of mobile client may change in real time.Institute With, it is also necessary to determined whether to carry out the operation of barrage server connection according to client current network connection status.Specifically, May include following steps: detection obtains the current network connection status of the client;If the current network connection status In default network connection state, barrage server is connected by preset strategy, wherein the default network connection state is wireless Local area network connection status or radio wide area network connection status;If the current network connection status is in non-default network Connection status stops connection barrage server.
Specifically, in the present embodiment, client detection being triggered in following several situations and works as network connection state.The One kind is preset and presets the barrage function of application program after application program launching and open, and is triggered when carrying out video playing, client Network connection state is worked as in end detection.Such as: default application program is live streaming application program, after application program launching is broadcast live, and The barrage function of the live streaming application program is opened, if live streaming application program enters the first direct broadcasting room, at this point, client can detect Current network connection status.Second, preset application program launching after carry out video playing during, barrage function is turned on When, network connection state is worked as in client detection.Such as: enter the first direct broadcasting room after live streaming application program launching, during which user opens Barrage function is opened, at this point, client can detect current network connection status.The third, the default application program fortune in client Between the departure date, if the default application program opens barrage function, client can be spaced (such as 5 minutes, 10 points at preset timed intervals Clock etc.) detection current network connection status.
In turn, if current network connection status is in Wireless LAN connection status (such as connection wifi network) or nothing Line Wide Area Network connection status (such as connection 3G/4G network) default network state, can connect barrage service by preset strategy Device.If current network connection status is in non-default network connection state, such as: client does not connect network, then stops connecting Connect barrage server.The case where for no network, if barrage server does not connect, client can't reconnection, and It is re-attached barrage server when being in default network connection state until presetting network in client connection.Such as: visitor The network state that the mobility at family end may cause client changes, and when connecting wifi network, is moved to this The region that wifi network is not covered with, in this way, detecting that network connection state switches to non-default network by default network state State, at this point, client can interrupt the connection between barrage server, after client reconnects upper wifi network, again Connect barrage server.
Further, in the present embodiment, if current network connection status is in radio wide area network connection status, output Whether prompt information confirms connection barrage server for reminding;If receiving the confirmation message for prompt information, by pre- If strategy connection barrage server.
Specifically, in the present embodiment, if current network connection status is in radio wide area network connection status, due to Radio wide area network is usually required by flow charging, so, client need to export prompt information for remind whether confirm company Barrage server is connect, prompt information can be voice reminder, text prompting etc., if receiving user is directed to prompt information really Recognize information, client can just connect barrage server, to avoid the unnecessary economic expense of user is caused.
Further, in the present embodiment, if it is determined that the current network connection status of client is in default network connection State can also further consider network speed, the remaining capacity of client, memory usage etc. because usually finally deciding whether to connect Barrage server.Specifically, one or more preset conditions can be set, comprising: the network speed of the network currently connected is greater than pre- If network speed, the remaining capacity of client is greater than default electricity, and memory usage is less than default memory usage.Meeting above-mentioned one When a or multiple preset conditions, determines and connect barrage server by preset strategy.
Further, in the present embodiment, the case where the current network state for determining client is in default network state Under, by preset strategy connect barrage server in the way of can using the connection strategy above-mentioned based on domain name mapping, guarantee the minimum IP Address connection strategy and HTTP connection strategy, above-mentioned connection type are described in detail in the aforementioned embodiment, here, this Shen It please repeat no more.
Further, it should be noted that in the situation of above-mentioned triggering client detection current network connection status, if It is the third above-mentioned situation, during the default application program operation in client, if the default application program opens barrage Function, client can be spaced (such as 5 minutes, 10 minutes) detection current network connection status at preset timed intervals.If previous The network connection state of secondary detection is in non-default network state, and is in default network in the network connection state at current time State, and the time interval that current time is successfully connected barrage server away from the last time is less than prefixed time interval (such as: 10 points Clock, 20 minutes etc.), client can reconnect barrage server, when connecting barrage server, can be directly connected to client The barrage server that last time is successfully connected, if it fails to connect, can be again according to connection barrage service in previous embodiment The mode of device carries out barrage server connection.
In this way, connection barrage server only is being removed in default network state Shi Caihui in client, it can To reduce the consumption of CPU as far as possible, to reduce power consumption, calorific value is also reduced.
Further, in the present embodiment, if detecting the network connection state of client by presetting network connection state It is changed to non-default network connection state, stops connection barrage server.
Specifically, client needs to be monitored network connection state, if detecting the network connection shape of client State is changed to non-default network connection state by default network connection state, then client can't reattempt to connection barrage clothes Business device, but connection barrage server is retried until client is in default network connection state Shi Caihui.
Further, in the present embodiment, after client connects upper barrage server according to preset strategy, it is also necessary to monitor The front and back operating status of default application program, the adjustment of barrage server connection is carried out according to operating status.Can specifically it lead to It crosses following steps realization: monitoring the operating status of default application program;If the operating status of default application program is transported by foreground Row state switches to background operation state, stops connection barrage server;If the operating status of default application program is by backstage Operating status switches to front stage operation state, reconnects barrage server.
Specifically, in the present embodiment, during completing the transmitting-receiving of barrage information after client connects upper barrage server, The operating status of default application program can be monitored, such as: it is spaced (such as 5 minutes, 10 minutes) at preset timed intervals and checks default answer Client continuation and the barrage service that connect if default application program be in front stage operation state with the operating status of program Device carries out the transmission of barrage information, if the operating status of default application program switches to running background shape by front stage operation state State, for live streaming application program, exiting backstage means that spectators can't see live streaming, while also can't see barrage, institute With client can stop connecting barrage server, will not go constantly to connect barrage server.And it is default using journey when detecting When sequence back switches to front stage operation, barrage server can be reconnected.
Further, in the present embodiment, a waiting time (such as 5 minutes, 10 minutes) can also be set, are answered when default When switching to running background with program, if the duration in running background reaches waiting time, client is interrupted to be taken with barrage Connection between business device, during the duration of default application program running background does not also reach the waiting time, client can be maintained With the connection between barrage server, in this way, when default application program switches back into front stage operation state within a short period of time, client End can receive and dispatch barrage information in time.After default application program is in the background operation state long period, client can be automatic Connection between interruption and barrage server causes to avoid in default application program running background due to connecting barrage server The problems such as additional heat, the CPU for occupying client and consuming electricity.It is cut again in the default application program of background operation state When shifting to front stage operation, if having interrupted the connection between client and barrage server in running background, at this point it is possible to directly The barrage server that is successfully connected of connection client last time, if it fails to connect, can be again according to connecting in previous embodiment The mode for connecing barrage server carries out barrage server connection, here, the application does not repeat them here.
Further, in the present embodiment, in order to improve the speed that client is successfully connected barrage server, in the present embodiment Method, default application program be live streaming platform in the case where, can also be achieved by the steps of:
Detecting that the live streaming platform opens barrage function and the live streaming platform is when entering the first direct broadcasting room, It is connected to gateway server;
Obtain the gateway server is sent first candidate barrage server list;
Obtain barrage Server history linkage record corresponding with first direct broadcasting room, wherein the barrage server History linkage record includes connecting bullet during the live streaming platform enters first direct broadcasting room in the first preset time range The record of curtain server;
Based on the barrage Server history linkage record, by the candidate barrage server column of preset strategy connection described first Barrage server in table.
Specifically, in the present embodiment, several situations can trigger the barrage server of client connection below: the first, After platform starting is broadcast live, if live streaming platform opens barrage function, user clicks to enter the first direct broadcasting room at this time, can trigger client End connection barrage server.Second, after live streaming platform starting, user clicks to enter the first direct broadcasting room, and user is in viewing first Barrage function is opened during direct broadcasting room, can trigger client connection barrage server.
In turn, client is when connecting barrage server, it is necessary first to be connected to gateway server, connect gateway server Process elaborate in the aforementioned embodiment, here, the application does not repeat them here.
Further, in the present embodiment, before client is connected to gateway server, the live streaming platform every time into Enter under the first direct broadcasting room connection barrage server conditions, if successful connection, records corresponding with first direct broadcasting room The successful connection of the barrage server records, if it fails to connect, the record barrage corresponding with first direct broadcasting room The connection failure of server records, to form barrage Server history linkage record corresponding with first direct broadcasting room.
Specifically, client will record the note that live streaming platform enters first direct broadcasting room connection barrage server every time Record, including successful connection record and connection failure record.Platform is broadcast live when opening barrage function, it is straight to enter first every time Barrage server can be connected between broadcasting, and according to aforementioned barrage server connection type, barrage service can be selected from candidate list Device is attached, until successful connection.Such as: it is successfully connected barrage server 1 when entering the first direct broadcasting room at the moment 1, can be remembered Record the record that this time is successfully connected, ID including the first direct broadcasting room, be successfully connected mark (for showing the secondary successful connection, can To be indicated with " 1 "), be successfully connected consumed duration, connection the moment, successful connection barrage server ID, IP address and end The information such as slogan.When entering the first direct broadcasting room at the moment 2, connection barrage server 2 fails, and will record the note of this time failure connection Record, ID including the first direct broadcasting room, failure connection identifier (for showing the secondary connection failure, can be indicated with " 0 "), when connecting It carves, the information such as barrage server ID, IP address and the port numbers of connection failure.In this manner it is possible to be formed and the first direct broadcasting room pair The barrage Server history linkage record answered.
It in turn, can be from barrage service corresponding with the first direct broadcasting room after receiving the first candidate barrage server list The note that barrage server is connected during entering the first direct broadcasting room in the first preset time range is filtered out in device history linkage record Record.Such as: it filters out and connects away from the barrage Server history corresponding with the first direct broadcasting room in immediate 24 hours of current time Connect record.Based on the mode of above-mentioned record, result can be quickly screened with the moment is connect based on the first direct broadcasting room ID.
In turn, can based in the first preset time range enter the first direct broadcasting room during connect barrage server record, The barrage server in the described first candidate barrage server list is connected by preset strategy, it specifically can be real as follows It is existing:
Based on the barrage Server history linkage record, each bullet in the described first candidate barrage server list is obtained Curtain server successful connection record and connection failure in first preset time range record;
Based on each barrage server in the described first candidate barrage server list in first preset time range Interior successful connection record and connection failure record, and obtain each barrage server connects into power;
By the barrage server in the candidate barrage server list of sequential connection described first of success rate from high to low, directly To successful connection.
Specifically, the first candidate barrage server list includes multiple barrage servers, connected based on barrage Server history Record is connect, each barrage server in the first candidate barrage server list can be obtained and connected in the first preset time range Success is recorded to be recorded with connection failure.Such as: the first candidate barrage server list includes barrage server 1, barrage server 2 With barrage server 3, it is based on barrage Server history linkage record, can get in 24 hours nearest away from current time and straight Between broadcasting 1 corresponding success and unsuccessfully connect barrage server 1 IP address 1 record, wherein be successfully connected number be N1, The number of failure connection is N2.It success corresponding with direct broadcasting room 1 and is unsuccessfully connected in 24 hours nearest away from current time The record of the IP address 2 of barrage server 2, wherein being successfully connected number is N3, and the number of failure connection is N4.Away from current The record of success corresponding with direct broadcasting room 1 and the IP address 3 for unsuccessfully connecting barrage server 3 in moment nearest 24 hours, Wherein, being successfully connected number is N5, and the number of failure connection is N6.
By history linkage record, it can determine that the success rate of client connection barrage server 1 is N1/ (N1+N2+ N3+N4+N5+N6), the success rate of client connection barrage server 2 is N3/ (N1+N2+N3+N4+N5+N6), client connection The success rate of barrage server 3 is N5/ (N1+N2+N3+N4+N5+N6).It is, of course, also possible to which otherwise definition connection is each The success rate of barrage server, such as: continue to continue to use above-mentioned example, the success rate for defining client connection barrage server 1 is N1-N2, the success rate that client connects barrage server 2 is N3-N4, and the success rate that client connects barrage server 3 is N5- N6.In the specific implementation process, the success rate that client connects each barrage server can be defined according to actual needs, This, the application is with no restrictions.In turn, it can sort from high to low by power is connected into, by connecting into the sequence of power from high to low The barrage server being sequentially connected in the first candidate barrage server list, until successful connection.
Since include in the first candidate barrage server list is domain name addresses, before the method in the present embodiment can be used The mode for stating domain name mapping is attached, such as: continue to continue to use above-mentioned example, if what success rate arranged from high to low is barrage Server 1, barrage server 3, barrage server 2.Barrage server 1 is connected first, parses IP corresponding with barrage server 1 Address and port numbers, are then based on the IP address parsed and port numbers are attached.In barrage 1 connection failure of server, Barrage server 3 is reconnected, in barrage 3 connection failure of server, reconnects barrage server 2.
Further, if the barrage server in the first candidate barrage server list is all connected with failure, such as aforementioned implementation It is found that gateway server can also issue the second barrage server list in example, including guarantee the minimum IP address and port numbers wherein, guarantees the minimum IP refers to that the IP address and port numbers for the barrage server that gateway server is directly transmitted to client, client can directly lead to Cross its connection for carrying out corresponding barrage server, without as in domain name mapping strategy client must carry out domain name mapping ability Domain name mapping step can be omitted by obtaining the corresponding IP address of domain name addresses and port numbers, client, also can avoid being robbed because of domain name Hold the problem of causing client can not parse IP address and not connecting barrage server.Equally, client can be called and first The corresponding barrage server linkage record in the second preset time range of direct broadcasting room is based on the record, determines the second barrage The each barrage server of server list kind connects into power, finally candidate by the sequential connection second of success rate from high to low Barrage server in barrage server list, until successful connection.
Such as: the second candidate barrage server list includes barrage server 1, barrage server 5 and barrage server 7, Based on barrage Server history linkage record, can get in 24 hours nearest away from current time it is corresponding with direct broadcasting room 1 at Function and the unsuccessfully record of the IP address 1 of connection barrage server 1, wherein being successfully connected number is N11, time of failure connection Number is N12.Success corresponding with direct broadcasting room 1 and barrage server 5 is unsuccessfully connected in 24 hours nearest away from current time IP address 5 record, wherein be successfully connected number be N31, failure connection number be N41.Nearest away from current time In 24 hours success corresponding with direct broadcasting room 1 and unsuccessfully connect barrage server 7 IP address 7 record, wherein successfully connect Connecing number is N51, and the number of failure connection is N61.
By history linkage record, it can determine that the success rate of client connection barrage server 1 is N11/ (N11+ N21+N31+N41+N51+N61), the success rate of client connection barrage server 5 is N31/ (N11+N21+N31+N41+N51+ N61), the success rate of client connection barrage server 6 is N51/ (N11+N21+N31+N41+N51+N61).It is, of course, also possible to Otherwise definition connects the success rate of each barrage server, such as: continue to continue to use above-mentioned example, defines client connection The success rate of barrage server 1 is N11-N21, and the success rate that client connects barrage server 5 is N31-N41, and client connects The success rate for connecing barrage server 7 is N51-N61.In the specific implementation process, client connect each barrage server at Power can be defined according to actual needs, here, the application is with no restrictions.In turn, it can be arranged from high to low by power is connected into Sequence, by the barrage server being sequentially connected in the second candidate barrage server list of power from high to low is connected into, directly To successful connection.
Continue to continue to use above-mentioned example, if what success rate arranged from high to low is barrage server 1, barrage server 5, bullet Curtain server 7.Barrage server 1 is connected first, in barrage 1 connection failure of server, barrage server 5 is reconnected, in bullet When curtain 5 connection failure of server, barrage server 7 is reconnected.
It further, can be with if the barrage server in the second candidate barrage server list is all connected with failure Connect the barrage server based on http protocol.The mode of the barrage server based on http protocol is connected in previous embodiment Middle detailed description, here, the application does not repeat them here.
Further, in the present embodiment, it is live streaming platform in default application program, live streaming platform can also be entered in user When predict that the direct broadcasting room that the user may enter connects corresponding barrage clothes in turn in advance before entering the direct broadcasting room Business device, in this way, the transmitting-receiving of barrage information can be carried out in time when entering direct broadcasting room.Specifically, can be achieved by the steps of:
When detecting that live streaming platform and the live streaming platform described in the client terminal start-up open barrage function, obtain Take at least one direct broadcasting room for logging in user's concern of the live streaming platform;
The first direct broadcasting room is determined from least one described direct broadcasting room, is obtained and corresponding the first of first direct broadcasting room Candidate barrage server list;
The barrage server in the described first candidate barrage server list is connected by preset strategy, so that the live streaming Platform is successfully connected barrage server before entering first direct broadcasting room.
Specifically, in the present embodiment, user is to enter live streaming to put down first after logging in live streaming platform by account number cipher The function of tonic chord interface of platform is broadcast live at this point, client can get at least one direct broadcasting room of user concern since user pays close attention to Between, show that user is interested in the live video of the direct broadcasting room, so, user can very likely enter the direct broadcasting room of concern.By This, client can watch the information of record or direct broadcasting room based on the history of user, determine that a user most likely enters The first direct broadcasting room, specifically, determine the first direct broadcasting room mode can be achieved through the following methods:
The first: obtaining the corresponding live streaming time of each direct broadcasting room at least one described direct broadcasting room;From described at least one Determine live streaming time interval current time immediate direct broadcasting room as the first direct broadcasting room in a direct broadcasting room.
Specifically, in the present embodiment, after client gets multiple direct broadcasting rooms of user's concern, due to each live streaming Between usually there is fixed play time, so, can be from user when determining the first direct broadcasting room that user most likely enters Concern multiple direct broadcasting rooms in determine play time away from current time closest to direct broadcasting room be the first direct broadcasting room.Further, such as The play time for the first direct broadcasting room that fruit is determined is greater than (such as 10 points of prefixed time interval away from the time interval at current time Clock, 20 minutes etc.), the strategy for connecting barrage server in advance can be abandoned at this time, only when the broadcasting for the first direct broadcasting room determined The time interval at time interval current time is less than or equal to prefixed time interval, can just execute subsequent step.
Second: obtaining the history viewing note that the user in preset time range watches at least one direct broadcasting room Record;It is watched and being recorded based on the history, the most direct broadcasting room conduct of watched time is determined from least one described direct broadcasting room First direct broadcasting room.
Specifically, in the present embodiment, after client gets multiple direct broadcasting rooms of user's concern, can check pre- If the history that user watches multiple direct broadcasting rooms of concern in time range watches record, such as: immediate away from current time The record of multiple direct broadcasting rooms of viewing concern in one week can determine viewing time from multiple direct broadcasting rooms that user pays close attention in turn The most direct broadcasting room of number is as the first direct broadcasting room.Further, if it is determined that go out the first direct broadcasting room play time away from it is current when The time interval at quarter is greater than prefixed time interval (such as 10 minutes, 20 minutes etc.), at this point it is possible to pick out watched time by more At least sequence heel row second direct broadcasting room as the first direct broadcasting room, if the play time for the first direct broadcasting room determined at this time Time interval away from current time is less than or equal to prefixed time interval, and the first direct broadcasting room for determining that this time is determined is errorless, holds Row subsequent step.
Further, after determining the first direct broadcasting room, gateway clothes can be first connected in the way of in previous embodiment Business device, then barrage server is connected to by gateway server.The first candidate barrage server list is issued in gateway server When, need the barrage server in the first candidate barrage server list corresponding with the first direct broadcasting room, specifically, each direct broadcasting room There is the barrage server that can be connected to, client, can be by the first direct broadcasting room when sending connection request to gateway server Identification information is sent to gateway server, and gateway server can quickly be determined therewith according to the identification information of the first direct broadcasting room Corresponding first candidate barrage server list.Similarly, when the first candidate barrage server list is all connected with unsuccessfully, gateway clothes Business device can also the identification information based on the first direct broadcasting room quickly determine the corresponding second candidate barrage server list.Into And barrage server is connected using any way in previous embodiment.
Further, in the present embodiment, history linkage record is also based on to be attached, such as: it can determine The barrage server that first direct broadcasting room corresponding the last time is successfully connected is attached, or the first live streaming out of nearest one week Between determine that being successfully connected the most barrage server of number is attached in corresponding barrage server linkage record, specific In implementation process, the strategy of connection can be formulated according to actual needs, here, the application is with no restrictions.Since client is straight It broadcasts platform and has been pre-attached to corresponding barrage server before into the first direct broadcasting room, when actually entering the first direct broadcasting room, Barrage information can be shown in time and sends barrage information.
In the present embodiment, the method for barrage server maintenance is additionally provided, above-mentioned barrage server system, packet are applied to It includes:
It obtains each client in multiple client and connects the barrage server connection letter fed back when barrage server every time Breath;
Each barrage server is in preset time range in the multiple barrage server of interval stats at preset timed intervals Link information;
Link information based on each barrage server in preset time range, from the multiple barrage server In determine invalid barrage server;
The invalid barrage server is repaired.
Specifically, in the present embodiment, client will do it barrage server company in connection barrage server every time Record is connect, such as: if client is successfully connected barrage server, it will record the record that this time is successfully connected, including client ID, be successfully connected mark (for showing the secondary successful connection, can indicate with " 1 "), be successfully connected consumed duration, company The information such as barrage server ID, IP address and port numbers at moment, successful connection are connect, if default application program is live streaming application Program also will record the ID of direct broadcasting room locating at this time.If client connects barrage server failure, the secondary failure will record The record of connection, ID, failure connection identifier (for showing the secondary connection failure, can be indicated with " 0 ") including client, company The information such as barrage server ID, IP address and port numbers at moment, connection failure are connect, if default application program is live streaming application Program also will record the ID of direct broadcasting room locating at this time.
In turn, each client of the whole network carries out barrage server linkage record in connection barrage server every time, and Record is stored in local and is uploaded to barrage server system, can be all barrage clothes in barrage server system under the overall leadership The information collecting device of business device, client can pass through HTTP request and carry barrage server link information.In turn, when information is collected After equipment receives the link information that each client reports, each connection is sorted out to corresponding barrage server, such as: visitor Family end 1 is successfully connected barrage at the moment 2 in be successfully connected record 1 and the client 2 that the moment 1 is successfully connected barrage server 1 Server 1 is successfully connected record 2, then will be successfully connected record 1 and sort out with record 2 is successfully connected to the company of barrage server 1 Connect record.In this way, barrage server system can form the linkage record of each barrage server.
In turn, the method in the present embodiment can be spaced (1 hour, 3 hours, 5 hours etc.) statistics pre- at preset timed intervals If the link information of each barrage server in time range, including each barrage server in the preset time range Successful connection number and connection failure number, such as: it is each in away from current time immediate 5 hours every 5 hours statistics The corresponding successful connection number of barrage server and connection failure number.
It in turn, can be based on the link information of each barrage server in preset time range, from the multiple Invalid barrage server is determined in barrage server, specifically, can be achieved by the steps of:
Successful connection number and connection failure number based on each barrage server in the preset time range, really Fixed each barrage server connects into power;Determine that connecting into power to be less than the default barrage server for connecting into power is nothing Imitate barrage server.
Specifically, in the present embodiment, it is secondary in each barrage server of acquisition being successfully connected in preset time range Number with unsuccessfully connect number after, that is, can determine each barrage server connects into power, specifically, connecting into power is successfully Connection number and the quotient that always connect number, always connection number for be successfully connected number with unsuccessfully connect the sum of number.Such as: barrage The number that is successfully connected of server 1 in preset time range is N1, and unsuccessfully connecting number is N2, the connection of barrage server 1 Success rate is N1/ (N1+N2).It is, of course, also possible to power be connected into using other modes to define, here, the application does not limit System.
In turn, after determining that each barrage server is corresponding and connecting into power, that is, it can determine that successful connection rate is less than The default barrage server for connecting into power is invalid barrage server.Specifically, in the present embodiment, prefixed time interval, Preset time unit and it is default connect into power and can be set according to actual needs, here, the application is with no restrictions.
Further, in originally implementing, invalid barrage server can also be determined by other means, such as: the company of determination The barrage server that the number of continuous failure connection is greater than preset times is invalid barrage server.Determine invalid barrage server Mode can be set according to actual needs, and the application is with no restrictions.
In turn, after determining invalid barrage server, barrage server system can also be taken the invalid barrage determined The mark of business device is sent to each client, so that client shields invalid barrage server when connecting barrage server, Effective barrage server is only connected, the speed of connection is improved.
Further, client is in the relevant information that locally also will record each barrage server connection, if being directed to first Barrage server connects into power and is less than default success rate, or continuous unsuccessfully connection number is greater than preset times, and client also can Confirm that the first barrage server is invalid barrage server, then, client can directly be reported to barrage server system First barrage server be invalid barrage server information, barrage server system upon receiving this information, by the first bullet Curtain server is determined as invalid barrage server.Client when being attached, can also shield the first barrage server.
In turn, after determining invalid barrage server through the above way, barrage server system can also repair invalid bullet Curtain server, specifically, repairing corresponding domain name addresses, IP address and port etc..After the completion of reparation, invalid barrage can be taken The related barrage link information of business device is initialized, also, can be issued a notice to client, so that after client will repair Invalid barrage server relative recording initialization, in subsequent connection, i.e., without shield repair after barrage server.
Further, due to carry out barrage server connection when, such as previous embodiment it is found that gateway server needs connecing Candidate barrage server list, including the first candidate barrage server list and second are sent after receiving the connection request of client Candidate barrage server list, when determining the barrage server in candidate barrage server list, due to being directed to each barrage It further include connection duration when server is successfully connected barrage server every time, in corresponding barrage server link information, in order to Client is enabled quickly to connect barrage server, so, the method in the present embodiment can also in the following way really Barrage server in fixed candidate's barrage device server list:
Connection duration when based on each connection of each barrage server in the preset time range, determines successfully Connect the average connection duration of the barrage server;When receiving the connection request of client connection barrage server, Average connection duration based on each barrage server determines candidate's barrage device server list;The candidate barrage device is taken Business device list is sent to the client, so that the client, which is based on the candidate barrage device server, connects barrage service Device.
Wherein, the average connection duration based on each barrage server determines candidate's barrage device server list, packet It includes: determining that averagely connection duration is less than the barrage server of preset duration for the server in candidate barrage device server list.
Specifically, in the present embodiment, when client is successfully connected barrage server every time, having corresponding connection letter Breath, including being successfully connected to connection duration used in barrage server, so, barrage server system can obtain when default Between in range each barrage server be successfully connected and corresponding averagely connect duration.Such as: in 1 hour, 1 success of client Connect the when a length of T1 of barrage server 1, client 2 is successfully connected the when a length of T2 of barrage server 1, and client 3 successfully connects The when a length of T3 for connecing barrage server 1, then in 1 hour, for barrage server 1 average connection when a length of (T1+T2+ T3)/3.In turn, when determining candidate barrage device server list, the barrage that averagely connection duration is less than preset duration may be selected Server is the server in candidate barrage device server list.Certainly, it when determining candidate barrage device server list, also needs Comprehensively consider the loading condition and port occupancy situation or other information of barrage server, in the specific implementation process, Determine that the mode of candidate's barrage device server list can be set according to actual needs, the application is with no restrictions herein.
In turn, barrage server system sends it to client for after the candidate barrage device server list determined, Client carries out the connection of barrage server based on the candidate barrage device server list received, and specific implementation is aforementioned It is elaborated in embodiment, the application is with no restrictions herein.
Referring to FIG. 2, second embodiment of the invention provides a kind of barrage server connection method, it is applied to client, packet It includes:
S201: in the case where detecting that default application program opens barrage function, to barrage information server system The first connection request, the first information to be verified and the first identity information that gateway server is sent, so that the gateway service Device verifies first information to be verified, wherein first information to be verified is based on first identity information and first in advance If key generates, first preset-key is the key that the gateway server is sent to the client in advance;
S202: if first information to be verified, by the verifying of the gateway server, the client connects institute Gateway server is stated, based on the barrage server info to be connected that the received gateway server is sent, determination is connected to Barrage server;
The second connection request, the second information to be verified and the second identity information that S203: Xiang Suoshu barrage server is sent, So that the second information to be verified described in the barrage server authentication, wherein first information to be verified is based on described the One identity information and the first preset-key generate, and first preset-key is that the gateway server is sent to the visitor in advance The key at family end.
Specifically, the present embodiment provides the barrage connection methods for being applied to client to have explained in detail in the first embodiment It states, here, the application repeats no more.
Fig. 3 is referred to, the third embodiment of the present invention provides a kind of barrage server attachment device, is applied to barrage and believes Server system is ceased, the barrage information server system includes multiple gateway servers and multiple barrage servers, the dress It sets and includes:
First acquisition unit 301, for the case where gateway server receives the first connection request that client is sent Under, obtain the first information to be verified and the first identity information that the client is sent;
First control unit 302 is preset for controlling the first identity information described in the gateway server base with first close Key generates the first verification information;
First authentication unit 303 controls if matched for the described first information to be verified with first verification information The gateway server responds first connection request, establishes the connection with the client, Xiang Suoshu client send to The barrage server info of connection;
Second acquisition unit 304 is asked for receiving the second connection that the client is sent in barrage information server In the case where asking, the second information to be verified and the second identity information that the client is sent are obtained, wherein the barrage service Device is the barrage server that the client determines connection based on the barrage server info to be connected, second connection Request is to connect the connection request sent after the upper gateway server to the barrage server;
Second control unit 305, it is default based on second identity information and second for controlling the barrage server Key generates the second verification information;
Second authentication unit 306 controls if matched for the described second information to be verified with second verification information The barrage server responds second connection request.
Further, first identity information includes the version number information of the client, client type information, client The device identification at end and the first time for sending first connection request stab any one or more combination in information.
Further, second identity information includes the version number information of the client, client type information, client Any one or more combination in the device identification at end and the second timestamp information of transmission second connection request.
Further, the first control unit is used for:
It controls the gateway server and is based on first identity information and first preset-key, it is default using first Encryption Algorithm generates the first encryption data;
It controls the gateway server and is based on first encryption data, using the second predetermined encryption algorithm, generate first Verification information.
Further, second control unit is used for:
It controls the barrage server and is based on second identity information and second preset-key, it is default using third Encryption Algorithm generates the second encryption data;
It controls the barrage server and is based on second encryption data, using the 4th predetermined encryption algorithm, generate second Verification information.
Fig. 4 is referred to, the fourth embodiment of the present invention provides a kind of client, comprising:
First transmission unit 401, for being believed to barrage in the case where detecting that default application program opens barrage function The first connection request, the first information to be verified and the first identity information that the gateway server of server system is sent are ceased, so that It obtains the gateway server and verifies first information to be verified, wherein first information to be verified is based on first body Part information and the first preset-key generate, and first preset-key is that the gateway server is sent to the client in advance Key;
Determination unit 402, if passing through the verifying of the gateway server, the visitor for the described first information to be verified Family end connects the gateway server, based on the barrage server info to be connected that the received gateway server is sent, Determine the barrage server being connected to;
Second transmission unit 403, the second connection request, the second information to be verified for being sent to the barrage server With the second identity information so that the second information to be verified described in the barrage server authentication, wherein described first is to be verified Information is based on first identity information and the first preset-key generates, and first preset-key is that the gateway server is pre- First it is sent to the key of the client.
The fifth embodiment of the present invention provides a kind of barrage server attachment device, comprising: processor, memory and Store the computer program that can be run in the memory and on the processor, such as barrage service in first embodiment The corresponding program of device connection method.The processor realizes that barrage takes in above-mentioned first embodiment when executing the computer program Each step being engaged in device connection method.Alternatively, the processor realizes above-mentioned 3rd embodiment when executing the computer program Barrage server attachment device in each module/unit function.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute State implementation procedure of the computer program in the computer installation.
The server may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that described Signal is only the example of computer installation, does not constitute the restriction to server, may include more more or fewer than illustrating Component perhaps combines certain components or different components, such as the server can also include input-output equipment, net Network access device, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor is the control centre of the computer installation, utilizes various interfaces and the entire computer installation of connection Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization The various functions of computer installation.The memory can mainly include storing program area and storage data area, wherein storage program It area can application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function Deng;Storage data area, which can be stored, uses created data (such as audio data, video data etc.) etc. according to mobile phone.This Outside, memory may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, insert Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Sixth embodiment of the invention provides a kind of computer readable storage medium, is stored thereon with computer program, this The functional unit that client integrates in the barrage server attachment device or fourth embodiment in invention 3rd embodiment is such as Fruit is realized in the form of SFU software functional unit and when sold or used as an independent product, and can store can in a computer It reads in storage medium.Based on this understanding, the present invention realizes that the barrage in above-mentioned first embodiment and second embodiment takes The all or part of the process being engaged in device connection method, can also instruct relevant hardware to complete, institute by computer program The computer program stated can be stored in a computer readable storage medium, which, can when being executed by processor The step of realizing above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, the computer Program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer can Reading medium may include: any entity or device, recording medium, USB flash disk, mobile hard that can carry the computer program code Disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter Number and telecommunication signal.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of barrage server connection method is applied to barrage information server system, which is characterized in that the barrage information Server system includes multiple gateway servers and multiple barrage servers, which comprises
In the case where gateway server receives the first connection request of client transmission, obtain that the client sends the One information to be verified and the first identity information;
The first identity information described in the gateway server base and the first preset-key are controlled, the first verification information is generated;
If first information to be verified is matched with first verification information, gateway server response described the is controlled One connection request, establishes the connection with the client, and Xiang Suoshu client sends barrage server info to be connected;
In the case where barrage information server receives the second connection request that the client is sent, the client is obtained The second information to be verified sent and the second identity information, wherein the barrage server be the client be based on it is described to The barrage server info of connection determines that the barrage server of connection, second connection request are to connect the upper gateway service The connection request sent after device to the barrage server;
It controls the barrage server and is based on second identity information and the second preset-key, generate the second verification information;
If second information to be verified is matched with second verification information, barrage server response described the is controlled Two connection requests.
2. the method as described in claim 1, which is characterized in that first identity information includes the version number of the client Information, client type information, client device identification and send in the first time stamp information of first connection request Any one or more combination.
3. the method as described in claim 1, which is characterized in that second identity information includes the version number of the client Information, client type information, client device identification and send in the second timestamp information of second connection request Any one or more combination.
4. the method as described in claim 1, which is characterized in that the first identity letter described in the control gateway server base Breath and the first preset-key, generate the first verification information, comprising:
It controls the gateway server and is based on first identity information and first preset-key, using the first predetermined encryption Algorithm generates the first encryption data;
It controls the gateway server and is based on first encryption data, using the second predetermined encryption algorithm, generate the first verifying Information.
5. the method as described in claim 1, which is characterized in that control the second identity information described in the barrage server base with Second preset-key generates the second verification information, comprising:
It controls the barrage server and is based on second identity information and second preset-key, using third predetermined encryption Algorithm generates the second encryption data;
It controls the barrage server and is based on second encryption data, using the 4th predetermined encryption algorithm, generate the second verifying Information.
6. a kind of barrage server connection method is applied to client characterized by comprising
In the case where detecting that default application program opens barrage function, to the gateway server of barrage information server system The first connection request, the first information to be verified and the first identity information sent, so that described in gateway server verifying First information to be verified, wherein first information to be verified is based on first identity information and the first preset-key generates, First preset-key is the key that the gateway server is sent to the client in advance;
If first information to be verified connects the gateway service by the verifying of the gateway server, the client Device determines the barrage service being connected to based on the barrage server info to be connected that the received gateway server is sent Device;
The second connection request, the second information to be verified and the second identity information sent to the barrage server, so that institute State the second information to be verified described in barrage server authentication, wherein first information to be verified is believed based on first identity Breath is generated with the first preset-key, and first preset-key is that the gateway server is sent to the close of the client in advance Key.
7. a kind of barrage server attachment device is applied to barrage information server system, which is characterized in that the barrage information Server system includes multiple gateway servers and multiple barrage servers, and described device includes:
First acquisition unit obtains in the case where for receiving the first connection request of client transmission in gateway server The first information to be verified and the first identity information that the client is sent;
First control unit is generated for controlling the first identity information described in the gateway server base and the first preset-key First verification information;
First authentication unit controls the net if matched for the described first information to be verified with first verification information It closes server and responds first connection request, establish the connection with the client, Xiang Suoshu client sends to be connected Barrage server info;
Second acquisition unit, for the case where barrage information server receives the second connection request that the client is sent Under, obtain the second information to be verified and the second identity information that the client is sent, wherein the barrage server is described Client determines that the barrage server of connection, second connection request are to connect based on the barrage server info to be connected Connect the connection request sent after the gateway server to the barrage server;
Second control unit is based on second identity information and the second preset-key for controlling the barrage server, raw At the second verification information;
Second authentication unit controls the bullet if matched for the described second information to be verified with second verification information Curtain server responds second connection request.
8. a kind of client characterized by comprising
First transmission unit, in the case where detecting that default application program opens barrage function, to barrage information service The first connection request, the first information to be verified and the first identity information that the gateway server of device system is sent, so that described Gateway server verifies first information to be verified, wherein first information to be verified is based on first identity information It is generated with the first preset-key, first preset-key is that the gateway server is sent to the close of the client in advance Key;
Determination unit, if for the described first information to be verified by the verifying of the gateway server, the client connects The gateway server is connect, based on the barrage server info to be connected that the received gateway server is sent, the company of determination The barrage server being connected to;
Second transmission unit, the second connection request, the second information to be verified and second for being sent to the barrage server Identity information, so that the second information to be verified described in the barrage server authentication, wherein the first information base to be verified It is generated in first identity information and the first preset-key, first preset-key is that the gateway server is sent in advance To the key of the client.
9. a kind of barrage server attachment device, which is characterized in that including processor, the processor is for executing in memory It is realized when the computer program of storage as described in Claims 1 to 5 the step of the connection method of barrage server.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed It realizes when device executes such as the step of barrage server connection method of any of claims 1-6.
CN201810295001.1A 2018-03-30 2018-03-30 Bullet screen server connection method and device and client Active CN110324296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810295001.1A CN110324296B (en) 2018-03-30 2018-03-30 Bullet screen server connection method and device and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810295001.1A CN110324296B (en) 2018-03-30 2018-03-30 Bullet screen server connection method and device and client

Publications (2)

Publication Number Publication Date
CN110324296A true CN110324296A (en) 2019-10-11
CN110324296B CN110324296B (en) 2021-11-26

Family

ID=68112412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810295001.1A Active CN110324296B (en) 2018-03-30 2018-03-30 Bullet screen server connection method and device and client

Country Status (1)

Country Link
CN (1) CN110324296B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740985A (en) * 2020-06-19 2020-10-02 国动物联网有限公司 TCP long connection security verification encryption method
CN112651045A (en) * 2020-12-30 2021-04-13 北京奇艺世纪科技有限公司 Bullet screen data processing method and device and storage medium
CN114070878A (en) * 2022-01-13 2022-02-18 阿里云计算有限公司 Network connection processing method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872915A (en) * 1996-12-23 1999-02-16 International Business Machines Corporation Computer apparatus and method for providing security checking for software applications accessed via the World-Wide Web
US20020186683A1 (en) * 2001-04-02 2002-12-12 Alan Buck Firewall gateway for voice over internet telephony communications
CN1698309A (en) * 2003-04-21 2005-11-16 索尼株式会社 Device authentication system
CN101351027A (en) * 2007-07-19 2009-01-21 中国移动通信集团公司 Method and system for processing service authentication
CN101867929A (en) * 2010-05-25 2010-10-20 北京星网锐捷网络技术有限公司 Authentication method, system, authentication server and terminal equipment
CN101931533A (en) * 2010-08-23 2010-12-29 中兴通讯股份有限公司 Authentication method, device and system
CN101997685A (en) * 2009-08-27 2011-03-30 阿里巴巴集团控股有限公司 Single sign-on method, single sign-on system and associated equipment
CN104092647A (en) * 2013-11-25 2014-10-08 腾讯科技(深圳)有限公司 Network access method, system and client
CN104639331A (en) * 2015-02-04 2015-05-20 北京信安世纪科技有限公司 Method for authenticating network identity
CN105391696A (en) * 2015-10-20 2016-03-09 山东泰信电子股份有限公司 Terminal registration method, terminal verification method, terminal registration system and terminal verification system
CN107172056A (en) * 2017-05-31 2017-09-15 福建中金在线信息科技有限公司 A kind of channel safety determines method, device, system, client and server

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872915A (en) * 1996-12-23 1999-02-16 International Business Machines Corporation Computer apparatus and method for providing security checking for software applications accessed via the World-Wide Web
US20020186683A1 (en) * 2001-04-02 2002-12-12 Alan Buck Firewall gateway for voice over internet telephony communications
CN1698309A (en) * 2003-04-21 2005-11-16 索尼株式会社 Device authentication system
CN101351027A (en) * 2007-07-19 2009-01-21 中国移动通信集团公司 Method and system for processing service authentication
CN101997685A (en) * 2009-08-27 2011-03-30 阿里巴巴集团控股有限公司 Single sign-on method, single sign-on system and associated equipment
CN101867929A (en) * 2010-05-25 2010-10-20 北京星网锐捷网络技术有限公司 Authentication method, system, authentication server and terminal equipment
CN101931533A (en) * 2010-08-23 2010-12-29 中兴通讯股份有限公司 Authentication method, device and system
CN104092647A (en) * 2013-11-25 2014-10-08 腾讯科技(深圳)有限公司 Network access method, system and client
CN104639331A (en) * 2015-02-04 2015-05-20 北京信安世纪科技有限公司 Method for authenticating network identity
CN105391696A (en) * 2015-10-20 2016-03-09 山东泰信电子股份有限公司 Terminal registration method, terminal verification method, terminal registration system and terminal verification system
CN107172056A (en) * 2017-05-31 2017-09-15 福建中金在线信息科技有限公司 A kind of channel safety determines method, device, system, client and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740985A (en) * 2020-06-19 2020-10-02 国动物联网有限公司 TCP long connection security verification encryption method
CN112651045A (en) * 2020-12-30 2021-04-13 北京奇艺世纪科技有限公司 Bullet screen data processing method and device and storage medium
CN114070878A (en) * 2022-01-13 2022-02-18 阿里云计算有限公司 Network connection processing method and device
CN114070878B (en) * 2022-01-13 2022-06-24 阿里云计算有限公司 Network connection processing method and device

Also Published As

Publication number Publication date
CN110324296B (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN108366277A (en) A kind of barrage server connection method, client and readable storage medium storing program for executing
CN110324296A (en) A kind of barrage server connection method, device, client
CN104618197A (en) Methods and apparatus for monitoring configurable performance levels in a wireless device
WO2006065989A3 (en) Method and system for detecting and stopping illegitimate communication attempts on the internet
CN108768672B (en) Data processing method, device and storage medium
CN110248215A (en) Video playing chain method for authenticating, device, system, server and storage medium
CN111836269B (en) Micro base station deployment method, equipment and storage medium based on block chain
CN112737845B (en) Binding method and device of intelligent equipment, storage medium and electronic device
KR20110044833A (en) Collect Opportunity Opinion Scores on Mobile Devices
CN107682328A (en) A kind of data verification method and client
CN112887105B (en) Conference security monitoring method and device, electronic equipment and storage medium
CN112564942A (en) Distribution network control method and device of Internet of things equipment, equipment and storage medium
CN110928880A (en) Data processing method, device, terminal and medium based on block chain
CN109495378A (en) Detect method, apparatus, server and the storage medium of abnormal account number
CN111404918A (en) Cloud mobile phone distributed service emergency authentication method, device and system
CN103748925A (en) Mechanism for managing PDN connections in LTE/EPC networks
CN113794939B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN111901147A (en) Network access control method and device
CN110324677A (en) A kind of barrage server connection method, client and readable storage medium storing program for executing
CN102025714A (en) Implementation method, device and system for multimedia broadcast multicast service (MBMS)
CN110324391A (en) A kind of barrage server connection method, client and readable storage medium storing program for executing
CN110324229A (en) A kind of barrage server connection method, client and readable storage medium storing program for executing
CN110324674A (en) A kind of barrage server maintaining method, device and readable storage medium storing program for executing
CN102083001A (en) System, method and device for issuing multimedia information
CN109525862A (en) A kind of multiple terminals live streaming exchange method and system

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