Download User Manual
Transcript
Chapter 5 Remote Procedure Call Interface Timeouts The header file imex.h contains default time-out values for each of the three RPC services. These time-outs are used to specify the maximum allowable time in seconds an RPC may execute before the RPC is considered to fail. The import and export service can take longer than the defaults, which can cause the procedure to terminate prematurely with a time-out error. If this occurs, modify the time-out values. The defaults are currently defined in imex.h as follows: # define VERIFY_TIMEOUT 5 # define IMPORT_TIMEOUT 60 # define EXPORT_TIMEOUT 120 /* Shouldn’t take long at all */ /* Depends on number of records/file*/ /* Depends on complexity of the query*/ Inventory of source code supplied with Import/Export The following files comprise the Import/Export Interface RPC Toolkit: /usr/rpc/imex.h /usr/rpc/cli_bidgen.c /usr/rpc/cli_main.c /usr/rpc/cli_verify.c /usr/rpc/cli_import.c /usr/rpc/cli_export.c /usr/rpc/cli_create.c /usr/rpc/imex_xdr.c /usr/rpc/makefile.cli Table 9. Source code file types File type Description imex.h: This is a common header used by client and server. It contains definitions of the data structures used for data transfer as well as ANSI prototypes for all functions used within the subsystem. cli_*.c: This is a sample program whose source code is made available to the customer. We provide a front-end to each procedure which can be customized for the particular application imex_xdr.c This file contains all of the custom-written XDR routines to handle data transfer. These functions are common to client and server. Although it is unlikely that any of these routines will need modification on the client machine, they have been provided to aid in porting to new architectures. 43