EXAMPLE 4–2 rusers Program Using Simplied Interface .......................................................... 75
EXAMPLE 4–3 xdr_simple Routine .................................................................................................. 78
EXAMPLE 4–4 xdr_varintarr Syntax Use ...................................................................................... 79
EXAMPLE 4–5 xdr_vector Syntax Use ............................................................................................ 80
EXAMPLE 4–6 xdr_reference Syntax Use ...................................................................................... 80
EXAMPLE 4–7 time_prot.h Header File ......................................................................................... 81
EXAMPLE 4–8 Client for Trivial Date Service ..................................................................................82
EXAMPLE 4–9 Server for Trivial Date Service ................................................................................. 83
EXAMPLE 4–10 Client for Time Service, Intermediate Level ........................................................... 85
EXAMPLE 4–11 Server for Time Service, Intermediate Level .......................................................... 86
EXAMPLE 4–12 Client for RPC Lower Level ...................................................................................... 88
EXAMPLE 4–13 Server for RPC Lower Level ...................................................................................... 90
EXAMPLE 4–14 Client for Bottom Level ............................................................................................ 92
EXAMPLE 4–15 Server for Bottom Level ............................................................................................ 92
EXAMPLE 4–16 RPC Client Handle Structure ................................................................................... 93
EXAMPLE 4–17 Client Authentication Handle .................................................................................. 94
EXAMPLE 4–18 Server Transport Handle .......................................................................................... 94
EXAMPLE 4–19 Simple Program Using Raw RPC ............................................................................ 96
EXAMPLE 4–20 Remote Copy (Two-Way XDR Routine) ................................................................ 98
EXAMPLE 4–21 Remote Copy Client Routines ................................................................................. 99
EXAMPLE 4–22 Remote Copy Server Routines ...............................................................................100
EXAMPLE 5–1 svc_run() and poll() ............................................................................................ 104
EXAMPLE 5–2 RPC Broadcast ......................................................................................................... 105
EXAMPLE 5–3 Collect Broadcast Replies .......................................................................................106
EXAMPLE 5–4 Unbatched Client ....................................................................................................107
EXAMPLE 5–5 Batched Client ..........................................................................................................108
EXAMPLE 5–6 Batched Server .........................................................................................................109
EXAMPLE 5–7 AUTH_SYS Credential Structure .............................................................................. 111
EXAMPLE 5–8 Authentication Server .............................................................................................111
EXAMPLE 5–9 AUTH_DES Server ..................................................................................................114
EXAMPLE 5–10 rpc_gss_seccreate() ...........................................................................................120
EXAMPLE 5–11 rpc_gss_set_defaults () ................................................................................... 121
EXAMPLE 5–12 rpc_gss_set_svc_name() .....................................................................................122
EXAMPLE 5–13 rpc_gss_get_principal_name() ........................................................................122
EXAMPLE 5–14 Getting Credentials .................................................................................................123
EXAMPLE 5–15 Server Handle for Two Versions of Single Routine .............................................130
Examples
ONC+ Developer's Guide • December, 200218