CN104572316A - Game program and running platform interaction method and system - Google Patents
Game program and running platform interaction method and system Download PDFInfo
- Publication number
- CN104572316A CN104572316A CN201410852938.6A CN201410852938A CN104572316A CN 104572316 A CN104572316 A CN 104572316A CN 201410852938 A CN201410852938 A CN 201410852938A CN 104572316 A CN104572316 A CN 104572316A
- Authority
- CN
- China
- Prior art keywords
- message
- games
- operation platform
- queue
- communication unit
- 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.)
- Pending
Links
Abstract
The invention provides a game program and running platform interaction method and system. The method includes the steps: sending a first message by a game program, storing the first message into a first message queue, acquiring the message from the first message queue by a running platform, and correspondingly processing the message according to a preset mode; or sending a second message by the running platform, storing the second message into a second message queue, acquiring the message from the second message queue by the game program , and correspondingly processing the message according to a preset mode. Decoupling processing of the game program and the running platform of the game program is realized, the method changes an original interaction mode that the business logic of the game program directly calls a processing function of the running platform, and an interaction risk of the game program and the running platform is reduced. In addition, the message is processed by the game program and the running platform in the message queues, the game program is changed, interfaces of the game program on the running platform do not need to be adjust one-by-one, workload is greatly reduced, and maintenance cost is saved.
Description
Technical field
The present invention relates to game running platform technology field, particularly relate to a kind of games and the mutual method and system of operation platform.
Background technology
At present, the operation platform of games is used widely, and provides convenience to many game players.Games, in running, also exist alternately many with its operation platform, and the service logic of games often needs at the enterprising row relax of operation platform.Traditional games and operation platform interactive mode are that the service logic of games calls process function corresponding on operation platform or call back function directly or indirectly.
But traditional games and the interactive mode of operation platform also exist many drawbacks.First, operation platform is not unalterable, and along with the expansion of operation platform, as function expansion etc., the strategy of operation platform will change.And once the strategy of operation platform changes, just easily exception is there is in the service logic of original games when calling process function or the call back function of operation platform, there is many potential safety hazards, such as in Android system, the thread of games is not identical with the thread of operation platform, the thread of games is carry out transfer by JNI (Java Native Interface, Java local interface) when calling the process function of operation platform.Secondly, when games being implanted into the operation platform after strategy change, just need to adjust the original service logic of games, with compatible new operation platform well; Or, when games and operation platform mutual time, the number of parameters that games transmit changes, then allly carry out mutual operation platform with these games and need to adjust interface corresponding to these games more, not only workload is large, waste time and energy, and once interface adjustment process makes a mistake, this will be extinction for operation platform.
Therefore, when how to allow games and operation platform carry out mutual, realize the decoupling zero of games and operation platform, reduce games when being implanted into platform to the workload that program adjusts, and then reduce games and operation platform mutual time risk be the problem that solution is needed in one, game running platform technology field badly.
Summary of the invention
For this reason, need to provide a kind of games and the mutual technical scheme of operation platform, in order to solve games and operation platform when carrying out mutual, the problems such as workload is large, risk is high.
For achieving the above object, inventor provide a kind of games and the mutual method of operation platform, comprise step:
Games send the first message and are stored into the first message queue, and operation platform obtains message and does respective handling according to preset mode from described first message queue; Or
Operation platform sends the second message and is stored into the second message queue, and games obtain message and do respective handling according to preset mode from described second message queue.
As the embodiment of a kind of games and the mutual method of operation platform, described first message or the second message are the message through assembling process, and described assembling process specifically comprises: with C++, message parameter is assembled into json string with key and value form.
As the embodiment of a kind of games and the mutual method of operation platform, described preset mode comprises a judgement operation, described judge operation specifically comprise: judge whether described message belongs to pending message, do respective handling when judging that described message belongs to pending message, otherwise do not process.
As the embodiment of a kind of games and the mutual method of operation platform, judge that the method whether described message belongs to pending message specifically comprises:
Judge whether described message belongs to the message of preset kind.
As the embodiment of a kind of games and the mutual method of operation platform, operation platform obtains message or games when obtaining message from described second message queue from described first message queue, and the sequencing stored by message obtains message.
Inventor additionally provides a kind of games and the mutual system of operation platform, comprises games, operation platform and message desk; Described games comprise the first communication unit and the first processing unit; Described operation platform comprises second communication unit and the second processing unit;
Described first communication unit is for sending the first message and being stored into the first message queue on message desk, described second communication unit is used for obtaining message from described first message queue, and described second processing unit is used for doing respective handling according to preset mode to message; Or
Described second communication unit is for sending the second message and being stored into the second message queue on message desk, described first communication unit is used for obtaining message from described second message queue, and described first processing unit is used for doing respective handling according to preset mode to message.
As the embodiment of a kind of games and the mutual system of operation platform, described games also comprise the first message module units, and described operation platform also comprises the second message module units;
Described first message or the second message are the message through assembling process;
Described assembling process specifically comprises: message parameter is assembled into json string with key and value form by the first message module units or the second message module units C++.
As the embodiment of a kind of games and the mutual system of operation platform, games also comprise the first judging unit, and operation platform also comprises the second judging unit;
Described preset mode comprises a judgement performed by the first judging unit or the second judging unit and operates, described judge operation specifically comprise: judge whether described message belongs to pending message, do respective handling when judging that described message belongs to pending message, otherwise do not process.
As the embodiment of a kind of games and the mutual system of operation platform, the first judging unit or the second judging unit judge whether described message belongs to pending message and specifically comprise:
Judge whether described message belongs to the message of preset kind.
As the embodiment of a kind of games and the mutual system of operation platform, second communication unit obtains message or the first communication unit when obtaining message from described second message queue from described first message queue, and the sequencing stored by message obtains message.
Be different from prior art, technique scheme sends the first message by games and is stored into the first message queue, and operation platform obtains message and does respective handling according to preset mode from described first message queue; Or operation platform sends the second message and is stored into the second message queue, games obtain message and do respective handling according to preset mode from described second message queue, achieve the decoupling zero process of games and its operation platform.Operation platform is when processing the message of games, only need get corresponding message from the first message queue, in like manner, games are when processing operation platform message, also only corresponding message need be got from the second message queue, the service logic changing original games directly calls the interactive mode of the process function of operation platform, reduce gaming platform and operation platform mutual time risk.In addition, due to games and operation platform, the process to message is placed in message queue to have carried out, namely make when games change, without the need to adjusting one by one the interface of these games on operation platform, greatly reduce workload, save maintenance cost, thus had broad prospects in game running platform technology field.
Accompanying drawing explanation
The flow chart that Fig. 1 is games described in an embodiment of the present invention and the mutual method of operation platform;
The flow chart that Fig. 2 is games described in another embodiment of the present invention and the mutual method of operation platform;
The schematic diagram that Fig. 3 is games described in an embodiment of the present invention and the mutual system of operation platform.
Description of reference numerals:
1, games;
11, the first communication unit; 12, the first processing unit; 13, the first message module units; 14, the first judging unit;
2, operation platform;
21, second communication unit; 22, the second processing unit; 23, the second message module units; 24, the second judging unit;
3, message desk;
31, the first message queue; 32, the second message queue.
Detailed description of the invention
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the flow chart of games described in an embodiment of the present invention and the mutual method of operation platform, and described method can be applied to the mutual of games and operation platform, specifically comprises the following steps:
First enter step S1 games send the first message and be stored into the first message queue.Described first message is the data message that games wait to run platform processes, and described first message queue is store the container that games wait the data message running platform processes.When receiving the instruction of acquisition first message of operation platform, first message queue can by the first Message Transmission to operation platform, otherwise the first message queue will continue reservation first message, until operation platform sends acquisition instruction, then by the first Message Transmission to operation platform.Thus can enter step S2 operation platform from described first message queue, obtain message and do respective handling according to preset mode.Operation platform can obtain message by the mode of carrying out poll in the thread of operation platform from the first message queue, after getting the message in the first message queue, operation platform can call process function corresponding on operation platform according to preset mode or call back function processes these message, thus completes the process of operation platform to the data message of games.
Games are with its operation platform process, and not only operation platform needs the data message processing games, and games also need to process the data message of operation platform, could realize the mutual of games and operation platform like this.In like manner, as shown in Figure 2, thus also can send the second message and be stored into the second message queue by step S3 operation platform.Described second message is the data message that games process treated by operation platform, and described second message queue is the container that the data message of games process treated by storage running platform.When receiving the instruction of acquisition second message of games, second message queue can by the second Message Transmission to games, otherwise the second message queue will continue reservation second message, until games send acquisition instruction, then by the second Message Transmission to games.Thus can enter step S4 games from described second message queue, obtain message and do respective handling according to preset mode.Games can obtain message by the mode of poll from the second message queue, after getting the message in the second message queue, games can call process function corresponding on games according to preset mode or call back function processes these message, thus complete the process of games to the data message of operation platform.
Technique scheme sends the first message by games and is stored into the first message queue, and operation platform obtains message and does respective handling according to preset mode from described first message queue; Or operation platform sends the second message and is stored into the second message queue, games obtain message and do respective handling according to preset mode from described second message queue, achieve the decoupling zero process of games and its operation platform.The service logic changing original games directly calls the interactive mode of the process function of operation platform, reduce gaming platform and operation platform mutual time risk.In addition, due to games and operation platform, the process to message is placed in message queue to have carried out, namely make when games change, without the need to adjusting one by one the interface of these games on operation platform, greatly reduce workload, save maintenance cost, thus had broad prospects in game running platform technology field.
In the present embodiment, described first message or the second message are the message through assembling process, and described assembling process specifically comprises: with C++, message parameter is assembled into json string with key and value form.The usual transmission along with message parameter alternately between games and operation platform, when message parameter huge number, during substantial amounts, just need to encapsulate these message parameters, on the one hand convenient these message parameters to be transmitted, facilitate on the other hand and carry out upgrading to these message parameters and safeguard in time.Json is a kind of data interchange format of lightweight, is one of current optimal data interchange format, is not only easy to technical staff and reads and write, be also convenient to parsing and the generation of the electronic equipment running it simultaneously.With C++, message parameter is assembled into json string with key and value form, wherein, key is the attribute of object, and value is the property value that object is corresponding, and the type of described property value can comprise numeral, character string, array etc.Message parameter is assembled into json string form, can easily at message queue and games or transmit json between message queue and operation platform and go here and there, and then the transmission completed the first message or the second message, the process function of the correspondence on games or operation platform can carry out decapsulation to json string, then the message that comprises in json string is processed, and then realize the mutual of games and operation platform.First message or the second message back are toward needing to on-the-fly modify parameter wherein according to actual conditions, the parameter group of message is dressed up json string, be very easy to expansion and the maintenance of message parameter, not only reduce risk when message parameter transmits, also reduce maintenance cost.
Described preset mode comprises a judgement operation, describedly judges that operation specifically comprises: judge whether described message belongs to pending message, do respective handling, otherwise not process when the described message of judgement belongs to pending message.In the present embodiment, judge that the method whether described message belongs to pending message specifically comprises: judge whether described message belongs to the message of preset kind.Below to process the first message, judgement operation is further illustrated: first operation platform presets the type self needing processing messages, when after the Json string decoding that the first message groups is dressed up, the inside contains the data message of multiple games, thus operation platform can screen these data messages, process for the message belonging to preset kind, if message does not belong to preset kind, then operation platform can not process.Particularly, games wait that running the message of platform processes all includes type information usually, operation platform, can according to the type of message of this message of type acquisition of information in message after by the decoding of json string, and type of message can be a character string.Then obtained type of message mates with preset kind by operation platform, if the match is successful, illustrate that this message is the message that games need operation platform process, the process function or call back function that call correspondence in operation platform are processed this message, if mate unsuccessful, illustrate that this message is not the message that games need operation platform process, operation platform is also just without the need to processing this message.
In like manner can obtain, games are when processing the message of operation platform, also the type that games need processing messages can be preset, when after the Json string decoding that the second message groups is dressed up, the inside contains the data message of multiple operation platform, and thus games can screen these data messages, process for the message belonging to preset kind, if message does not belong to preset kind, then games can not process.Particularly, the message treating games process of operation platform all includes type information usually, and games, can according to the type of message of this message of type acquisition of information in message after being decoded by json string, and type of message can be a character string.Then obtained type of message mates with preset kind by games, if the match is successful, illustrate that this message is the message that operation platform needs operation platform process, the process function or call back function that call correspondence in games are processed this message, if mate unsuccessful, illustrate that this message is not the message that operation platform needs games process, games are also just without the need to processing this message.Operated by above-mentioned judgement, becoming alternately between games and operation platform is made to have regulations to abide by (only processing the message belonging to preset kind), thus reduce games and operation platform risk of error occurring, improve security.
Operation platform obtains message or games when obtaining message from described second message queue from described first message queue, and the sequencing stored by message obtains message.In the present embodiment, the mode of FIFO (First Input First Output, First Input First Output) is adopted to obtain message.For operation platform, the message obtained at first is at first stored in the message in the first message queue, then obtains the first message according to message successively stored in the sequencing of the first message queue again; And for games, the message obtained at first is at first stored in the message in the second message queue, then obtain the second message according to message successively stored in the sequencing of the second message queue again.FIFO has the advantages such as process is simple, expense is little, obtains message, also make the order of operation platform process first message or games process second message become more reasonable according to message stored in the sequencing of message queue.
And inventor additionally provides a kind of games and the mutual system of operation platform, refer to Fig. 3, for the schematic diagram of games described in an embodiment of the present invention and the mutual system of operation platform, described system comprises games 1, operation platform 2 and message desk 3; Described games 1 comprise the first communication unit 11 and the first processing unit 12; Described operation platform 2 comprises second communication unit 21 and the second processing unit 22;
Described first communication unit 11 is for sending the first message and being stored into the first message queue 31 on message desk 3, described second communication unit 21 for obtaining message from described first message queue, and described second processing unit 22 is for doing respective handling according to preset mode to message; Or
Described second communication unit 21 is for sending the second message and being stored into the second message queue 32 on message desk 3, described first communication unit 11 for obtaining message from described second message queue, and described first processing unit 12 is for doing respective handling according to preset mode to message.
Operation platform 2 is when processing the message of games 1, first first communication unit 11 sends the first message and is stored into the first message queue on message desk, described first message is the data message that games wait to run platform processes, and described first message queue is store the container that games wait the data message running platform processes.When receiving the instruction of acquisition first message of operation platform, first message queue can by the first Message Transmission to operation platform, otherwise the first message queue will continue reservation first message, until operation platform sends acquisition instruction, then by the first Message Transmission to operation platform.Then second communication unit 21 obtains message from described first message queue, and the second processing unit 22 does respective handling according to preset mode to message.Second communication unit 21 can obtain message by the mode of carrying out poll in the thread of operation platform from the first message queue, after getting the message in the first message queue, second processing unit 22 can call process function corresponding on operation platform according to preset mode or call back function processes these message, thus complete the process of operation platform to the data message of games.
Games are when processing the message of operation platform, and first second communication unit 21 sends the second message and be stored into the second message queue on message desk.Described second message is the data message that games process treated by operation platform, and described second message queue is the container that the data message of games process treated by storage running platform.When receiving the instruction of acquisition second message of games, the second message queue on message desk can by the second Message Transmission to games, otherwise the second message queue will continue reservation second message, until games send acquisition instruction, then by the second Message Transmission to games.Then the first communication unit 11 obtains message from described second message queue, and the first processing unit 12 does respective handling according to preset mode to message.First communication unit 11 can obtain message by the mode of poll from the second message queue, after getting the message in the second message queue, first processing unit 12 can call process function corresponding on games according to preset mode or call back function processes these message, thus complete the process of games to the data message of operation platform.
Technique scheme sends the first message by the first communication unit 11 and is stored into the first message queue 31 on message desk 3, second communication unit 21 obtains message from described first message queue, and then the second processing unit 22 does respective handling according to preset mode to message; Or, second communication unit 21 sends the second message and is stored into the second message queue 32 on message desk 3, first communication unit 11 obtains message from described second message queue, described first processing unit 12 does respective handling according to preset mode to message, achieves the decoupling zero process of games and its operation platform.The service logic changing original games directly calls the interactive mode of the process function of operation platform, reduce gaming platform and operation platform mutual time risk.In addition, due to games and operation platform, the process to message is placed in message queue to have carried out, namely make when games change, without the need to adjusting one by one the interface of these games on operation platform, greatly reduce workload, save maintenance cost, thus had broad prospects in game running platform technology field.
In the present embodiment, described games 1 also comprise the first message module units 13, and described operation platform 2 also comprises the second message module units 23; Described first message or the second message are the message through assembling process; Described assembling process specifically comprises: message parameter is assembled into json string with key and value form by the first message module units 13 or the second message module units 23 C++.The usual transmission along with message parameter alternately between games and operation platform, when message parameter huge number, during substantial amounts, just need to encapsulate these message parameters, on the one hand convenient these message parameters to be transmitted, facilitate on the other hand and carry out upgrading to these message parameters and safeguard in time.Json is a kind of data interchange format of lightweight, is one of current optimal data interchange format, is not only easy to technical staff and reads and write, be also convenient to electronic equipment simultaneously and resolve it and generate.With C++, message parameter is assembled into json string with key and value form, wherein, key is the attribute of object, and value is the property value that object is corresponding, and the type of described property value can comprise numeral, character string, array etc.Message parameter is assembled into json string form, can easily at message queue and games or transmit json between message queue and operation platform and go here and there, and then the transmission completed the first message or the second message, the process function of the correspondence on games or operation platform can carry out decapsulation to json string, then the message that comprises in json string is processed, and then realize the mutual of games and operation platform.First message or the second message back are toward needing to on-the-fly modify parameter wherein according to actual conditions, the parameter group of message is dressed up json string, be very easy to expansion and the maintenance of message parameter, not only reduce risk when message parameter transmits, also reduce maintenance cost.
Games 1 also comprise the first judging unit 14, and operation platform 2 also comprises the second judging unit 24; Described preset mode comprises a judgement performed by the first judging unit 14 or the second judging unit 24 and operates, described judge operation specifically comprise: judge whether described message belongs to pending message, do respective handling when judging that described message belongs to pending message, otherwise do not process.In the present embodiment, the first judging unit or the second judging unit judge that the method whether described message belongs to pending message specifically comprises: judge whether described message belongs to the message of preset kind.Below to process the first message, judgement operation is further illustrated: first operation platform presets the type self needing processing messages, when after the Json string decoding that the first message groups is dressed up, the inside contains the data message of multiple games, thus the second judging unit 24 can carry out judgement screening to these data messages, for the message belonging to preset kind, second processing unit 22 will process it, if message does not belong to preset kind, then the second processing unit 22 can not process.Particularly, games wait that running the message of platform processes all includes type information usually, operation platform, can according to the type of message of this message of type acquisition of information in message after by the decoding of json string, and type of message can be a character string.Then obtained type of message mates with preset kind by the second judging unit 24, if the match is successful, illustrate that this message is the message that games need operation platform process, the process function or call back function that call correspondence in operation platform process this message by the second processing unit 22, if mate unsuccessful, illustrate that this message is not the message that games need operation platform process, operation platform is also just without the need to processing this message.
In like manner can obtain, games are when processing the message of operation platform, also the type that games need processing messages can be preset, when after the Json string decoding that the second message groups is dressed up, the inside contains the data message of multiple operation platform, and thus the first judging unit 14 can screen these data messages, for the message belonging to preset kind, first processing unit 12 will process it, if message does not belong to preset kind, then the first processing unit 12 can not process.Particularly, the message treating games process of operation platform all includes type information usually, and games, can according to the type of message of this message of type acquisition of information in message after being decoded by json string, and type of message can be a character string.Then obtained type of message mates with preset kind by the first judging unit 14, if the match is successful, illustrate that this message is the message that operation platform needs operation platform process, the process function or call back function that call correspondence in games process this message by the first processing unit 12, if mate unsuccessful, illustrate that this message is not the message that operation platform needs games process, games are also just without the need to processing this message.Operated by above-mentioned judgement, becoming alternately between games and operation platform is made to have regulations to abide by (only processing the message belonging to preset kind), thus reduce games and operation platform risk of error occurring, improve security.
Second communication unit obtains message or the first communication unit when obtaining message from described second message queue from described first message queue, and the sequencing stored by message obtains message.In the present embodiment, the mode of FIFO (First Input First Output, First Input First Output) is adopted to obtain message.For operation platform, the message that second communication unit 21 obtains at first be the first communication unit 11 at first stored in the message in the first message queue, then second communication unit 21 obtains the first message according to message stored in the sequencing of the first message queue more successively; And for games, the message that first communication unit 11 obtains at first be second communication unit 21 at first stored in the message in the second message queue, then the first communication unit 11 obtains the second message according to message stored in the sequencing of the second message queue more successively.FIFO has the advantages such as process is simple, expense is little, obtains message, also make the order of operation platform process first message or games process second message become more reasonable according to message stored in the sequencing of message queue.
Technique scheme sends the first message by games and is stored into the first message queue, and operation platform obtains message and does respective handling according to preset mode from described first message queue; Or operation platform sends the second message and is stored into the second message queue, games obtain message and do respective handling according to preset mode from described second message queue, achieve the decoupling zero process of games and its operation platform.The service logic changing original games directly calls the interactive mode of the process function of operation platform, reduce gaming platform and operation platform mutual time risk.In addition, due to games and operation platform, the process to message is placed in message queue to have carried out, namely make when games change, without the need to adjusting one by one the interface of these games on operation platform, greatly reduce workload, save maintenance cost, thus had broad prospects in game running platform technology field.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize description of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.
Claims (10)
1. games and the mutual method of operation platform, comprises step:
Games send the first message and are stored into the first message queue, and operation platform obtains message and does respective handling according to preset mode from described first message queue; Or
Operation platform sends the second message and is stored into the second message queue, and games obtain message and do respective handling according to preset mode from described second message queue.
2. in games as claimed in claim 1 and the mutual method of operation platform, described first message or the second message are the message through assembling process, and described assembling process specifically comprises: with C++, message parameter is assembled into json string with key and value form.
3. in games as claimed in claim 1 or 2 and the mutual method of operation platform, described preset mode comprises a judgement operation, described judge operation specifically comprise: judge whether described message belongs to pending message, do respective handling when judging that described message belongs to pending message, otherwise do not process.
4., in games as claimed in claim 3 and the mutual method of operation platform, judge that the method whether described message belongs to pending message specifically comprises:
Judge whether described message belongs to the message of preset kind.
5., in the method that games as claimed in claim 1 or 2 are mutual with platform, operation platform obtains message or games when obtaining message from described second message queue from described first message queue, the sequencing acquisition message stored by message.
6. games and the mutual system of operation platform, comprise games, operation platform and message desk; Described games comprise the first communication unit and the first processing unit; Described operation platform comprises second communication unit and the second processing unit;
Described first communication unit is for sending the first message and being stored into the first message queue on message desk, described second communication unit is used for obtaining message from described first message queue, and described second processing unit is used for doing respective handling according to preset mode to message; Or
Described second communication unit is for sending the second message and being stored into the second message queue on message desk, described first communication unit is used for obtaining message from described second message queue, and described first processing unit is used for doing respective handling according to preset mode to message.
7., in games as claimed in claim 6 and the mutual system of operation platform, described games also comprise the first message module units, and described operation platform also comprises the second message module units;
Described first message or the second message are the message through assembling process;
Described assembling process specifically comprises: message parameter is assembled into json string with key and value form by the first message module units or the second message module units C++.
8., in games as claimed in claims 6 or 7 and the mutual method of operation platform, games also comprise the first judging unit, and operation platform also comprises the second judging unit;
Described preset mode comprises a judgement performed by the first judging unit or the second judging unit and operates, described judge operation specifically comprise: judge whether described message belongs to pending message, do respective handling when judging that described message belongs to pending message, otherwise do not process.
9., in games as claimed in claim 8 and the mutual method of operation platform, the first judging unit or the second judging unit judge whether described message belongs to pending message and specifically comprise:
Judge whether described message belongs to the message of preset kind.
10. in games as claimed in claims 6 or 7 and the mutual method of platform, second communication unit obtains message or the first communication unit when obtaining message from described second message queue from described first message queue, and the sequencing stored by message obtains message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410852938.6A CN104572316A (en) | 2014-12-31 | 2014-12-31 | Game program and running platform interaction method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410852938.6A CN104572316A (en) | 2014-12-31 | 2014-12-31 | Game program and running platform interaction method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104572316A true CN104572316A (en) | 2015-04-29 |
Family
ID=53088460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410852938.6A Pending CN104572316A (en) | 2014-12-31 | 2014-12-31 | Game program and running platform interaction method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572316A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110138721A (en) * | 2019-03-22 | 2019-08-16 | 福建省天奕网络科技有限公司 | Decouple method, the storage medium of game services and fight service |
WO2019227899A1 (en) * | 2018-05-31 | 2019-12-05 | 北京三快在线科技有限公司 | Program calling decoupling |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004070504A2 (en) * | 2003-02-05 | 2004-08-19 | Nokia Corporation | System and method for identifying applications targeted form message receipt in devices utilizing message queues |
CN1685693A (en) * | 2002-09-23 | 2005-10-19 | 艾利森电话股份有限公司 | Middleware application message/event model |
CN102520985A (en) * | 2011-11-29 | 2012-06-27 | 深圳市万兴软件有限公司 | System and method for running client software |
CN103761121A (en) * | 2013-12-31 | 2014-04-30 | 深圳英飞拓科技股份有限公司 | Embedded system and implementation method thereof |
CN104184635A (en) * | 2014-08-19 | 2014-12-03 | 烽火通信科技股份有限公司 | Method and device of home gateway for achieving one-to-many data communication based on Android RIL |
-
2014
- 2014-12-31 CN CN201410852938.6A patent/CN104572316A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1685693A (en) * | 2002-09-23 | 2005-10-19 | 艾利森电话股份有限公司 | Middleware application message/event model |
WO2004070504A2 (en) * | 2003-02-05 | 2004-08-19 | Nokia Corporation | System and method for identifying applications targeted form message receipt in devices utilizing message queues |
CN102520985A (en) * | 2011-11-29 | 2012-06-27 | 深圳市万兴软件有限公司 | System and method for running client software |
CN103761121A (en) * | 2013-12-31 | 2014-04-30 | 深圳英飞拓科技股份有限公司 | Embedded system and implementation method thereof |
CN104184635A (en) * | 2014-08-19 | 2014-12-03 | 烽火通信科技股份有限公司 | Method and device of home gateway for achieving one-to-many data communication based on Android RIL |
Non-Patent Citations (1)
Title |
---|
王友顺,陈贺明: "Windows消息队列与JSON在应用程序间通信的应用", 《电脑知识与技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019227899A1 (en) * | 2018-05-31 | 2019-12-05 | 北京三快在线科技有限公司 | Program calling decoupling |
CN110138721A (en) * | 2019-03-22 | 2019-08-16 | 福建省天奕网络科技有限公司 | Decouple method, the storage medium of game services and fight service |
CN110138721B (en) * | 2019-03-22 | 2021-06-29 | 福建省天奕网络科技有限公司 | Method of decoupling gaming and combat services, storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102413150B (en) | Server and virtual desktop control method and virtual desktop control system | |
US20200360805A1 (en) | Server and data processing method, apparatus, and system | |
CN108563517B (en) | Calling method and device of system interface | |
CN107171922A (en) | Heterogeneous system bridge service method based on middleware Technology | |
CN102508919B (en) | Data processing method and system | |
CN105760272B (en) | Monitoring backstage business customizing method and its system based on plug-in unit | |
CN104683472A (en) | Data transmission method capable of supporting large data volume | |
CN105867944B (en) | Web front end data operation layer and its implementation | |
WO2020083019A1 (en) | Decoding method based on multi-core processor, terminal device and storage medium | |
CN106027517A (en) | Game pack distribution method and apparatus supporting multiple channels | |
CN108897551A (en) | A kind of generation method and device of quoting resource relational tree | |
CN104850516A (en) | DDR frequency conversion design method and device | |
CN104572316A (en) | Game program and running platform interaction method and system | |
CN105450656A (en) | APP data configuration method, device, server and system | |
CN106716998B (en) | Multiple operating system multi-medium data decoding method, device and electronic equipment | |
CN115328457A (en) | Method and device for realizing form page based on parameter configuration | |
CN111400281B (en) | GIS data quality inspection and storage method for OSS object storage | |
CN110647316B (en) | Method and device for generating universal business object, computer equipment and storage medium | |
CN106790709B (en) | Ftp file transmission method and ftp client based on asynchronization read-write | |
CN101261580B (en) | System and method for processing data | |
CN107395486A (en) | Data communications method, device, system and message-oriented middleware | |
CN202524519U (en) | GPS/GPRS management module used for player | |
CN106774706A (en) | A kind of server | |
CN111625524B (en) | Data processing method, device, equipment and storage medium | |
CN103412946A (en) | DTU parameter configuration method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |