DCE Application Programming Guide
Sample Application Listings
HP NonStop DCE Application Programming Guide—429551-003
A-18
The Server File
Figure A-11. The Server File in a Release 1.1 Port (page1of3)
/* infpls_s_v11.c/
/*
* (c) Copyright 1993 Harold W. Lockhart and Frederic M. Oldfield
* ALL RIGHTS RESERVED
*
* Permission is hereby granted to use, copy, modify and freely
* distribute this software for any purpose without fee, provided
* that the above copyright notice and this permission notice are
* retained in it.
*
* The authors make no representations about the suitability of
* this software for any purpose. It is provided "as is" without
* express or implied warranty. The authors assume no liability,
* direct or consequential, resulting from its use.
*/
#include <stdio.h>
#include <sys/utsname.h>
#if defined (_XOPEN_SOURCE)
#include <errno.h> /* (a) */
#else
#include <sys/errno.h>
#endif
#include <dce/dced.h> /* (A1) */
#include <dce/pthread_exc.h>
#include <dce/dcesvcmsg.h> /* (B1) */
#include <dce/dce_msg.h>
#include "dceinfsvc.h"
#include "dceinfmsg.h"
#include "dceinfmac.h"
#include "infpls.h"
#include "errmac_s.h" /* (B2) */
dce_svc_handle_t inf_svc_handle; /* (B3) */
void init_serviceability( char *program_name ); /* (B4) */
/***** Server Control *****/
main( int argc, char *argv[] )
{
unsigned32 max_threads;
error_status_t status;
server_t *server_conf; /* (A2) */
dce_server_register_data_t register_data;
dce_server_handle_t *server_handle;
if (argc > 2 )
{
fprintf(stderr, "Usage: %s maximum_threads\n", argv[0] );
exit(1);
}