9.4. Creating RPCs

The steps that you must follow to create an RPC server, as well as an RPC client that can communicate with it, are fairly involved. The first time you see it, the whole sequence can be rather intimidating. In this section we will walk through the steps using a simple example program. This will let you try the process once and get the whole thing working on your network (or on a single machine). The next section explains all of the terminology and steps in detail.

Start by creating the code for the RPC server. In this example, the server will contain one function called SumUp. This function accepts an integer, and then calculates the sum of all of the integers between one and that value. Therefore, if you call SumUp with the ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.