DCE for the HP e3000 (B3821-90003)

Chapter 7 61
Programming with RPC 1.2.1 on MPE/iX
/* manager.c
***************************************************************************
* This is the server-side RPC manager function; this is the function that
* actually implements the remote procedure defined in the .idl file. The
* server stub (called by the RPC runtime) calls this function when an RPC
* request comes in for this interface.
*
* The manager function takes the arguments defined in the .idl file,
* performs its function and returns results as defined in the .idl file.
* This particular manager function does not return any results (it does not
* have any [out] parameters, nor a return value).
***************************************************************************
*/
/*
* (c) Copyright 1992, 1993, 1994 Hewlett-Packard Co.
*/
/*
* @(#)HP DCE/3000
* @(#)Module: manager.c
*/
#include <stdlib.h> /* Standard POSIX defines */
#include <stdio.h> /* Standard IO library */
#include "common.h" /* Common defs for this app */
#include "sleeper.h" /* Output from sleeper.idl */
/*
* This particular manager function simply sleeps for the number of seconds
* specified by its argument. Since the .idl file speficies use of explicit
* binding, the manager must take a binding handle as its first argument.
*
* Note: the code in this manager function must be (and is) reentrant since it
* may be running simultaneously in multiple server threads.
*/