Functions are defined in the IDL file using this syntax:
[type]
int dfcFunc(funcSig);
Five functions types are supported by Impact:
init – defines the function that the application calls for data initialization.
deinit – defines the function that the application calls during deinitialization for data cleanup.
acquire – uses in a client (acquire) application as an entry point to call other defined DFCs. Each application can contain only one acquire function. acquire functions do not accept arguments, and return an integer.
client – defines the DFCs made by this application (client or server). Client functions accept any number of arguments, along with the flavor associated with the DFC. This function returns an integer.
server – defines the DFCs serviced by this application (server only). Server functions accept any number of arguments, and return an integer.
You can use any literal to define your functions and arguments, but the following keywords cannot be used as function names: Initialize, Finalize, Acquire, IpcRequest, ProcessDfc, GetThis.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |