|
|
1.1 ! root 1: /**************************************************************************** ! 2: Microsoft RPC Version 1.0 Alpha ! 3: October 1991 ! 4: Hello1 Example ! 5: ! 6: FILE: hello1\client.c ! 7: USAGE: client ! 8: PURPOSE: Client side of RPC distributed application hello1 ! 9: FUNCTIONS: main() - makes remote procedure call to HelloProc1 ! 10: ! 11: COMMENTS: This version of the distributed application that ! 12: prints "hello, world" on the server features automatic binding. ! 13: The client main program, below, does not include any code ! 14: relating to remote procedure call. It simply calls the ! 15: remote procedure as though it were a local procedure. ! 16: ****************************************************************************/ ! 17: #include <stdlib.h> ! 18: #include <windows.h> ! 19: #include <string.h> ! 20: #include <stdio.h> ! 21: #include <ctype.h> ! 22: ! 23: #include <rpc.h> ! 24: #include "hello1.h" // RPC data for this interface ! 25: ! 26: void main(void) ! 27: { ! 28: printf("This application requires the locator service.\n"); ! 29: printf("The locator service is not provided with RPC V1.0 Alpha.\n"); ! 30: exit(0); ! 31: ! 32: HelloProc1(); // perform remote processing ! 33: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.