gtpa2m2s | Application Programming |
Client and server code are tied together through the use of the interface definition. The interface definition describes the set of procedures that is offered by the interface. The interface definition file is coded using the Interface Definition Language (IDL).
To create an RPC interface, you must use the IDL to define each RPC function and the format of the input and output parameters. An IDL compiler on both the client and server platforms is used to compile a .idl file, and also to generate header files and stub (C source) files. The header files are included and the stub files are linked in both the client and server application code; this code includes the required functions to convert between client and server data formats and to handle network communications between the client and the server.