Click to open or copy the files for the Callback sample.
This sample demonstrates the use of the callback attribute to allow a server application to execute code on a client application. The distributed program generates a Fibonacci number with a static callback.
Main Files
File | Description |
Call.idl | Interface definition language file |
Call.acf | Application configuration file |
Callc.c | Client main program |
Calls.c | Server main program |
Callp.c | Remote procedures |
Makefile | Nmake file to build for Windows NT or Windows 95 |
Makefile.dos | Nmake file to build for MS-DOS |
This sample uses the following keywords:
atoi; callback_fibonacci; callback_fibonacci2; callback_shutdown; defined; exit; fibonacci; fibonacci2; fprintf; free; malloc; midl_user_allocate; midl_user_free; ndrclientinitializenew; ndrconvert; ndrfreebuffer; ndrgetbuffer; ndrsendreceive; ndrserverinitializenew; printf; rpcbindingfree; rpcbindingfromstringbinding; rpcexcept; rpcexceptioncode; rpcmgmtstopserverlistening; rpcmgmtwaitserverlisten; rpcraiseexception; rpcserverlisten; rpcserverregisterif; rpcserverunregisterif; rpcserveruseprotseqep; rpcstringbindingcompose; rpcstringfree; shutdown; tolower; usage