6
Contents
Binding the Endpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
Set up the Data Transfer Environment. . . . . . . . . . . . . . . . . . . . . . . .
36
Request the Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37
Confirm the Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
Step 3. Exchanging Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
Step 4: Release the Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Requesting the Release. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Confirm the Release Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Step 5: Closing the Communication Endpoint . . . . . . . . . . . . . . . . . . . .
44
4.
Programming Guide
Summary of Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
46
1. Prepare the System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
48
2. Manage the A/P Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
49
Determine Initiator and Responder Roles. . . . . . . . . . . . . . . . . . . . . .
49
Determine Address Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
Negotiating Application and Presentation Contexts . . . . . . . . . . . . .
51
Portability, Migration Considerations . . . . . . . . . . . . . . . . . . . . . . . . .
52
3. Managing Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
Control Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
User Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
Multiple Sends and Receives of Data. . . . . . . . . . . . . . . . . . . . . . . . . .
54
User Data Encoding/Decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
55
4. Using Synchronous vs. Asynchronous Mode. . . . . . . . . . . . . . . . . . . .
56
Synchronous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
56
Asynchronous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
56
Changing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
57
5. Managing Multiple Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
58