RSC/MP 7.2 Programming Manual

Contents
HP NonStop Remote Server Call (RSC/MP) Programming Manual522360-004
ii
3. API Functions and Options
3. API Functions and Options
Application Program Interface Functions 3-1
API Options 3-2
Customizing Functions Using Options 3-2
Using Option Definition Files 3-3
Loading Options 3-4
Clearing and Destroying Options 3-4
Using Default Options 3-4
Using API Functions to Manage Options 3-5
Connecting to the TDP 3-6
Beginning and Ending Sessions 3-6
Beginning and Ending Transactions 3-6
Processing I/O Using Waited and Nowaited Calls 3-6
Example: Waited I/O 3-7
Example: Nowaited I/O 3-8
Checking and Replying to Unsolicited Messages 3-8
Asynchronous Notification 3-9
Processing Errors 3-9
Basic API Functions and Options 3-9
4. RSC/MP Sessions
Session Overview 4-1
Beginning and Ending a Session 4-1
Session Types 4-2
The Interprocess Session Type 4-2
The IDS Session Type 4-3
Interprocess and IDS Session Comparison 4-5
Unsolicited Messages 4-5
Validating a Session 4-5
5. Application Design
Design Considerations 5-1
Using the RSC/MP Thread-Safe Feature 5-1
Resource Sharing Between Threads 5-2
Restrictions 5-3
Using TMF to Ensure Data Integrity 5-3
Waited and Nowaited I/O 5-3
Asynchronous I/O Completion Notification 5-4
UNIX Signal Handling 5-5