CN102902542A - virtual interface configuration method and device - Google Patents

virtual interface configuration method and device Download PDF

Info

Publication number
CN102902542A
CN102902542A CN2012103671028A CN201210367102A CN102902542A CN 102902542 A CN102902542 A CN 102902542A CN 2012103671028 A CN2012103671028 A CN 2012103671028A CN 201210367102 A CN201210367102 A CN 201210367102A CN 102902542 A CN102902542 A CN 102902542A
Authority
CN
China
Prior art keywords
message
general
data object
interface
virtual interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103671028A
Other languages
Chinese (zh)
Other versions
CN102902542B (en
Inventor
刘昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tonly Electronics Holdings Ltd
Original Assignee
Tonly Electronics Holdings Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tonly Electronics Holdings Ltd filed Critical Tonly Electronics Holdings Ltd
Priority to CN201210367102.8A priority Critical patent/CN102902542B/en
Publication of CN102902542A publication Critical patent/CN102902542A/en
Application granted granted Critical
Publication of CN102902542B publication Critical patent/CN102902542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A virtual interface configuration method comprises the following steps: acquiring basic parameters of a message transmitted by a virtual interface; assigning the basic parameters of the message to basic parameter variables corresponding to the message in a head object structure in a predefined general interface; adding a pointer pointing to the virtual interface of the message as a linked list node in a linked list structure in a data object structure in a predefined general interface; acquiring a data object check structure of a check code of a linked list structure containing the message; the method comprises the steps of obtaining general parameters of a predefined general interface, and combining the general parameters of the predefined general interface, a head object structure containing basic parameters of a message, a linked list structure containing the message and a data object check structure containing the message to form a virtual interface for transmitting the message. A virtual interface configuration device is also provided. The virtual interface configuration method and the virtual interface configuration device reduce a large amount of repeated code data, save storage space and are convenient to operate.

Description

Virtual interface collocation method and device
Technical field
The present invention relates to computer technology, particularly relate to a kind of virtual interface collocation method and device.
Background technology
Along with the development of computer technology, the function of consumer electronics product is more and more abundanter, has satisfied greatly people's demand.Traditional consumer electronics product bottom-layer design generally is based on the software layer of various code frameworks, and the interface between the module between the different software layers mainly is that the mode with function realizes.The processing of difference in functionality business, its control parameter is also different with the data layout that need to transmit, and need to realize between the levels by different function interfaces, the communication between the module, and different function interfaces is by different in a large number codes realizations.
Yet only there is the difference of a little in a lot of function interfaces in parameter, but adopt a large amount of different codes to safeguard, need a large amount of code data of storage, take storage space, and need to call different interfaces, complex operation for the communication between the different modules.
Summary of the invention
Based on this, being necessary provides a kind of and can save storage space and easy to operate virtual interface collocation method for taking a large amount of storage spaces and calling the loaded down with trivial details problem of different interface operations.
A kind of virtual interface collocation method may further comprise the steps:
Obtain the basic parameter of the message of virtual interface transmission;
The basic parameter of described message is assigned to basic parameter variable corresponding to message in the object structure in the predefined general-purpose interface;
The pointer that points to the virtual interface of described message is added in the list structure in the data object structure in the predefined general-purpose interface as chained list node;
Obtain the data object verification structure of the check code of the list structure that comprises described message;
Obtain the general parameter of predefined general-purpose interface, the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits described message.
Therein among embodiment, before the step of the described type identification that obtains the message that virtual interface transmits, comprise step:
The predefine general-purpose interface;
The step of described predefine general-purpose interface comprises:
The general parameter of predefine general-purpose interface, described general parameter comprise an object variable, data object pointer and data object verification pointer;
An object structure of predefine general-purpose interface;
The data object structure of predefine general-purpose interface comprises list structure in the described data object structure, comprises chained list node in the described list structure;
The data object verification structure of predefine general-purpose interface, the check code of described data object verification structure storage chains list structure.
Among embodiment, the basic parameter variable of described message comprises the type identification variable of message, message-length variable, data object check length variable therein.
Therein among embodiment, after the step of the described basic parameter that obtains the message that virtual interface transmits, also comprise:
Whether the data length that detects the message of described virtual interface transmission is 0, if then described message is control message; If not, then described message adds data message for control.
Among embodiment, described check code is cyclic redundancy check (CRC) code therein.
A kind of virtual interface inking device comprises:
Acquisition module is for the basic parameter of the message of obtaining the virtual interface transmission;
The assignment module is used for basic parameter variable corresponding to message in the object structure that basic parameter with described message is assigned to predefined general-purpose interface;
Add module, the pointer that is used for pointing to the virtual interface of described message is added on as chained list node in the list structure in the data object structure of predefined general-purpose interface;
The verification acquisition module is for the data object verification structure of the check code that obtains the list structure that comprises described message;
Composite module, be used for obtaining the general parameter of predefined general-purpose interface, the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits described message.
Among embodiment, also comprise therein:
The predefine module is used for the predefine general-purpose interface;
Described predefine module comprises:
The general parameter definition unit, for the general parameter of predefine general-purpose interface, described general parameter comprises an object variable, data object pointer and data object verification pointer;
Object definition unit is used for an object structure of predefine general-purpose interface;
Data object organization definition unit, the data object structure for the predefine general-purpose interface comprises list structure in the described data object structure, comprises chained list node in the described list structure;
Verification organization definition unit is for the data object verification structure of predefine general-purpose interface, the check code of described data object verification structure storage chains list structure.
Among embodiment, the basic parameter variable of described message comprises the type identification variable of message, message-length variable, data object check length variable therein.
Among embodiment, also comprise therein:
Whether detection module is 0 for detection of the data length of the message of described virtual interface transmission, if then described message is control message; If not, then described message adds data message for control.
Among embodiment, described check code is cyclic redundancy check (CRC) code therein.
Above-mentioned virtual interface collocation method and device, basic parameter by the message that will obtain is assigned to the message basic parameter variable in the general-purpose interface, and add the pointer of virtual interface corresponding to this message, consisted of virtual interface, only need revise the Partial Variable value to the corresponding virtual interface of different message, need not redesign interface, reduce the code data of a large amount of repetitions, saved storage space, and easy to operate.
Description of drawings
Fig. 1 is the schematic flow sheet of virtual interface collocation method among the embodiment;
Fig. 2 is the idiographic flow schematic diagram of predefine general-purpose interface among the embodiment;
Fig. 3 is member's encapsulating structure schematic diagram among the embodiment;
Fig. 4 is message format schematic diagram among the embodiment;
Fig. 5 is that the virtual interface collocation method can be applicable to the schematic diagram that the message between the different structure layer is transmitted;
Fig. 6 is the schematic diagram of podium level and middleware layer pass-along message;
Fig. 7 is the system architecture schematic diagram;
Fig. 8 is the inner structure schematic diagram of virtual interface inking device among the embodiment;
Fig. 9 is the inner structure schematic diagram of virtual interface inking device among another embodiment;
Figure 10 is the inner structure schematic diagram of predefine module among the embodiment.
Embodiment
Be described in detail below in conjunction with specific embodiment and the accompanying drawing technical scheme to virtual interface collocation method and device, so that it is clearer.
As shown in Figure 1, in one embodiment, a kind of virtual interface collocation method may further comprise the steps:
Step S110 obtains the basic parameter of the message that virtual interface transmits.
Concrete, when increasing new virtual interface because of service logic, obtain first the basic parameter of the message of virtual interface transmission.Basic parameter comprises type identification, message-length, message grouping, data object check bit length etc.Type identification comprises host type sign and subtype sign, can adopt 1 byte, with hexadecimal representation.For example, host type can be broadcast message class, and subtype is that Play Control, broadcast suspend, broadcast stops or plays F.F. etc.
After step S110, whether the data length of detect-message is 0, if then this message is control message; If not, then this message is the message that is accompanied with data content, i.e. control adds data message; In concrete the application, can do different processing for different message.Concrete, the message of transmission can only comprise control bit, and does not comprise data content, then this message is control message, only need resolve this control message when using, and finishes corresponding control operation; The message of transmitting also can comprise data content and control bit simultaneously, and then this message adds data message for control, need to enter the Message Processing flow process when using, message parse for example, message grouping or message forwarding etc.
Step S120 is assigned to basic parameter variable corresponding to message in the object structure in the predefined general-purpose interface with the basic parameter of this message.
Concrete, at first pre-defined general-purpose interface.As shown in Figure 2, the step of predefine general-purpose interface comprises:
Step S210, the general parameter of predefine general-purpose interface, this general parameter comprise an object variable, data object pointer and data object verification pointer.
Concrete, the general parameter of general-purpose interface defines with data structure mode, following description:
Figure BDA00002202046600051
Wherein, typedef Header is to liking a definition object variable, and the typedef* data object is to define the data object pointer, and the typedef* data check is to liking definition data object verification pointer.
Step S220, an object structure of predefine general-purpose interface.
Concrete, comprising some message basic parameter variablees in the object structure of general-purpose interface, this message basic parameter variable mainly comprises type identification variable, message-length variable, the data object check length variable of message.Further, message basic parameter variable can comprise also whether message divides into groups, number of packet etc., but is not limited to this.
Can adopt such as an object structure of giving a definition, but be not limited to this:
Figure BDA00002202046600052
Step S230, the data object structure of predefine general-purpose interface comprises list structure in this data object structure, comprises chained list node in this list structure.
Concrete, comprise list structure in the data object structure of general-purpose interface, each chained list node is a structure pointer in the list structure, data structure of this structure pointed namely represents the parameter of a virtual interface.For example virtual interface has 3 parameters, and 3 corresponding structure pointers are then arranged in the list structure.Chained list node number in the list structure is different along with the difference of message.So can finish the message transmission of difference in functionality interface.
Can adopt as giving a definition, but be not limited to this:
Wherein, member's encapsulating structure is a link structure, deposits some data structure pointers relevant with message in the list structure.As shown in Figure 3, comprise in member's encapsulating structure that the address of data structure 1 is to the address of data structure N.
Step S240, the data object verification structure of predefine general-purpose interface, the check code of this data object verification structure storage chains list structure.
Concrete, the data object verification structure of general-purpose interface can adopt as giving a definition, but is not limited to this.
Figure BDA00002202046600062
Wherein, the data check member is check code and the message grouping for the link structure of storage data object.Check code can be cyclic redundancy check (CRC) code.
Predefine general-purpose interface, the form of the message by the general-purpose interface transmission comprises a data, data content and checking data, such as table 1.
Table 1
Data Data Checking data
As shown in Figure 4, a data comprises that main type of message, sub-type of message, message-length, message verification control, control bit 1 are to control bit N; Data comprise that data 1 are to N.
Step S130 is added on the pointer that points to the virtual interface of this message in the list structure in the data object structure in the predefined general-purpose interface as chained list node.
Concrete, the pointer that points to the virtual interface of this message is added in the chained list node mode in the list structure in the data object structure of general-purpose interface, this chained list node becomes a structure pointer that points to virtual interface.
Step S140 obtains the data object verification structure of the check code of the list structure that comprises described message.
Concrete, recomputate the check code of the list structure that has comprised this message, it is kept in the data object verification structure.
Step S150, obtain the general parameter of predefined general-purpose interface, the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits described message.
Concrete, the basic parameter of message is assigned to the basic parameter variable of the message that defines in the general-purpose interface, and after in list structure, adding chained list node, has consisted of the virtual interface that transmits this message.
Above-mentioned virtual interface collocation method, basic parameter by the message that will obtain is assigned to the message basic parameter variable in the general-purpose interface, and add the pointer of virtual interface corresponding to this message, consisted of virtual interface, only need revise the Partial Variable value to the corresponding virtual interface of different message, need not redesign interface, reduce the code data of a large amount of repetitions, saved storage space, and easy to operate.
Above-mentioned virtual interface collocation method can be applicable to the message transmission between the different structure layer, as shown in Figure 5, specifically comprises:
Step S310 obtains the second structural sheet transmits request from the first structural sheet message to the 3rd structural sheet, and described the first structural sheet, the second structural sheet are adjacent, and described the second structural sheet is adjacent with the 3rd structural sheet.
Concrete, for example the first structural sheet is the MiddleWare(middleware) layer, the second structural sheet is podium level, the 3rd structural sheet is for driving layer.Podium level obtains middleware layer message.Middleware layer message comprises a MiddleWare layer data (MiddleWare layer Header), MiddleWare layer data and MiddleWare layer checking data.
Step S320 is added in the first structural sheet message between the data of a data of the second structural sheet and the second structural sheet and is assembled into the second structural sheet message.
Concrete, as shown in Figure 6, podium level is added in a podium level Header(object structure with MiddleWare layer message) and the platform layer data.Podium level message comprises podium level Header, MiddleWare layer message, podium level data and podium level checking data.
Step S330 sends to the 3rd structural sheet with described the second structural sheet message.
For example, podium level message is sent to the driving layer.
In the above-mentioned virtual interface collocation method, the second structural sheet is during to the first structural sheet message transfer, take podium level and MiddleWare layer as example, the message of podium level comprises podium level head data, data and checking data, after podium level sent to the MiddleWare layer with podium level message, the MiddleWare layer received the message of resolving this podium level after the message by MiddleWare layer message format.
In addition, above-mentioned virtual interface collocation method also can be applicable to configure the interface between LinuxKernel layer and the podium level, the interface between podium level and the MiddleWare layer, and the interface between MiddleWare layer and the application layer.
As shown in Figure 7, the LinuxKernel layer is used for providing the service of linux system Component driver, this layer to relate to the multiple hardwares driving.
Podium level comprises provides the relevant assembly of OS, provides the C/C++ storehouse to support upper strata (middleware layer).Comprise customizable C/C++ storehouse, core C storehouse and the running environment of standard, for example virtual machine.Podium level is provided with hardware abstraction layer interface (interface A) and development language adaptable interface (interface B).The hardware abstraction layer interface provides various hardware-related interfaces, finishes the message communicating of podium level and different hardware interface.The development language adaptable interface is used for finishing the conversion of higher level lanquage and native language, makes higher level lanquage can use native language, and for example JNI embeds Native C/C++ in the Java code.
The MiddleWare layer is used for providing the APIApplicationProgrammingInterface of system core application service, application programming interfaces) framework, process different service logics, can use in the service of this layer development of user oneself, interface C can be provided.The MiddleWare layer also provides the many services function, such as data sharing service, instant messaging service etc.
Application layer comprises system's initial application and the independently developed application of user.
As shown in Figure 8, in one embodiment, a kind of virtual interface inking device comprises acquisition module 110, assignment module 120, adds module 130, verification acquisition module 140 and composite module 150.Wherein:
Acquisition module 110 is for the basic parameter of the message of obtaining application programming interfaces.Concrete, when increasing new virtual interface because of service logic, obtain first the basic parameter of the message of virtual interface transmission.Basic parameter comprises type identification, message-length, message grouping, data object check bit length etc.Type identification comprises host type sign and subtype sign, can adopt 1 byte, with hexadecimal representation.For example, host type can be broadcast message class, and subtype is that Play Control, broadcast suspend, broadcast stops or plays F.F. etc.
Assignment module 120 is used for basic parameter variable corresponding to message in the object structure that basic parameter with this message is assigned to predefined general-purpose interface.
Adding pointers that module 130 is used for pointing to the virtual interface of this message is added on as chained list node in the list structure in the data object structure of predefined general-purpose interface.Concrete, the pointer that points to the virtual interface of this message is added in the chained list node mode in the list structure in the data object structure of general-purpose interface, this chained list node becomes a structure pointer that points to virtual interface.
Verification acquisition module 140 is for the data object verification structure of the check code that obtains the list structure that comprises described message.Concrete, recomputate the check code of the list structure that has comprised this message, it is kept in the data object verification structure.
Composite module 150 is used for obtaining the general parameter of predefined general-purpose interface, and the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits this message.
Concrete, the basic parameter of message is assigned to the basic parameter variable of the message that defines in the general-purpose interface, and after in list structure, adding chained list node, has consisted of the virtual interface that transmits this message.
Above-mentioned virtual interface inking device, basic parameter by the message that will obtain is assigned to the message basic parameter variable in the general-purpose interface, and add the pointer of virtual interface corresponding to this message, consisted of virtual interface, only need revise the Partial Variable value to the corresponding virtual interface of different message, need not redesign interface, reduce the code data of a large amount of repetitions, saved storage space, and easy to operate.
As shown in Figure 9, in one embodiment, above-mentioned virtual interface inking device except comprising acquisition module 110, assignment module 120, adding module 130, verification acquisition module 140 and composite module 150, also comprises predefine module 160 and inspection module 170.Wherein:
Predefine module 160 is used for the predefine general-purpose interface.
As shown in figure 10, in one embodiment, predefine module 160 comprises general parameter definition unit 161, an object definition unit 163, data object organization definition unit 165 and verification organization definition unit 167.Wherein:
General parameter definition unit 161 is used for the general parameter of predefine general-purpose interface, and described general parameter comprises an object variable, data object pointer and data object verification pointer.
Concrete, the general parameter of general-purpose interface defines with data structure mode, following description:
Figure BDA00002202046600101
Wherein, typedef Header is to liking a definition object variable, and the typedef* data object is to define the data object pointer, and the typedef* data check is to liking definition data object verification pointer.
Object definition unit 163 is used for an object structure of predefine general-purpose interface.
Concrete, comprising some message basic parameter variablees in the object structure of general-purpose interface, this message basic parameter variable mainly comprises type identification variable, message-length variable, the data object check length variable of message.Further, message basic parameter variable can comprise also whether message divides into groups, number of packet etc., but is not limited to this.
Can adopt such as an object structure of giving a definition, but be not limited to this:
Figure BDA00002202046600102
Data object organization definition unit 165 is used for the data object structure of predefine general-purpose interface, comprises list structure in the described data object structure, comprises chained list node in the described list structure.
Concrete, comprise list structure in the data object structure of general-purpose interface, each chained list node is a structure pointer in the list structure, data structure of this structure pointed namely represents the parameter of a virtual interface.For example virtual interface has 3 parameters, and 3 corresponding structure pointers are then arranged in the list structure.Chained list node number in the list structure is different along with the difference of message.So can finish the message transmission of difference in functionality interface.
Can adopt as giving a definition, but be not limited to this:
Figure BDA00002202046600111
Wherein, member's encapsulating structure is a link structure, deposits some data structure pointers relevant with message in the list structure.As shown in Figure 3, comprise data structure 1 to N address in member's encapsulating structure.
Verification organization definition unit 167 is used for the data object verification structure of predefine general-purpose interface, the check code of described data object verification structure storage chains list structure.
Concrete, the data object verification structure of general-purpose interface can adopt as giving a definition, but is not limited to this.
Wherein, the data check member is check code and the message grouping for the link structure of storage data object.Check code can be cyclic redundancy check (CRC) code.
Predefine general-purpose interface, the form of the message by the general-purpose interface transmission comprises a data, data content and checking data, such as table 1.
As shown in Figure 4, a data comprises that main type of message, sub-type of message, message-length, message verification control, control bit 1 are to control bit N; Data content comprises that data 1 are to N.
Whether detection module 170 is 0 for detection of the data length of the message in these application programming interfaces, if then described message is control message; If not, then this message is the message that is accompanied with data content, i.e. control adds data message; In concrete the application, can do different processing for different message.Concrete, described message can only comprise control bit, and does not comprise data content, then this message is control message, only need resolve this control message when using, and finishes corresponding control operation; Described message also can comprise data content and control bit simultaneously, and then this message adds data message for control, need to enter the Message Processing flow process when using, message parse for example, message grouping or message forwarding etc.
Above-mentioned virtual interface inking device can be applicable to the message transmission between the different structure layer, and detailed process is:
Acquisition module 110 obtains the second structural sheet transmits request from the first structural sheet message to the 3rd structural sheet, and described the first structural sheet, the second structural sheet are adjacent, and described the second structural sheet is adjacent with the 3rd structural sheet.
Concrete, for example the first structural sheet is the MiddleWare(middleware) layer, the second structural sheet is podium level, the 3rd structural sheet is for driving layer.Podium level obtains middleware layer message.Middleware layer message comprises intermediate layer header data (MiddleWare layer Header), MiddleWare layer data and MiddleWare layer checking data.
Assignment module 120 is assigned to the basic parameter of the first structural sheet message basic parameter variable corresponding to message in the object structure of the second structural sheet.
Adding pointer that module 130 will point to the first structural sheet message is added on as chained list node in the list structure in the data object structure of the second structural sheet interface.
Be assembled into the second structural sheet message between the data of composite module 150 for a data that the first structural sheet message is added in the second structural sheet and the second structural sheet.
Concrete, as shown in Figure 6, podium level is added in a podium level Header(object structure with MiddleWare layer message) and the platform layer data.Podium level message comprises podium level Header, MiddleWare layer message, podium level data and podium level checking data.
Above-mentioned virtual interface inking device also comprises transport module, and transport module is used for described the second structural sheet message is sent to the 3rd structural sheet.
For example, podium level message is sent to the driving layer.
In the above-mentioned virtual interface inking device, the second structural sheet is during to the first structural sheet message transfer, take podium level and MiddleWare layer as example, the message of podium level comprises podium level head data, data and checking data, after podium level sent to the MiddleWare layer with podium level message, the MiddleWare layer received the message of resolving this podium level after the message by MiddleWare layer message format.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. virtual interface collocation method may further comprise the steps:
Obtain the basic parameter of the message of virtual interface transmission;
The basic parameter of described message is assigned to basic parameter variable corresponding to message in the object structure in the predefined general-purpose interface;
The pointer that points to the virtual interface of described message is added in the list structure in the data object structure in the predefined general-purpose interface as chained list node;
Obtain the data object verification structure of the check code of the list structure that comprises described message;
Obtain the general parameter of predefined general-purpose interface, the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits described message.
2. virtual interface collocation method according to claim 1 is characterized in that, before the step of the described type identification that obtains the message that virtual interface transmits, comprises step:
The predefine general-purpose interface;
The step of described predefine general-purpose interface comprises:
The general parameter of predefine general-purpose interface, described general parameter comprise an object variable, data object pointer and data object verification pointer;
An object structure of predefine general-purpose interface;
The data object structure of predefine general-purpose interface comprises list structure in the described data object structure, comprises chained list node in the described list structure;
The data object verification structure of predefine general-purpose interface, the check code of described data object verification structure storage chains list structure.
3. virtual interface collocation method according to claim 1 is characterized in that, the basic parameter variable of described message comprises the type identification variable of message, message-length variable, data object check length variable.
4. virtual interface collocation method according to claim 1 is characterized in that, after the step of the described basic parameter that obtains the message that virtual interface transmits, also comprises:
Whether the data length that detects the message of described virtual interface transmission is 0, if then described message is control message; If not, then described message adds data message for control.
5. virtual interface collocation method according to claim 1 is characterized in that, described check code is cyclic redundancy check (CRC) code.
6. a virtual interface inking device is characterized in that, comprising:
Acquisition module is for the basic parameter of the message of obtaining the virtual interface transmission;
The assignment module is used for basic parameter variable corresponding to message in the object structure that basic parameter with described message is assigned to predefined general-purpose interface;
Add module, the pointer that is used for pointing to the virtual interface of described message is added on as chained list node in the list structure in the data object structure of predefined general-purpose interface;
The verification acquisition module is for the data object verification structure of the check code that obtains the list structure that comprises described message;
Composite module, be used for obtaining the general parameter of predefined general-purpose interface, the general parameter of predefined general-purpose interface, an object structure that comprises the basic parameter of described message, the data object verification structure that comprises the list structure of described message and comprise described message are constituted the virtual interface that transmits described message.
7. virtual interface inking device according to claim 6 is characterized in that, also comprises:
The predefine module is used for the predefine general-purpose interface;
Described predefine module comprises:
The general parameter definition unit, for the general parameter of predefine general-purpose interface, described general parameter comprises an object variable, data object pointer and data object verification pointer;
Object definition unit is used for an object structure of predefine general-purpose interface;
Data object organization definition unit, the data object structure for the predefine general-purpose interface comprises list structure in the described data object structure, comprises chained list node in the described list structure;
Verification organization definition unit is for the data object verification structure of predefine general-purpose interface, the check code of described data object verification structure storage chains list structure.
8. virtual interface inking device according to claim 6 is characterized in that, the basic parameter variable of described message comprises the type identification variable of message, message-length variable, data object check length variable.
9. virtual interface inking device according to claim 6 is characterized in that, also comprises:
Whether detection module is 0 for detection of the data length of the message of described virtual interface transmission, if then described message is control message; If not, then described message adds data message for control.
10. virtual interface inking device according to claim 6 is characterized in that, described check code is cyclic redundancy check (CRC) code.
CN201210367102.8A 2012-09-27 2012-09-27 Virtual interface configuration method and device Active CN102902542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210367102.8A CN102902542B (en) 2012-09-27 2012-09-27 Virtual interface configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210367102.8A CN102902542B (en) 2012-09-27 2012-09-27 Virtual interface configuration method and device

Publications (2)

Publication Number Publication Date
CN102902542A true CN102902542A (en) 2013-01-30
CN102902542B CN102902542B (en) 2016-06-01

Family

ID=47574789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210367102.8A Active CN102902542B (en) 2012-09-27 2012-09-27 Virtual interface configuration method and device

Country Status (1)

Country Link
CN (1) CN102902542B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549108A (en) * 2003-05-07 2004-11-24 中兴通讯股份有限公司 Method for realizing communication process zero copy information queue
CN1811717A (en) * 2006-01-10 2006-08-02 杭州东信灵通电子实业公司 Universal interprocess communication achieving method
US7146618B1 (en) * 1997-11-10 2006-12-05 Microsoft Corporation Simple object access protocol
CN101441566A (en) * 2008-11-18 2009-05-27 腾讯科技(深圳)有限公司 Embedded type platform and method for dynamically linking program on the same
CN101582031A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Linked list management system based on structured language and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7146618B1 (en) * 1997-11-10 2006-12-05 Microsoft Corporation Simple object access protocol
CN1549108A (en) * 2003-05-07 2004-11-24 中兴通讯股份有限公司 Method for realizing communication process zero copy information queue
CN1811717A (en) * 2006-01-10 2006-08-02 杭州东信灵通电子实业公司 Universal interprocess communication achieving method
CN101441566A (en) * 2008-11-18 2009-05-27 腾讯科技(深圳)有限公司 Embedded type platform and method for dynamically linking program on the same
CN101582031A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Linked list management system based on structured language and method

Also Published As

Publication number Publication date
CN102902542B (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN103312661A (en) Method and device for service accessing
CN103188245A (en) Fight game server system
CN105323229A (en) CPE-based data transmission method, network element, platform and system
CN103647820A (en) Arbitration method and arbitration apparatus for distributed cluster systems
CN102724101A (en) Message forwarding method and message forwarding system, and relay agent device
CN110278161A (en) Message diversion method, apparatus and system based on User space protocol stack
CN103207965A (en) Method and device for License authentication in virtual environment
CN112528307A (en) Service request checking method and device, electronic equipment and storage medium
CN104113435A (en) Method and device for generating identifier
CN105573733A (en) Communication method for browser and web front end and web front end and system
CN101854401A (en) Data transmission equipment and method and data synchronization method
CN111538594A (en) Order ID generation method, device, equipment and medium based on distributed system
CN104572994B (en) Method and apparatus for searching for data
CN103812953A (en) Communication interface system of micro-control unit and ARM (advanced RISC (reduced instruction-set computer) machines) processor
CN101571811A (en) Information transmission method and device thereof
CN107249038A (en) Business datum retransmission method and system
CN107391119A (en) A kind of horizontal/vertical screen implementation method and device
CN103312614A (en) Multicast message processing method, line card and communication device
CN101594592B (en) Method and device for sending messages based on different software platforms
CN104679489A (en) System and method for internally setting web browser in online game client side
CN102902542A (en) virtual interface configuration method and device
CN111294220B (en) Nginx-based network isolation configuration method and device
CN101201755A (en) Method, system and equipment for managing software module of digital receiving terminal
CN106709060B (en) Data sharing method and system
CN114757159A (en) Packaging development method and system of multifunctional data table component

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 516006 community 37, Zhongkai high tech Zone, Huizhou, Guangdong

Patentee after: Tongli Technology Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. 19 district

Patentee before: TONLY ELECTRONICS HOLDINGS Ltd.