DCE for the HP e3000 (B3821-90003)

62 Chapter7
Programming with RPC 1.2.1 on MPE/iX
void remote_sleep
(
/* [in] */ handle_t h, /* Use explicit binding */
/* [in] */ ndr_long_int time /* Seconds to sleep */
)
{
PRINT_FUNC(PRINT_HANDLE, "Enter remote_sleep(%d) manager\n", time);
/*
* This is a mind-numbingly simple manager ...
*/
(void) sleep (time);
PRINT_FUNC(PRINT_HANDLE, "Return from remote_sleep(%d) manager\n", time);
return;
}
/* server.c
***************************************************************************
* This is the server program for the basic sleeper sample application. It
* will register the interface named "sleeper" with the local RPC runtime
* and with the endpoint mapper daemon (rpcd) on the local host. It then
* listens for incoming requests and serves each request in a separate
* thread. The manager function (see manager.c) is invoked to serve the
* requests after the inbound arguments are unmarshalled.
***************************************************************************
*/
/*
* (c) Copyright 1992, 1993, 1994 Hewlett-Packard Co.
*/
/*
* @(#)HP DCE/3000
* @(#)Module: server.c
*/
#include <pthread.h> /* POSIX threads facility */
#include <stdlib.h> /* Standard POSIX defines */
#include <strings.h> /* str*() routines */
#include <stdio.h> /* Standard IO library */