|
|
1.1 root 1: /****************************************************************************
2: Microsoft RPC Version 1.0 Alpha
3: October 1991
4: Adder1 Example
5:
6: FILE: adder1\procs.c
7: PURPOSE: Remote procedures that are linked with the server
8: side of RPC distributed application adder1
9: FUNCTIONS: AdderProc1() - adds two short integers,
10: returns a short integer
11: COMMENTS:
12: This distributed application adds two short integers and
13: returns the result. This application manages its own
14: connection to the server. It uses the binding handle
15: hRpcAdder, defined in the file adder1.h.
16: ****************************************************************************/
17: #include <stdio.h> // printf
18:
19: short AdderProc1(short i1, short i2)
20: {
21: printf("%hu + %hu = %hu\n", i1, i2, i1 + i2);
22: return(i1 + i2);
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.