OSF DCE Application Development Guide--Introduction and Style Guide
OSF DCE Application Development Guide—Introduction and Style Guide
objectname_vector_t *);
boolean32 is_valid_principal(unsigned_char_t *_1,
unsigned_char_t *_2,
unsigned32 *_3);
void bind_to_object(unsigned_char_t *,
rpc_if_handle_t,
uuid_t *,
handle_t *,
uuid_t *,
uuid_t *,
unsigned_char_t **,
unsigned_char_t **,
error_status_t *);
void print_error(char *_1,
error_status_t _2);
extern unsigned_char_t *malloc();
#define SGROUP "sample_servers"
/******
*
*
* main --
*
*
******/
int
main(
int argc,
char *argv[]
)
{
rpc_ns_handle_t import_context; /* Context for importing bindings. */
rpc_binding_handle_t binding_h; /* Our binding handle. */
error_status_t status; /* For DCE library error returns. */
error_status_t rpc_remote_status; /* For remote error returns. */
idl_long_int rpc_status; /* Application-returned status from re- */
/* mote calls. */
unsigned_char_t *string_binding; /* For string binding conversions. */
unsigned_char_t *server_princ_name;
handle_t object_handle; /* For binding we get through junction. */
uuid_t object_uuid, mgr_uuid; /* Various UUIDs. */
unsigned_char_t *u_string; /* For converting UUIDs to strings. */
objectname_vector_t objectname_vector; /* For entry names read from */
/* command line. */
unsigned32 kill_server = FALSE; /* TRUE => invoker requested "kill */
/* server" option. */
idl_char server_message[TEXT_SIZE]; /* For message string returned */
/* from the server to us. */
A− 80 Tandem Computers Incorporated 124246