OSF DCE Application Development Guide--Core Components

OSF DCE Application Development Guide—Core Components
/*
* Export ourselves into the CDS namespace.
*/
rpc_ns_binding_export(
rpc_c_ns_syntax_default, (unsigned_char_p_t) argv[1],
greetif_v1_0_s_ifspec, binding_vector, NULL, &status);
ERROR_CHECK(status, "Can’t export into CDS namespace");
11.5.1.7 Listening for Calls
To begin listening for remote procedure call requests, the server calls
rpc_server_listen().
/*
* Start listening for calls.
*/
printf("Listening...\n");
rpc_server_listen(rpc_c_listen_max_calls_default, &status);
ERROR_CHECK(status, "Can’t start listening for calls");
11.5.2 The greet_manager.c Source Code
The greet_manager.c module includes greet.h and it also defines the routine greet,a s
follows:
11 22 Tandem Computers Incorporated 124245