OSF DCE Application Development Guide--Core Components
OSF DCE Application Development Guide—Core Components
14.1 Threads of Execution in RPC Applications .......... 14-2
14.1.1 Remote Procedure Call Threads .......... 14-3
14.1.2 Cancels .................. 14-5
14.1.3 Multithreaded RPC Applications .......... 14-6
14.2 Security and RPC: Using Authenticated Remote Procedure
Calls ..................... 14-7
14.2.1 Authentication ............... 14-8
14.2.2 Authorization ................14-10
14.2.3 Authenticated RPC Routines ...........14-12
14.3 Directory Services and RPC: Using the Namespace .......14-13
14.3.1 NSI Directory Service Entries ...........14-14
14.3.2 Searching the Namespace for Binding Information .....14-27
14.3.3 Strategies for Using Directory Service Entries ......14-36
14.3.4 The Service Model for Defining Servers ........14-39
14.3.5 The Resource Model for Defining Servers ........ 14-43
Chapter 15. Writing Internationalized RPC Applications ........... 15-1
15.1 Character Sets, Code Sets, and Code Set Conversion ....... 15-2
15.2 Remote Procedure Call with Character/Code Set
Interoperability .................. 15-3
15.3 Building an Application for Character and Code Set
Interoperability .................. 15-7
15.3.1 Writing the Interface Definition File ......... 15-8
15.3.2 Writing the Attribute Configuration File ........ 15-9
15.3.3 Writing the Stub Support Routines ..........15-10
15.3.4 Writing the Server Code .............15-15
15.3.5 Writing the Client Code .............15-22
15.3.6 Writing the Evaluation Routine ...........15-27
Chapter 16. Topics in RPC Application Development ............ 16-1
16.1 Memory Management ................ 16-1
16.1.1 Using the Memory Management Defaults ........ 16-2
16.1.2 Using rpc_ss_allocate and rpc_ss_free ......... 16-2
16.1.3 Using Your Own Allocation and Free Routines ...... 16-4
16.1.4 Using Thread Handles in Memory Management ...... 16-5
16.2 Guidelines for Error Handling .............. 16-6
16.2.1 Exceptions ................. 16-6
16.2.2 The fault_status Attribute ............ 16-7
16.2.3 The comm_status Attribute ............ 16-8
16.2.4 Determining Which Method to Use for Handling
Exceptions ................. 16-8
16.2.5 Examples of Error Handling ............ 16-9
16.3 Context Handles ..................16-11
16.3.1 Context Handles in the Interface ..........16-12
16.3.2 Context Handles in a Server Manager .........16-14
16.3.3 Context Rundown ...............16-21
16.3.4 Binding and Security Information ..........16-23
16.4 Pipes ..................... 16-24
16.4.1 Input Pipes .................16-25
16.4.2 Output Pipes ................16-28
16.4.3 Pipe Summary ................16-30
viii Tandem Computers Incorporated 124245