CN108540477A - The method and relevant device of data communication - Google Patents
The method and relevant device of data communication Download PDFInfo
- Publication number
- CN108540477A CN108540477A CN201810331365.0A CN201810331365A CN108540477A CN 108540477 A CN108540477 A CN 108540477A CN 201810331365 A CN201810331365 A CN 201810331365A CN 108540477 A CN108540477 A CN 108540477A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- communication
- communication protocol
- client
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- 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
-
- 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/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
The present invention discloses a kind of method and relevant device of data communication.This method is applied to any one end in the both ends of communication, including:Obtain the binary data of opposite end transmission;Wherein, the first file of universal programming languages is serialized by opposite end and is generated by binary data, and the first file of universal programming languages will record data to be transmitted by opposite end, is converted into according to the first communication protocol file described according to description language;By the second file of universal programming languages by binary data unserializing, the data of unserializing generation are obtained;Wherein, the second file of universal programming languages is converted by the second communication protocol described according to data description language;In first communication protocol file and the second communication protocol file:Modifier is Optional Field modifier, and data type is not limit the data type of size.Technical solution provided by the invention describes the opening of communication protocol by being realized by data description language, can improve the compatibility between the communication protocol of different editions.
Description
Technical field
A kind of method and relevant device communicated the present invention relates to field of computer technology more particularly to data.
Background technology
Data communication mode can be between local terminal and remote server network communication or local terminal in
IPC (Inter-Process Communication, interprocess communication) between different processes.Interprocess communication refer to
Transmission data or a kind of technology of signal between few two processes.Wherein, process is the least unit of computer system distribution resource,
Each process has a part of independent system resource of oneself, the different corresponding system resources of process to be isolated from each other, and is
It different processes can be made mutually to access resource and carries out co-ordination, just there is interprocess communication.
In current technology, whether in the network communication between local terminal and remote server or local terminal
Communication between different processes, communicating pair generally all arrange identical communication protocol, to realize having between communicating pair
Effect communication.
But with the development and change of business, inevitably need to upgrade communication protocol, and communicating pair is not
Synchronous upgrading must can be realized to communication protocol, it is promoted to the communication protocol of the side in communicating pair occur, and it is another
The case where communication protocol of one side does not upgrade, at this point, the communication protocol due to the two is different, communicating pair is in the data of transmission
Appearance will produce different understanding, cannot achieve the efficient communication between communicating pair, i.e. poor compatibility, easy to produce it is bad after
Fruit.
Invention content
In view of this, an embodiment of the present invention provides the methods and relevant device of a kind of communication of data, by by data
Description language, which is realized, describes the opening of communication protocol, simultaneous between the communication protocol so as to effectively improve different editions
Capacitive.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of method of data communication, is applied to any one end in the both ends of communication, the method includes:
Obtain the binary data of opposite end transmission;Wherein, the binary data by opposite end by universal programming languages first
File serializing generates, and the first file of the universal programming languages will record data to be transmitted, according to according to description language by opposite end
First communication protocol file of description is converted into;
By the second file of universal programming languages by the binary data unserializing, the number of unserializing generation is obtained
According to;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
A kind of method of data communication, is applied to any one end in the both ends of communication, the method includes:
The first file of universal programming languages is serialized, the binary data that serializing generates is obtained;Wherein, the general journey
The first file of sequence language converts life by record data to be transmitted, according to the first communication protocol file of data description language description
At;
The binary data is transmitted to opposite end, so that the binary data is read in opposite end, passes through universal programming languages
The binary data unserializing is obtained the data of unserializing generation by the second file;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View file is converted into;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field
Modifier, data type are not limit the data type of size.
A kind of device of data communication, is applied to any one end in the both ends of communication, described device includes:
Binary data acquisition module, the binary data for obtaining opposite end transmission;Wherein, the binary data by
The first file of universal programming languages is serialized and is generated by opposite end, and the first file of the universal programming languages will be recorded to be passed by opposite end
Transmission of data is converted into according to the first communication protocol file described according to description language;
Unserializing module, for, by the binary data unserializing, being obtained by the second file of universal programming languages
The data generated to unserializing;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
A kind of device of data communication, is applied to any one end in the both ends of communication, described device includes:
Serialization module obtains the binary system that serializing generates for serializing the first file of the universal programming languages
Data;Wherein, the first file of the universal programming languages, by record data to be transmitted, according to the of data description language description
One communication protocol file is converted into;
Binary data sending module, for transmitting the binary data to opposite end so that opposite end read described two into
Data processed obtain the number of unserializing generation by the second file of universal programming languages by the binary data unserializing
According to;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View file is converted into;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field
Modifier, data type are not limit the data type of size.
A kind of smart machine, including:
Processor and memory, the processor are connected with memory by communication bus:
Wherein, the processor, for calling and executing the program stored in the memory;
The memory, for storing program, the method that described program is at least used to execute data communication described above.
A kind of storage medium is stored thereon with computer program, when the computer program is executed by processor, realizes such as
Each step of the method for data communication described above.
It can be seen via above technical scheme that compared with prior art, the present invention provides a kind of method of data communication,
Applied to any one end in the both ends of communication, obtain the binary data of opposite end transmission first, wherein the binary data by
The first file of universal programming languages is serialized and is generated by opposite end, and the first file of the universal programming languages is waited for record by opposite end
Transmission data is converted into according to the first communication protocol file described according to description language, then passes through universal programming languages
The binary data unserializing is obtained the data of unserializing generation by two files, wherein the universal programming languages the
Two files are converted by the second communication protocol described according to the data description language, the first communication protocol file
In the second communication protocol file:Modifier is Optional Field modifier, and data type is not limit the data class of size
Type.When the first communication protocol and the second communication protocol difference, in the communication protocol of the two versions:Even if one of version
Lack certain field, since the field is the description of Optional Field modifier, the missing of the field is acceptable, no
Influence the identification of other fields;Even if the size of data of same data type description is different, since data type is not limit greatly
Small data type, therefore, the variation of size of data is also acceptable, does not influence to identify it.Therefore, when the first communication
When agreement and the second communication protocol difference, the communication of the data content of the shared data structure part of the two be it is impregnable,
That is, technical solution provided by the invention describes the opening of communication protocol by being realized by data description language,
The compatibility between communication protocol so as to effectively improve different editions.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of structure chart of the system of data communication provided in an embodiment of the present invention;
Fig. 2 is a kind of signaling process figure of the method for data communication provided in an embodiment of the present invention;
Fig. 3 is the structure chart of the system of another data provided in an embodiment of the present invention communication;
Fig. 4 is the signaling process figure of the method for another data provided in an embodiment of the present invention communication;
Fig. 5 is a kind of flow chart of the method for data communication provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the method for another data provided in an embodiment of the present invention communication;
Fig. 7 is a kind of structure chart of the device of data communication provided in an embodiment of the present invention;
Fig. 8 is the structure chart of the device of another data provided in an embodiment of the present invention communication;
Fig. 9 is a kind of hardware structure diagram of smart machine provided in an embodiment of the present invention;
Figure 10 is a kind of optimization game running client provided in an embodiment of the present invention and game client interprocess communication
Method signaling process figure.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Embodiment
Technical solution provided in an embodiment of the present invention, the network that can be applied between local terminal and remote server are logical
Letter can also be applied to the interprocess communication being separately mounted between the first client of local terminal and the second client.
Referring to Fig. 1, Fig. 1 is a kind of structure chart of the system of data communication provided in an embodiment of the present invention.Such as Fig. 1 institutes
Show, which includes:
Local terminal 11;
The remote server 12 for the opposite end each other being connected with the local terminal 11.
Referring to Fig. 2, Fig. 2 is a kind of signaling process figure of the method for data communication provided in an embodiment of the present invention, the party
The system that method is applied to data shown in FIG. 1 communication, as shown in Fig. 2, this method includes:
Step S11, the first communication protocol that remote server will record data to be transmitted, be described according to data description language
File is converted into the first file of universal programming languages;
Specifically, the first communication protocol file is the file using the first communication protocol, the data description language
For using open describing mode to describe the data structure of the first communication protocol, the first file of the universal programming languages is
The file described using universal programming languages.Wherein, universal programming languages can be the universal programming languages such as C++, the present invention couple
This is not limited.
Step S12, remote server serialize first file of universal programming languages, obtain that serializing generates two into
Data processed;
Specifically, API (Application of the remote server by the first file of the universal programming languages
Programming Interface, application programming interface) serializing first file of universal programming languages, obtain sequence
Row metaplasia at binary data.
Step S13, remote server transmit the binary data to local terminal;
Step S14, local terminal, by the binary data unserializing, are obtained by the second file of universal programming languages
The data that unserializing generates;
Specifically, API (the Application Programming that local terminal passes through the second file of universal programming languages
Interface, application programming interface) by the binary data unserializing, obtain the data of unserializing generation.
Specifically, the second file of the universal programming languages is communicated by described according to the data description language second
Protocol translation generates.The second communication protocol file is the file using the second communication protocol, and the data description language is used
In the data structure for describing the second communication protocol using open describing mode, the second file of the universal programming languages is to make
The file described with universal programming languages.Wherein, universal programming languages can be the universal programming languages such as C++, and the present invention is to this
It does not limit.
Specifically, first communication protocol and second communication protocol can be the communication protocol of identical version, i.e.,
The communication protocol of the two is identical, or the communication protocol of different editions, the i.e. communication protocol of the two are different.Optionally, institute
The first file of universal programming languages and the second file of the universal programming languages are stated as using the file of same general program language.
Lead to specifically, the first communication protocol file of identical data description language description and described second is respectively adopted
Believe in document of agreement:
Modifier is Optional Field modifier, and data type is not limit the data type of size.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional.Wherein, the data type for not limiting size includes:String (String data type) etc..
Above embodiments describe remote servers to the technical solution of local terminal transmission data, it should be noted that
Local terminal can also be to remote server transmission data, it is only necessary to by above remote server and local terminal exchange
(that is, remote server above, which is replaced with local terminal, local terminal, replaces with remote server), can obtain local
Technical solution of the terminal to remote server transmission data.That is, disclosed by the invention is that between the two realize effectively is led to
The technical solution of letter does not limit transmitting-receiving relationship between the two, these simple changes do not depart from protection scope of the present invention.
Technical solution provided by the invention, when the first communication protocol is identical with the second communication protocol, it is of course possible to realize this
Normal communication between ground terminal and remote server;When the first communication protocol and the second communication protocol difference, the two versions
In this communication protocol:Even if one of version lacks certain field, since the field is the description of Optional Field modifier, because
This, the missing of the field is acceptable, does not influence the identification of other fields;Even if the data of same data type description are big
Small difference, since data type is not limit the data type of size, the variation of size of data is also acceptable,
It does not influence to identify it.Therefore, when the first communication protocol and the second communication protocol difference, the shared data structure part of the two
The communication of data content be impregnable, that is to say, that technical solution provided by the invention passes through by data description
Speech, which is realized, describes the opening of communication protocol, the compatibility between communication protocol so as to effectively improve different editions.
Referring to Fig. 3, Fig. 3 is the structure chart of the system of another data provided in an embodiment of the present invention communication.Such as Fig. 3
Shown, which includes:
First client 21;
The second client 23 of interprocess communication is carried out by shared drive 22 with first client 21.
It (is also referred to as applied soft specifically, first client 21, second client 23 may each be application program
Part).Optionally, first client 21, the shared drive 22 and second client 23 are located locally terminal, described
Shared drive 22 can be pre-created by first client 21 or is pre-created by second client 23.
Specifically, between the first client 21 and the second client 23, by shared drive 22 come transmission data, wherein
First client 21 and the second client 23 are the separate process address space, by mapping with being directed toward same memory
Location, so the first client 21 and the second client 23 are it is seen that identical data content.
Referring to Fig. 4, Fig. 4 is the signaling process figure of the method for another data provided in an embodiment of the present invention communication,
The system that this method is applied to data shown in Fig. 3 communication, as shown in figure 4, this method includes:
Step S21, the first client serialize the first file of universal programming languages compiled in advance, obtain serializing and generate
Binary data;
Wherein, the first file of the universal programming languages will record data to be transmitted by local terminal, be described according to data
First communication protocol file of language description is converted into.
Specifically, the first communication protocol file is the file using the first communication protocol, the data description language
For using open describing mode to describe the data structure of the first communication protocol, the first file of the universal programming languages is
The file described using universal programming languages.Wherein, universal programming languages can be the universal programming languages such as C++, the present invention couple
This is not limited.
Specifically, API (Application of first client by the first file of universal programming languages
Programming Interface, application programming interface) serializing the first file of universal programming languages, it is serialized
The binary data of generation.
Step S22, the first client is by the binary data transmission to shared drive;
Step S23, the binary data that the second client is read from the shared drive;
Step S24, the second client, by the binary data unserializing, are obtained by the second file of universal programming languages
The data generated to unserializing;
Specifically, the second file of the universal programming languages is communicated by described according to the data description language second
Protocol translation generates.The second communication protocol file is the file using the second communication protocol, and the data description language is used
In the data structure for describing the second communication protocol using open describing mode, the second file of the universal programming languages is to make
The file described with universal programming languages.Wherein, universal programming languages can be the universal programming languages such as C++, and the present invention is to this
It does not limit.
Specifically, first communication protocol and second communication protocol can be the communication protocol of identical version, i.e.,
The communication protocol of the two is identical, or the communication protocol of different editions, the i.e. communication protocol of the two are different.Optionally, institute
The first file of universal programming languages and the second file of the universal programming languages are stated as using the file of same general program language.
Lead to specifically, the first communication protocol file of identical data description language description and described second is respectively adopted
Believe in document of agreement:
Modifier is Optional Field modifier, and data type is not limit the data type of size.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional.Wherein, the data type for not limiting size includes:String (String data type) etc..
Specifically, the second client by the API of the second file of universal programming languages by the binary data antitone sequence
Change, obtains the data of unserializing generation.
Above embodiments describe the first clients to the technical solution of the second client transmission data, needs to illustrate
That the second client can also be to the first client transmission data, it is only necessary to by above the first client and the second client
End exchanges (that is, the first client above being replaced with the second client, the second client replaces with the first client), just
Available technical solution of second client to the first client transmission data.That is, disclosed by the invention is the two
Between realize the technical solution of efficient communication, do not limit transmitting-receiving relationship between the two, these simple changes do not depart from the present invention
Protection domain.
Technical solution provided by the invention, when the first communication protocol is identical with the second communication protocol, it is of course possible to realize
Normal communication between two clients and the first client;When the first communication protocol and the second communication protocol difference, the two
In the communication protocol of version:Even if one of version lacks certain field, since the field is the description of Optional Field modifier,
Therefore, the missing of the field is acceptable, does not influence the identification of other fields;Even if the data of same data type description
It is of different sizes, since data type is not limit the data type of size, the variation of size of data is also that can receive
, it does not influence to identify it.Therefore, when the first communication protocol and the second communication protocol difference, the shared data structure of the two
The communication of partial data content is impregnable, that is to say, that technical solution provided by the invention by data by retouching
Predicate speech, which is realized, describes the opening of communication protocol, the compatibility between communication protocol so as to effectively improve different editions
Property.
Further, since communication protocol is often risen with the upgrading of application program (also referred to as application software) together
Grade, therefore technical solution provided by the invention is applied, it can make normally to communicate between the application program of different editions, so as to
Enough save the maintenance cost of application program new and old edition.
Below by by the technology scene of interprocess communication, the prior art and technical solution of the present invention are introduced in citing, with more
Add the innovation for intuitively embodying technical solution of the present invention.
The structure for the system that the system structure of interprocess communication is communicated with the attached data shown in Fig. 3 of the present invention in the prior art
It is identical, still, in the prior art, in order to realize one end transmission (being alternatively referred to as written) to the data content in shared drive, separately
One end can correctly be read according to original meaning, and the first client and the second client have been arranged identical using universal programming languages
The communication protocol (having arranged identical communication protocol) of data structure.In this way, the data content read and write in shared drive, the
One client and the second client can reach identical understanding.In general, the communication protocol to having determined that data structure, can correspond to one
A specific version number, to distinguish its version.
For example, being the data structure for the communication protocol for describing server list information using universal programming languages below:
It is understood that the definition of communication protocol, is for business demand service.The variation of business demand may be wanted
Ask the data structure of communication protocol to be adjusted correspondingly therewith, to can only upgrade communication agreement version.
For example, the variation of business demand, needs the Acc_Server_Info data structures to communication protocol defined above
Make three modifications:
(1) svr_name, i.e. server name, length need to expand to 64 characters;
(2) flag switches do not use;
(3) in data structure, increase svr_isp, indicate the Internet Service Provider of server.
At this point, if the communication protocol of the first client completes above three modification, upgrade to new communication protocol version
This, and the communication protocol of the second client does not complete above three modification, is still former communication protocol version, at this point, the first client
When end is using new communication protocol, after svr_name (i.e. server name) length is extended, original version communication protocol is used
Second client will be unable to correctly read svr_name, delay in the data that the first client uses new communication protocol to transmit
With the content of tri- fields of lost.That is, in the prior art, once the corresponding communication protocol in the both ends being in communication with each other
It when version difference, just can not effectively be compatible with, to cannot achieve normal, effective communication.
The example of technical solution provided by the invention defines communication protocol given above using Protocol Buffers
Acc_Server_Info data structures, as follows:
Wherein, the description of the data structure of communication protocol, is encapsulated in the definition of message, is illustrated with optional
Each field, each field impart corresponding Tag serial numbers, and the data type before svr_addr and svr_name is
String, it is no longer necessary to which content-length is specified in display.
It is same to need to make three modifications to the Acc_Server_Info data structures of communication protocol defined above above:
That is (1) svr_name, i.e. server name, length need to expand to 64 characters;
(2) flag switches do not use;
(3) in data structure, increase svr_isp, indicate the Internet Service Provider of server.
The then example of technical solution provided by the invention, the modified communication defined using Protocol Buffers
The Acc_Server_Info data structures of agreement are as follows:
The definition of Acc_Server_Info data structures in above-mentioned communication protocol:
Svr_name is defined with string types (that is, unlimited data type for determining size of data), so in sequence
When changing with unserializing, automatic calculating character string length;
Flag switches are the fields described with modifier optional (i.e. Optional Field modifier), are not filled with its value,
Just it indicates not using the field;
9th field increases svr_isp, the Internet Service Provider of server is indicated, to meet the change of demand
Change.
In the following, the edition compatibility sex chromosome mosaicism for illustrating how to solve communication protocol for applying the present invention program will be illustrated, it is assumed that
The communication protocol of first client upgrades successfully, but the communication protocol of the second client does not upgrade successfully:
Since the communication protocol of the first client has upgraded successfully, the first client will be transferred to the number of the second client
According to being to be written to the binary data of shared drive according to modified Acc_Server_Info data structure definitions, wrapped
Change containing 3 demands above, i.e.,:Svr_name length increases, and does not use flag, increases svr_isp newly;
The communication protocol of second client does not upgrade successfully, just according to the definition of former Acc_Server_Info data structures
Unserializing (reads) binary data from shared drive:
Svr_name is due to being to use string type definitions, when unserializing, automatic calculating character string length, that is, uses
The svr_name values of string type definitions, can be compatible with kinds of characters string length (it is long can correctly to read new character string
Degree), its variation will not influence programmed logic;
Flag switches are the fields described with optional, its value missing is acceptable, does not interfere with program and patrols
Volume;
The svr_isp newly increased not in the definition of former Acc_Server_Info data structures, therefore can not be read, but
It is that, since the communication protocol of the second client does not upgrade, lacking for svr_isp will not be lain in.
Via the above it was determined that the example of technical solution of the present invention, using the Acc_Server_Info after upgrading
The communication protocol of data structure and the communication protocol for using original Acc_Server_Info data structures, the shared data knot of the two
The communication of the data content of structure part is impregnable, and therefore, the communication protocol of the two versions can be effectively compatible with.
In addition, when the communication protocol of the communication protocol of the first client and the second client all upgrades successfully, the two is certainly
It so just realizes compatibility, repeats no more.
In the following, by the angle of the one end for obtaining communication data in the both ends based on communication, to technical side provided by the invention
Case is illustrated, it should be noted that the one end for obtaining communication data can be any one end in the both ends of communication, and described
The both ends of communication can be local terminal and the remote server by network communication, or pass through process in local terminal
Between the first client for communicating and the second client, the present invention this is not limited.
Referring to Fig. 5, Fig. 5 is a kind of flow chart of the method for data communication provided in an embodiment of the present invention.Such as Fig. 5 institutes
Show, this method includes:
Step S31 obtains the binary data of opposite end transmission;
It is generated specifically, the binary data is serialized the first file of universal programming languages by opposite end, it is described general
The first file of program language will record data to be transmitted by opposite end, turn according to the first communication protocol file described according to description language
Metaplasia at.
Step S32 obtains unserializing by the second file of universal programming languages by the binary data unserializing
The data of generation;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
If specifically, the both ends of the communication are objective by the first client of interprocess communication and second in local terminal
When the end of family, then the mode of the binary data of opposite end transmission is obtained in the step S31, including:
It obtains opposite end and is transmitted to the binary data in shared drive.
Optionally, first client is optimization game running client, and second client is game client,
Then the method for the data communication shown in Fig. 5 is applied to the game client;Correspondingly, the data to be transmitted includes:Optimization
The instruction information of game running.Wherein, the instruction information of the optimization game running may include:Server list information and most
Good network communication link information.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional。
In the following, by the angle of the one end for sending communication data in the both ends based on communication, to technical side provided by the invention
Case is illustrated, it should be noted that the one end for sending communication data can be any one end in the both ends of communication, and described
The both ends of communication can be local terminal and the remote server by network communication, or pass through process in local terminal
Between the first client for communicating and the second client, the present invention this is not limited.
Referring to Fig. 6, Fig. 6 is the flow chart of the method for another data provided in an embodiment of the present invention communication.Such as Fig. 6
Shown, this method includes:
Step S41 serializes the first file of the universal programming languages, obtains the binary data that serializing generates;
Wherein, the first file of the universal programming languages, by record data to be transmitted, according to data description language description
First communication protocol file is converted into.
Step S42 transmits the binary data, so that opposite end to opposite end:The binary data is read, by general
The binary data unserializing is obtained the data of unserializing generation by the second file of program language;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View file is converted into;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field
Modifier, data type are not limit the data type of size.
If specifically, the both ends of the communication are objective by the first client of interprocess communication and second in local terminal
When the end of family, then the step S42 transmits the mode of the binary data to opposite end, including:
By the binary data transmission to shared drive, so that opposite end:Read from the shared drive described two into
Data processed obtain the number of unserializing generation by the second file of universal programming languages by the binary data unserializing
According to.
Optionally, first client is optimization game running client, and second client is game client,
Then the method for the data communication shown in Fig. 6 is applied to the optimization game running client;Correspondingly, the data to be transmitted packet
It includes:Optimize the instruction information of game running.Wherein, the instruction information of the optimization game running may include:Server list
Information and optimum network communication link information.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional。
The method of data communication provided in an embodiment of the present invention, when the first communication protocol is identical with the second communication protocol, when
The normal communication between the both ends of communication so may be implemented;When the first communication protocol and the second communication protocol difference, the two
In the communication protocol of version:Even if one of version lacks certain field, since the field is the description of Optional Field modifier,
Therefore, the missing of the field is acceptable, does not influence the identification of other fields;Even if the data of same data type description
It is of different sizes, since data type is not limit the data type of size, the variation of size of data is also that can receive
, it does not influence to identify it.Therefore, when the first communication protocol and the second communication protocol difference, the shared data structure of the two
The communication of partial data content is impregnable, that is to say, that the method for data provided by the invention communication, by by
Data description language, which is realized, describes the opening of communication protocol, between the communication protocol so as to effectively improve different editions
Compatibility.
In order to illustrate technical solution provided by the invention more fully hereinafter, it is logical to correspond to data provided in an embodiment of the present invention
The method of letter, the invention also discloses the devices of corresponding data communication.
In the following, by the angle of the one end for obtaining communication data in the both ends based on communication, it is logical to data provided by the invention
The device of letter is illustrated, it should be noted that and the one end for obtaining communication data can be any one end in the both ends of communication,
And the both ends of the communication can be local terminal and the remote server by network communication, or lead in local terminal
The first client and the second client, the present invention for crossing interprocess communication do not limit this.
Referring to Fig. 7, Fig. 7 is a kind of structure chart of the device of data communication provided in an embodiment of the present invention.Such as Fig. 7 institutes
Show, which includes:
Binary data acquisition module 31, the binary data for obtaining opposite end transmission;
Wherein, the first file of universal programming languages is serialized by opposite end and is generated by the binary data, the general journey
The first file of sequence language will record data to be transmitted by opposite end, be converted according to the first communication protocol file described according to description language
It generates;
Unserializing module 32, for by the second file of universal programming languages by the binary data unserializing,
Obtain the data of unserializing generation;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
If specifically, the both ends of the communication are objective by the first client of interprocess communication and second in local terminal
When the end of family, then the binary data acquisition module 31 is specifically used for:
It obtains opposite end and is transmitted to the binary data in shared drive.
Optionally, first client is optimization game running client, and second client is game client,
Then the device of the data communication shown in Fig. 7 can be applied to the game client;Correspondingly, the data to be transmitted includes:
Optimize the instruction information of game running.Wherein, the instruction information of the optimization game running may include:Server list information
With optimum network communication link information.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional。
In the following, by the angle of the one end for sending communication data in the both ends based on communication, to technical side provided by the invention
Case is illustrated, it should be noted that the one end for sending communication data can be any one end in the both ends of communication, and described
The both ends of communication can be local terminal and the remote server by network communication, or pass through process in local terminal
Between the first client for communicating and the second client, the present invention this is not limited.
Referring to Fig. 8, Fig. 8 is the structure chart of the device of another data provided in an embodiment of the present invention communication.Such as Fig. 8
Shown, which includes:
Serialization module 41, for serializing the first file of the universal programming languages, obtain that serializing generates two into
Data processed;
Wherein, the first file of the universal programming languages, by record data to be transmitted, according to data description language description
First communication protocol file is converted into.
Binary data sending module 42, for transmitting the binary data to opposite end, so that opposite end reads described two
Binary data obtains unserializing generation by the second file of universal programming languages by the binary data unserializing
Data;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View file is converted into;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field
Modifier, data type are not limit the data type of size.
If specifically, the both ends of the communication are objective by the first client of interprocess communication and second in local terminal
When the end of family, then the binary data sending module 42 is specifically used for:
By the binary data transmission to shared drive, so that opposite end:Read from the shared drive described two into
Data processed obtain the number of unserializing generation by the second file of universal programming languages by the binary data unserializing
According to.
Optionally, first client is optimization game running client, and second client is game client,
Then the device of the data communication shown in Fig. 8 can be applied to the optimization game running client;Correspondingly, the number to be transmitted
According to including:Optimize the instruction information of game running.Wherein, the instruction information of the optimization game running may include:Server
List information and optimum network communication link information.
Optionally, the data description language is Protocol Buffers, and the Optional Field modifier is
optional。
The device of data communication provided in an embodiment of the present invention, when the first communication protocol is identical with the second communication protocol, when
The normal communication between the both ends of communication so may be implemented;When the first communication protocol and the second communication protocol difference, the two
In the communication protocol of version:Even if one of version lacks certain field, since the field is the description of Optional Field modifier,
Therefore, the missing of the field is acceptable, does not influence the identification of other fields;Even if the data of same data type description
It is of different sizes, since data type is not limit the data type of size, the variation of size of data is also that can receive
, it does not influence to identify it.Therefore, when the first communication protocol and the second communication protocol difference, the shared data structure of the two
The communication of partial data content is impregnable, that is to say, that the device of data provided by the invention communication, by by
Data description language, which is realized, describes the opening of communication protocol, between the communication protocol so as to effectively improve different editions
Compatibility.
In order to illustrate technical solution provided by the invention more fully hereinafter, it is logical to correspond to data provided in an embodiment of the present invention
The method of letter, the present invention disclose a kind of smart machine, which can be that (such as local computer, movement are eventually for local terminal
End etc.) or remote server etc..
Referring to Fig. 9, Fig. 9 is a kind of hardware structure diagram of smart machine provided in an embodiment of the present invention.As shown in figure 9,
The smart machine includes:
Processor 1, communication interface 2, memory 3 and communication bus 4;
Wherein processor 1, communication interface 2, memory 3 complete mutual communication by communication bus 4;
Processor 1, for calling and executing the program stored in the memory;
Memory 3, for storing program;
Described program may include program code, and said program code includes computer-managed instruction;Implement in the present invention
In example, program may include the corresponding program of method of data communication described above.
Processor 1 may be a central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.
Memory 3 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
Wherein, described program can be specifically used for:
Obtain the binary data of opposite end transmission;Wherein, the binary data by opposite end by universal programming languages first
File serializing generates, and the first file of the universal programming languages will record data to be transmitted, according to according to description language by opposite end
First communication protocol file of description is converted into;
By the second file of universal programming languages by the binary data unserializing, the number of unserializing generation is obtained
According to;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
Specifically, the program is executed by receiving one end of communication data in the both ends that communicate.
Alternatively, described program can be specifically used for:
The first file of universal programming languages is serialized, the binary data that serializing generates is obtained;Wherein, the general journey
The first file of sequence language converts life by record data to be transmitted, according to the first communication protocol file of data description language description
At;
The binary data is transmitted to opposite end, so that the binary data is read in opposite end, passes through universal programming languages
The binary data unserializing is obtained the data of unserializing generation by the second file;
Wherein, the second file of the universal programming languages passes through the second communication protocols for being described according to the data description language
View file is converted into;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field
Modifier, data type are not limit the data type of size.
Specifically, the program is executed by sending one end of communication data in the both ends that communicate.
Using smart machine provided in an embodiment of the present invention, when the first communication protocol is identical with the second communication protocol, certainly
The normal communication between the both ends of communication may be implemented;When the first communication protocol and the second communication protocol difference, the two versions
In this communication protocol:Even if one of version lacks certain field, since the field is the description of Optional Field modifier, because
This, the missing of the field is acceptable, does not influence the identification of other fields;Even if the data of same data type description are big
Small difference, since data type is not limit the data type of size, the variation of size of data is also acceptable,
It does not influence to identify it.Therefore, when the first communication protocol and the second communication protocol difference, the shared data structure part of the two
The communication of data content be impregnable, that is to say, that smart machine provided by the invention is applied, by being retouched by data
Predicate speech, which is realized, describes the opening of communication protocol, the compatibility between communication protocol so as to effectively improve different editions
Property.
In addition, the embodiment of the present invention also provides a kind of storage medium, which is stored with computer program, the meter
When calculation machine program is executed by processor, each step of the method for executing the data communication described in above-described embodiment.
Below by the example of optimization game running client and game client interprocess communication between the two, to this hair
Bright practical application scene does brief introduction.For example, optimization game running client can be Tencent WeGame clients,
Game client can be LOL clients.Assuming that the exemplary technical background and technical need are as follows:
Technical background:The communication protocol version of optimization game running client has upgraded successfully, and game client
Communication protocol version does not upgrade successfully and (still uses former communication protocol version);
Technical need:Optimizing game running client needs, (information can by the instruction information for optimizing game running
To include server list information and optimum network communication link information) it is transmitted to game client, and need game client
End can correctly read the instruction information of the optimization game running.10 pairs of examples are introduced below in conjunction with the accompanying drawings:
Referring to Fig. 10, Figure 10 is a kind of optimization game running client provided in an embodiment of the present invention and game client
The signaling process figure of the method for interprocess communication.As shown in Figure 10, this method includes:
Step S51, optimization game running client serialize the first file of universal programming languages compiled in advance, obtain sequence
Row metaplasia at binary data;
Wherein, the first file of the universal programming languages, by local terminal by the instruction information of record optimization game running,
It is converted into according to the first communication protocol file of data description language Protocol Buffers descriptions.The optimization game fortune
Capable instruction information may include server list information and optimum network communication link information.
Specifically, the first communication protocol file is the file using the first communication protocol.
Specifically, optimization game running client serializes general program by the API of the first file of universal programming languages
The first file of language obtains the binary data that serializing generates.
Step S52 optimizes game running client by the binary data transmission to shared drive;
Step S53, the binary data that game client is read from the shared drive;
Step S54, game client, by the binary data unserializing, are obtained by the second file of universal programming languages
The data generated to unserializing;
Specifically, the second file of the universal programming languages passes through according to the data description language Protocol
Second communication protocol of Buffers descriptions is converted into.The second communication protocol file is the text using the second communication protocol
Part.
Specifically, having been illustrated in this exemplary technical background, first communication protocol and second communication protocol are
The communication protocol of different editions, the i.e. communication protocol of the two are different.And data description language Protocol is respectively adopted
In the first communication protocol file and the second communication protocol file of Buffers descriptions:
Modifier is Optional Field modifier optional, and data type is not limit the data type of size.
Specifically, the second client by the API of the second file of universal programming languages by the binary data antitone sequence
Change, obtains the data of unserializing generation.
In this example, although the first communication protocol and the second communication protocol difference, the communication protocol of the two versions
In:Even if one of version lacks certain field, since the field is optional descriptions, the missing of the field is
Acceptable does not influence the identification of other fields;Even if the size of data of same data type description is different, due to data class
Type is not limit the data type of size, and therefore, the variation of size of data is also acceptable, does not influence to identify it.Cause
This, even if the first communication protocol and the second communication protocol difference, the communication of the data content of the shared data structure part of the two
It is also impregnable.That is, this example by data description language Protocol Buffers by realizing to communication
The open description of agreement, the compatibility between communication protocol so as to effectively improve different editions make optimization game fortune
The instruction information for optimizing game running can be transmitted to game client by row client, and can realize that game client is rectified
Really read the instruction information of the optimization game running.
It can be seen via above technical scheme that compared with prior art, the present invention provides a kind of method of data communication,
Applied to any one end in the both ends of communication, obtain the binary data of opposite end transmission first, wherein the binary data by
The first file of universal programming languages is serialized and is generated by opposite end, and the first file of the universal programming languages is waited for record by opposite end
Transmission data is converted into according to the first communication protocol file described according to description language, then passes through universal programming languages
The binary data unserializing is obtained the data of unserializing generation by two files, wherein the universal programming languages the
Two files are converted by the second communication protocol described according to the data description language, the first communication protocol file
In the second communication protocol file:Modifier is Optional Field modifier, and data type is not limit the data class of size
Type.When the first communication protocol and the second communication protocol difference, in the communication protocol of the two versions:Even if one of version
Lack certain field, since the field is the description of Optional Field modifier, the missing of the field is acceptable, no
Influence the identification of other fields;Even if the size of data of same data type description is different, since data type is not limit greatly
Small data type, therefore, the variation of size of data is also acceptable, does not influence to identify it.Therefore, when the first communication
When agreement and the second communication protocol difference, the communication of the data content of the shared data structure part of the two be it is impregnable,
That is, technical solution provided by the invention describes the opening of communication protocol by being realized by data description language,
The compatibility between communication protocol so as to effectively improve different editions.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or smart machine including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that smart machine is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the smart machine including the element.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment,
For system, smart machine and storage medium, since it is corresponded to the methods disclosed in the examples, so the comparison of description is simple
Single, reference may be made to the description of the method.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Any other shape well known in reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register or technical field
In the storage medium of formula.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (15)
1. a kind of method of data communication, which is characterized in that it is applied to any one end in the both ends of communication, the method includes:
Obtain the binary data of opposite end transmission;Wherein, the binary data by opposite end by the first file of universal programming languages
Serializing generates, and the first file of the universal programming languages will record data to be transmitted by opposite end, be described according to according to description language
The first communication protocol file be converted into;
By the second file of universal programming languages by the binary data unserializing, the data of unserializing generation are obtained;
Wherein, the second file of the universal programming languages is turned by the second communication protocol described according to the data description language
Metaplasia at;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field modifier, number
It is not limit the data type of size according to type.
2. according to the method described in claim 1, it is characterized in that, the both ends of the communication are by the local whole of network communication
End and remote server.
3. according to the method described in claim 1, it is characterized in that, the both ends of the communication be local terminal in by between process
The first client and the second client of communication;
The then binary data for obtaining opposite end transmission, including:
It obtains opposite end and is transmitted to the binary data in shared drive.
4. according to the method described in claim 3, it is characterized in that, first client be optimization game running client,
Second client is game client, and the method is applied to the game client;
The data to be transmitted includes:Optimize the instruction information of game running.
5. according to Claims 1 to 4 any one of them method, which is characterized in that the data description language is Protocol
Buffers, the Optional Field modifier are optional.
6. a kind of method of data communication, which is characterized in that it is applied to any one end in the both ends of communication, the method includes:
The first file of universal programming languages is serialized, the binary data that serializing generates is obtained;Wherein, the general program language
It says the first file, is converted by record data to be transmitted, the first communication protocol file described according to data description language;
The binary data is transmitted to opposite end, so that the binary data is read in opposite end, passes through universal programming languages second
The binary data unserializing is obtained the data of unserializing generation by file;
Wherein, the second file of the universal programming languages is literary by the second communication protocol described according to the data description language
Part is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
7. according to the method described in claim 6, it is characterized in that, the both ends of the communication be local terminal in by between process
The first client and the second client of communication;
It is described to transmit the binary data to opposite end, so that the binary data is read in opposite end, pass through universal programming languages
The binary data unserializing is obtained the data of unserializing generation by the second file, including:
By the binary data transmission to shared drive, so that the binary number is read in opposite end from the shared drive
According to by the second file of universal programming languages by the binary data unserializing, obtaining the data of unserializing generation.
8. the method according to the description of claim 7 is characterized in that first client be optimization game running client,
Second client is game client, and the method is applied to the optimization game running client;
The data to be transmitted includes:Optimize the instruction information of game running.
9. a kind of device of data communication, which is characterized in that be applied to any one end in the both ends of communication, described device includes:
Binary data acquisition module, the binary data for obtaining opposite end transmission;Wherein, the binary data is by opposite end
The first file of universal programming languages is serialized and is generated, the first file of the universal programming languages will record number to be transmitted by opposite end
According to, be converted into according to the first communication protocol file described according to description language;
Unserializing module, it is anti-for, by the binary data unserializing, being obtained by the second file of universal programming languages
Serialize the data generated;
Wherein, the second file of the universal programming languages is turned by the second communication protocol described according to the data description language
Metaplasia at;In the first communication protocol file and the second communication protocol file:Modifier is Optional Field modifier, number
It is not limit the data type of size according to type.
10. device according to claim 9, which is characterized in that the both ends of the communication are to pass through process in local terminal
Between the first client and the second client that communicate;
Then the binary data acquisition module is specifically used for:
It obtains opposite end and is transmitted to the binary data in shared drive.
11. device according to claim 10, which is characterized in that first client is optimization game running client
End, second client are game client, and the method is applied to the game client;
The data to be transmitted includes:Optimize the instruction information of game running.
12. a kind of device of data communication, which is characterized in that be applied to any one end in the both ends of communication, described device includes:
Serialization module obtains the binary data that serializing generates for serializing the first file of the universal programming languages;
Wherein, the first file of the universal programming languages, by record data to be transmitted, according to the first communication of data description language description
Document of agreement is converted into;
Binary data sending module, for transmitting the binary data to opposite end, so that the binary number is read in opposite end
According to by the second file of universal programming languages by the binary data unserializing, obtaining the data of unserializing generation;
Wherein, the second file of the universal programming languages is literary by the second communication protocol described according to the data description language
Part is converted into;In the first communication protocol file and the second communication protocol file:Modifier is modified for Optional Field
Symbol, data type is not limit the data type of size.
13. device according to claim 12, which is characterized in that the both ends of the communication are to pass through process in local terminal
Between the first client and the second client that communicate;
The binary data sending module is specifically used for:
By the binary data transmission to shared drive, so that the binary number is read in opposite end from the shared drive
According to by the second file of universal programming languages by the binary data unserializing, obtaining the data of unserializing generation.
14. a kind of smart machine, which is characterized in that including:
Processor and memory, the processor are connected with memory by communication bus:
Wherein, the processor, for calling and executing the program stored in the memory;
The memory, for storing program, described program is at least used for perform claim and requires 1~8 any one of them data
The method of communication.
15. a kind of storage medium, which is characterized in that be stored thereon with computer program, the computer program is held by processor
When row, each step of the method such as the communication of claim 1~8 any one of them data is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810331365.0A CN108540477A (en) | 2018-04-13 | 2018-04-13 | The method and relevant device of data communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810331365.0A CN108540477A (en) | 2018-04-13 | 2018-04-13 | The method and relevant device of data communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108540477A true CN108540477A (en) | 2018-09-14 |
Family
ID=63480353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810331365.0A Pending CN108540477A (en) | 2018-04-13 | 2018-04-13 | The method and relevant device of data communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540477A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111180011A (en) * | 2019-12-31 | 2020-05-19 | 上海依智医疗技术有限公司 | Method and device for detecting gene mutation of focus |
CN111385292A (en) * | 2020-03-04 | 2020-07-07 | 西安旌旗电子股份有限公司 | Descriptor-based protocol message and data interaction method and system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719902A (en) * | 2009-12-04 | 2010-06-02 | 深圳创维数字技术股份有限公司 | Remote procedure calling (PRC) method and system |
CN102098296A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | Method and system for realizing remote call |
CN102508765A (en) * | 2011-11-17 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for monitoring software log in real time by inter-process communication |
CN102571939A (en) * | 2011-12-26 | 2012-07-11 | 广州市玄武无线科技有限公司 | Cross-platform communication method and system |
CN103389992A (en) * | 2012-05-09 | 2013-11-13 | 北京百度网讯科技有限公司 | Structured data storage method and device |
US8752075B1 (en) * | 2013-02-26 | 2014-06-10 | Xilinx, Inc. | Method for data transport |
CN104077335A (en) * | 2013-05-07 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Methods, devices and system for serializing and deserializing structured data |
CN104199879A (en) * | 2014-08-21 | 2014-12-10 | 广州华多网络科技有限公司 | Data processing method and device |
CN105681333A (en) * | 2016-02-24 | 2016-06-15 | 携程计算机技术(上海)有限公司 | Binary-system-based network data transmission method and system |
US9454630B1 (en) * | 2013-02-26 | 2016-09-27 | Xilinx, Inc. | Graphical representation of integrated circuits |
CN106713423A (en) * | 2016-12-06 | 2017-05-24 | 上海斐讯数据通信技术有限公司 | Distributed data processing method and device for cloud access point controller |
CN106775696A (en) * | 2016-12-08 | 2017-05-31 | 蓝信工场(北京)科技有限公司 | Data processing method and device |
-
2018
- 2018-04-13 CN CN201810331365.0A patent/CN108540477A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719902A (en) * | 2009-12-04 | 2010-06-02 | 深圳创维数字技术股份有限公司 | Remote procedure calling (PRC) method and system |
CN102098296A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | Method and system for realizing remote call |
CN102508765A (en) * | 2011-11-17 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for monitoring software log in real time by inter-process communication |
CN102571939A (en) * | 2011-12-26 | 2012-07-11 | 广州市玄武无线科技有限公司 | Cross-platform communication method and system |
CN103389992A (en) * | 2012-05-09 | 2013-11-13 | 北京百度网讯科技有限公司 | Structured data storage method and device |
US8752075B1 (en) * | 2013-02-26 | 2014-06-10 | Xilinx, Inc. | Method for data transport |
US9454630B1 (en) * | 2013-02-26 | 2016-09-27 | Xilinx, Inc. | Graphical representation of integrated circuits |
CN104077335A (en) * | 2013-05-07 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Methods, devices and system for serializing and deserializing structured data |
CN104199879A (en) * | 2014-08-21 | 2014-12-10 | 广州华多网络科技有限公司 | Data processing method and device |
CN105681333A (en) * | 2016-02-24 | 2016-06-15 | 携程计算机技术(上海)有限公司 | Binary-system-based network data transmission method and system |
CN106713423A (en) * | 2016-12-06 | 2017-05-24 | 上海斐讯数据通信技术有限公司 | Distributed data processing method and device for cloud access point controller |
CN106775696A (en) * | 2016-12-08 | 2017-05-31 | 蓝信工场(北京)科技有限公司 | Data processing method and device |
Non-Patent Citations (1)
Title |
---|
王亚瑞: "《基于Unity3D的物联网演示***的设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111180011A (en) * | 2019-12-31 | 2020-05-19 | 上海依智医疗技术有限公司 | Method and device for detecting gene mutation of focus |
CN111385292A (en) * | 2020-03-04 | 2020-07-07 | 西安旌旗电子股份有限公司 | Descriptor-based protocol message and data interaction method and system |
CN111385292B (en) * | 2020-03-04 | 2022-08-16 | 西安旌旗电子股份有限公司 | Descriptor-based protocol message and data interaction method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3734933B1 (en) | Resource acquisition method, server and storage medium | |
JP4868590B2 (en) | Method, system, and computer program for caching web service requests | |
US10440128B2 (en) | Systems and methods for selecting efficient messaging between services | |
AU2017226398B2 (en) | Service implementation method, apparatus and system based on fix protocol | |
CN108846753B (en) | Method and apparatus for processing data | |
CN108984170A (en) | The multilingual rendering method of the H5 page and device | |
CN106713423B (en) | The processing method and processing device of distributed data in a kind of cloud access base site controller | |
MX2008012378A (en) | Policy based message aggregation framework. | |
CN102291437A (en) | System and method for realizing application of cross-platform internet | |
US20120278489A1 (en) | Extracting web services from resources using a web services resources programming model | |
RU2452017C2 (en) | Processing formatted messages using message maps | |
CN108540477A (en) | The method and relevant device of data communication | |
US20100115075A1 (en) | Directional optimization for policy evaluation | |
CN107197000B (en) | Static and dynamic hybrid caching method, device and system | |
CN106681734A (en) | Response method and device for function interface call | |
US8127271B2 (en) | Method and system for accessing a resource implemented in a computer network | |
US10944824B2 (en) | Method and apparatus for processing media type in rest software architecture | |
CN113220481B (en) | Request processing and feedback method, device, computer equipment and readable storage medium | |
CN105208100A (en) | Interface data processing method | |
US8200749B2 (en) | Data processing method for generating service interface descriptions | |
CN110247926A (en) | A kind of exchange method and system | |
CN109460389A (en) | A kind of log recording method based on openresty | |
CN109561131A (en) | A kind of method and electronic equipment of the downloading of language based on programming excel data | |
CN103646015A (en) | Method and system for sending, receiving and transmitting XML message | |
CN114285859B (en) | Data processing method, device, equipment and storage medium for middle layer block chain service |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |
|
RJ01 | Rejection of invention patent application after publication |