CN104935571B - A kind of exchange method of video game server-side and client - Google Patents
A kind of exchange method of video game server-side and client Download PDFInfo
- Publication number
- CN104935571B CN104935571B CN201510194377.XA CN201510194377A CN104935571B CN 104935571 B CN104935571 B CN 104935571B CN 201510194377 A CN201510194377 A CN 201510194377A CN 104935571 B CN104935571 B CN 104935571B
- Authority
- CN
- China
- Prior art keywords
- client
- server
- address
- broadcast message
- server device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000005540 biological transmission Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 101000804902 Drosophila melanogaster Xaa-Pro aminopeptidase ApepP Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/611—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4781—Games
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the exchange methods of a kind of server-side of video game server device and the client of client device, include the following steps:S1, server device and WIFI router establish connection;S2, the server-side send server-side broadcast message to setting virtual address, and the server-side broadcast message includes the IP address of the server device;S3, the server-side monitors the setting virtual address, client do not receive server-side broadcast message and after sending client broadcast message to the setting virtual address, the server-side acquisition client broadcast message, and connection is established by IP address with the client;Wherein, the client broadcast message includes the IP address of the client device;S4, the server-side send the client resource file to the client after the request for receiving the downloading client resource file that the client is sent.Good user experience may be implemented in the present invention.
Description
【Technical field】
The present invention relates to field of play, and in particular to a kind of exchange method of video game server-side and client.
【Background technique】
Multi-screen interactive game is referred to, network communication protocol is based on, by network connection, in different multimedia terminal
On, such as common to be based on IOS (Apple Macintosh operating system), Android (Android operation system), Symbian (Nokia Operating System)
Different intelligent terminal device such as mobile phone on equal different operating systems, between PAD (plate), TV (TV) etc., can carry out game
The transmission of content parses, and shows, the sequence of operations such as control can carry out game interaction in different platform equipment, be promoted and be played
The recreation experience of family.Briefly, it is exactly the screen of several equipment, interaction can be interconnected.For example it can use on mobile phone
Touch screen and inductor manipulate the game on plate or TV;According to type of play difference, can more people connect carry out game simultaneously.
However, there are this deficiencies for the user experience of existing multi-screen interactive game.
【Summary of the invention】
For overcome the deficiencies in the prior art, the present invention provides a kind of video game server device and client devices
Exchange method.
A kind of exchange method of video game server device and client device, includes the following steps:
S1, server device and WIFI router establish connection;
The server-side of S2, the server device send server-side broadcast message, the server-side to setting virtual address
Broadcast message includes the IP address of the server device;
S3, the server-side monitor the setting virtual address, do not receive the clothes in the client of client device
End broadcast message of being engaged in and after sending client broadcast message to the setting virtual address, the server-side acquisition client
Broadcast message, and connection is established by IP address with the client device;Wherein, the client broadcast message includes described
The IP address of client;
S4, the server-side is after the request for receiving the downloading client resource file that the client is sent, to institute
It states client and sends the client resource file.
In one embodiment,
The server-side broadcast message also includes client release information and/or server device title.
In one embodiment,
It further include following steps before step S1:
The server device detects whether to close with the WIFI router successful connection if cannot connect
The server-side, and show the reason of cannot being successfully connected.
In one embodiment,
It further include following steps:
S5, the server-side periodically detect whether the client having connected goes offline, and count to the client to go offline.
In one embodiment,
It further include following steps:
S6, server device timing detect whether can with the WIFI router successful connection, if cannot succeed
Number reach setting number, then close the server-side, and send the clothes to the client having connect with the server-side
The message that business end is closed.
In one embodiment,
Before step S2, judge whether the server-side supports udp protocol, if supporting, supports udp protocol to described
Client sends data.
The present invention also provides the exchange methods of a kind of client device and video game server device, including walk as follows
Suddenly:
S1, the client device and WIFI router establish connection, and the client monitors setting virtual address, to obtain
The server-side broadcast message that server-side is sent is obtained, the server-side broadcast message includes the IP address kimonos of the server device
Business end equipment title;
S2 is sent if the client can not receive the server-side broadcast message to the setting virtual address
Client broadcast message, the client broadcast message include the IP address of the client device;
S3 is shown described more if client receives the address of multiple server devices in the client device
A server device, and after receiving the order of the one of server device of selection of user's input, with the service selected
End equipment establishes connection by IP address;If client receives only the address of a server device, the client with
The server-side establishes connection by IP address.
In one embodiment,
The server-side broadcast message includes also client release information, and the exchange method further includes following steps:
S4, the client judge the client release one whether local client release sends with the server-side
It causes, if inconsistent, requests to send relative client version to the server-side.
In one embodiment,
It further include following steps:
The message that the client is sent according to the server-side, judges whether the server-side supports udp protocol, if institute
It states server-side and supports udp protocol, then the client supports udp protocol and the service end communication.
The beneficial effects of the invention are as follows:The present invention may be implemented multiple intelligent mobile terminals and pass through realizing television multi-screen interactive
Game, and client device and server device can rapid communication, user can obtain good user in game process
Experience.
【Detailed description of the invention】
Fig. 1 is the work flow diagram of the video game server device of an embodiment of the present invention;
Fig. 2 is the work flow diagram of the client device of an embodiment of the present invention.
【Specific embodiment】
The following further describes in detail the preferred embodiments of the invention.
As illustrated in fig. 1 and 2, a kind of exchange method of video game server device and client device, characterized in that packet
Include following steps:
S1, server device starting, opens the server-side of server device, server-side can be an asynchronous non-obstruction
Server-side can be fast and accurately attached in this way, can also allow a large amount of client devices (remote control equipment) and server-side
(end Server) is attached, and achievees the purpose that more people with screen interaction.Server device can be smart television (display equipment)
Or smart television box, in other words server-side may operate on smart television or smart television box.Server device
Application program game one has used the server-side of server device, and after game one starts, server device is initialized.
S2, server device detect whether that clothes can be closed if cannot succeed with WIFI router (gateway) successful connection
Be engaged in end, return server-side starting failure, and feed back, show cannot be successful reason, with improve CP (content provider) apply journey
The robustness of sequence.
S3, judges whether the server-side supports udp protocol, if supporting, udp protocol is supported to send to the client
Data, reach faster transmission speed, and Transmission Control Protocol is only used if not supporting and is communicated.No matter using Transmission Control Protocol or
Udp protocol sends data, and data content can provide more free sending method by CP custom protocol.
S4, the server-side send server-side broadcast message to setting virtual address, and the server-side broadcast message includes
The IP address of the server device can also include server device title, client release information (such as client resource version
This number) etc..Server device is stored with the client of different editions, and is managed to these clients.
S5, the server-side monitor the setting virtual address, do not receive the server-side broadcast in some client
Message and after sending client broadcast message to the setting virtual address, the server-side obtains the client broadcast and disappears
Breath, individually individually sends Notify Address message to the client, so that the client and server-side are established by IP address and connected
It connects;In this way, the server-side can establish connection with multiple client;Wherein, the client broadcast message includes the visitor
The IP address of family end equipment.
S6, the server-side is after the request for receiving the downloading client resource file that the client is sent, to institute
It states client and sends the client resource file.Server-side can be sent client resource in a manner of Http, in this way may be used
To reduce the influence of network environment problem bring, the client newly connected can download corresponding resource file, have no effect on
Server-side is connected, the user in game application is being experienced.
S7, whether the client that the server-side timer access, detection have connected goes offline, and carries out to the client to go offline
Statistics, can rapidly and accurately know active client connection in this way, to facilitate CP to be managed the client to go offline,
Improve the application program experience of server device.
By above-mentioned steps, server-side start completion.
Sound and image are not transmitted between client and server-side, only transmit manipulation instruction, these manipulation instructions are usually only
There are several bytes, delay can control within 5 milliseconds.Various types of game such as leisure, chess and card, ARPG, body-sensing are all in this way
Perfect user experience can be reached on TV.
S8, the server device timing detect whether normally connect with WIFI router, judge whether network is unimpeded,
If reaching setting number with the number of WIFI router connection failure, close the server-side, and to the server-side
The all clients of connection send the message that the server-side is closed.Although server device connect unsmooth with WIFI router
Logical, but the notification message that server device is sent to client device, client device, which is also possible that, to be received, if objective
Family end equipment receives, then the message that user service end can be notified to close in time improves user experience.If can be with WIFI router
Connection, then update related data.
As shown in Fig. 2, a kind of exchange method of the client of embodiment and video game server-side, includes the following steps:
S1 is opened and is shown as on the interface client end AP P, APP on the client device (such as mobile terminal) of remote control equipment
It is shown with account log-in interface and register account number interface, user can pass through account and code entry background server, background service
Device is located at outer net, and needing client device to be connected to outer net by WIFI router can access.If, can be backward without account
The unique account of platform server application, and the corresponding password of setting.
S2 after client device starting, establishes connection with WIFI router, client monitors setting virtual address, to obtain
The server-side broadcast message that server-side is sent is obtained, IP address of the server-side broadcast message comprising the server device takes
End equipment title of being engaged in and client release information.Client can be the client of asynchronous non-obstruction, can receive service rapidly
Hold the content issued.Certainly, client also provides the function of search service end equipment, and search service end is set when the user clicks
After standby function, the client can also monitor setting virtual address.
S3 is sent if the client can not receive the server-side broadcast message to the setting virtual address
Client broadcast message, the client broadcast message includes the IP address of the client device, so that server-side receives
After the client broadcast message, server-side individually sends Notify Address message to the client.
S4, when server device has it is multiple when, the client is according to multiple server device addresses of acquisition, selection
One of server device establishes connection by IP address;When server device only has one, client then directly with this
The server-side of server device establishes connection by IP address.In some cases, multiple server devices and WIFI route
Device connects for example, there is multiple boxes, and server-side is run in box, and each box connects in a display equipment, works as client
When monitoring the server-side broadcast message of setting virtual address, it can be set with the IP address of multiple groups server device and corresponding server-side
Standby title, and show on the client, user can choose one of server device and be attached, and client is later
Connection is established with the server-side of corresponding server device.If server device only has one, client directly with this
Server device connection.Client device has respective title and a unique ID, client device by ID and title with
After server-side establishes connection, server-side distinguishes different client devices by ID and title.
S5, the client according to server-side broadcast the message in client release information, judge local client edition
Whether this is consistent with the client release that the server-side is sent, if inconsistent, sends corresponding visitor to server-side request
Family end version can install the client, can start client after being installed immediately, automatically into client after the completion of downloading
End and server-side interactive process.
S6, the message that the client is sent according to the server-side judge whether the server-side supports udp protocol,
If the server-side supports udp protocol, the client supports udp protocol and the service end communication.
S7, client open heartbeat detection function, judge whether to connect with server-side terminal, can be according to CP after terminal connection
It needs to realize Auto-reconnect or manual reconnection, closes client if reconnection failure, reconnection successfully continues to run.It in this way can be with
Connection status is timely feedbacked, user is given and suitably prompts, improves user experience.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist
Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the present invention by
The scope of patent protection that the claims submitted determine.
Claims (5)
1. a kind of exchange method of video game server device and client device, characterized in that include the following steps:
S1, server device and WIFI router establish connection;
The server-side of S2, the server device send server-side broadcast message, the server-side broadcast to setting virtual address
Message includes the IP address of the server device;
S3, the server-side monitor the setting virtual address, do not receive the server-side in the client of client device
Broadcast message and after sending client broadcast message to the setting virtual address, the server-side acquisition client broadcast
Message individually sends Notify Address message to the client, establishes connection by IP address with the client device;Wherein,
The client broadcast message includes the IP address of the client;
S4, the server-side is after the request for receiving the downloading client resource file that the client is sent, to the visitor
Family end sends the client resource file;
S5, the server-side periodically detect whether the client having connected goes offline, and count to the client to go offline;
S6, the server device timing detects whether can be with the WIFI router successful connection, if cannot be successfully secondary
Number reaches setting number, then closes the server-side, and send the server-side to the client having connect with the server-side
The message of closing;
It wherein, further include following steps before step S1:
The server device detect whether can with the WIFI router successful connection, if cannot connect, close described in
Server-side, and show the reason of cannot being successfully connected;
Before step S2, judge whether the server-side supports udp protocol, if supporting, supports udp protocol to the client
End sends data.
2. the exchange method of video game server device and client device as described in claim 1, characterized in that described
Server-side broadcast message also includes client release information and/or server device title.
3. the exchange method of a kind of client device and video game server device, the video game server device according to
Method of any of claims 1 or 2 is interacted with the client device, characterized in that is included the following steps:
S1, the client device and WIFI router establish connection, and the client monitors setting virtual address, to be taken
The server-side that end is sent of being engaged in broadcasts the message, and the server-side broadcast message includes the IP address and server-side of the server device
Device name;
S2 sends client to the setting virtual address if the client can not receive the server-side broadcast message
End broadcast message, the client broadcast message include the IP address of the client device, so that the server-side obtains institute
After stating client broadcast message, Notify Address message individually is sent to the client, passes through IP address with the client device
Establish connection;
S3 shows the multiple clothes if client receives the address of multiple server devices in the client device
Business end equipment, and after receiving the order of the one of server device of selection of user's input, it is set with the server-side selected
It is standby that connection is established by IP address;If client receives only the address of a server device, the client with it is described
Server-side establishes connection by IP address.
4. the exchange method of client device as claimed in claim 3 and video game server device, characterized in that described
Server-side broadcast message includes also client release information, and the exchange method further includes following steps:
S4, the client judge whether local client release is consistent with the client release that the server-side is sent, if
It is inconsistent, then it requests to send relative client version to the server-side.
5. the exchange method of client device as claimed in claim 3 and video game server device, characterized in that also wrap
Include following steps:
The message that the client is sent according to the server-side, judges whether the server-side supports udp protocol, if the clothes
Udp protocol is supported at business end, then the client supports udp protocol and the service end communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510194377.XA CN104935571B (en) | 2015-04-22 | 2015-04-22 | A kind of exchange method of video game server-side and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510194377.XA CN104935571B (en) | 2015-04-22 | 2015-04-22 | A kind of exchange method of video game server-side and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104935571A CN104935571A (en) | 2015-09-23 |
CN104935571B true CN104935571B (en) | 2018-11-23 |
Family
ID=54122543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510194377.XA Expired - Fee Related CN104935571B (en) | 2015-04-22 | 2015-04-22 | A kind of exchange method of video game server-side and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104935571B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107769935A (en) * | 2016-08-23 | 2018-03-06 | 北京神州泰岳软件股份有限公司 | A kind of method for message transmission and device |
CN106603680A (en) * | 2016-12-21 | 2017-04-26 | 国网浙江杭州市富阳区供电公司 | Power consumption inspection field service system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475907A (en) * | 2013-09-23 | 2013-12-25 | 珠海迈科电子科技有限公司 | Multi-screen control method and device |
CN103491119A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(深圳)有限公司 | Airsharing system and airsharing method |
CN103517110A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Multi-screen interaction communication system and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011070511A (en) * | 2009-09-28 | 2011-04-07 | Sony Corp | Terminal device, server device, display control method, and program |
US20110145581A1 (en) * | 2009-12-14 | 2011-06-16 | Verizon Patent And Licensing, Inc. | Media playback across devices |
CN102064985B (en) * | 2010-11-24 | 2013-04-24 | 深圳市同洲电子股份有限公司 | Digital and intelligent remote control system and method for household electrical appliances on basis of interactive TV application |
CN102595226A (en) * | 2012-03-16 | 2012-07-18 | 深圳市茁壮网络股份有限公司 | Wireless control method and set-top box |
CN102883205A (en) * | 2012-08-29 | 2013-01-16 | 深圳市茁壮网络股份有限公司 | Method for controlling digital television system by using intelligent terminal and digital television system |
CN103024525A (en) * | 2012-12-27 | 2013-04-03 | 深圳市茁壮网络股份有限公司 | Set-top box and method of controlling the same by mobile terminal |
US9326047B2 (en) * | 2013-06-06 | 2016-04-26 | Activevideo Networks, Inc. | Overlay rendering of user interface onto source video |
-
2015
- 2015-04-22 CN CN201510194377.XA patent/CN104935571B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491119A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(深圳)有限公司 | Airsharing system and airsharing method |
CN103517110A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Multi-screen interaction communication system and method |
CN103475907A (en) * | 2013-09-23 | 2013-12-25 | 珠海迈科电子科技有限公司 | Multi-screen control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104935571A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102802048B (en) | A kind of Multi-screen interaction system and method | |
KR100731323B1 (en) | Provision of content to mobile user | |
EP2640099B1 (en) | Method, system and apparatus for providing stream media service | |
CN107612900A (en) | System and method for establishing connection between the device to be communicated via network | |
CN111427527B (en) | Screen projection method, device, equipment and computer readable storage medium | |
US20160295269A1 (en) | Information pushing method, device and system | |
EP3996355B1 (en) | Method for transferring media stream and user equipment | |
CN105471869A (en) | Internet television content request connection reuse method and system thereof | |
US9351328B2 (en) | Method for transferring a communication session between devices | |
EP2712126A2 (en) | Networking method, server end device, client end device and network system | |
WO2016197861A1 (en) | Remote management method, managed device, managing device and intelligent television system | |
CN112511584A (en) | Multi-screen interaction method based on cloud mobile phone system, electronic equipment and storage medium | |
CN108924603B (en) | Multi-terminal streaming media playing system and method based on WiFi (Wireless Fidelity) defined by software | |
CN104156258A (en) | Application program sharing operation method, related equipment and system | |
WO2018006877A1 (en) | Method and apparatus for controlling set top box | |
CN104935571B (en) | A kind of exchange method of video game server-side and client | |
US7821943B2 (en) | Data transmission | |
CN109511018A (en) | A method of it is broadcast live for OTT in complex network environment smooth playing | |
CN101242295A (en) | A method for managing low-end switch | |
CN106686576A (en) | Terminal user state obtaining method, apparatus and system | |
CN104797004A (en) | Method for implementation of automatic networking between master and slave devices | |
CN105573180A (en) | terminal control method and system | |
CN102685113A (en) | Self-configuration method for IMS terminal based on UPnP | |
CN106375933A (en) | Projection control method of multiple intelligent hardware devices | |
CN105617656B (en) | A method of prevent network gaming user from practising fraud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 Guangdong Province, Shenzhen Road, Nanshan District science and technology building B building 302 saibainuo Applicant after: Shenzhen Orange Interactive Limited by Share Ltd. Address before: 518000 Guangdong Province, Shenzhen Road, Nanshan District science and technology building B building 302 saibainuo Applicant before: SHENZHEN ORANGE GAME TECHNOLOGY Co.,Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181123 |