HP X.25/9000 Programmer's Guide

Contents
3
1. Introduction to X.25 Programmatic Access
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
X.25 Product Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Using BSD IPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Using BSD IPC and X.25 With the Client/Server Model. . . . . . . . . . . .5
Getting Started with X.25 Programmatic Access . . . . . . . . . . . . . . . . . . .7
Example Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
2. X.25 Addressing
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Levels of Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Preparing Address Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Addressing Options for Clients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Addressing Options for Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
Call-matching by X.25 Interface Name. . . . . . . . . . . . . . . . . . . . . . . . .16
Call-matching by Called X.121 Address . . . . . . . . . . . . . . . . . . . . . . . .16
Call-matching by Subaddress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Call-matching by Protocol ID. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Using Wildcard Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Wildcard Addresses in the x25ifname[] Field. . . . . . . . . . . . . . . . . . . .19
Wildcard Addresses in the x25_host[] Field . . . . . . . . . . . . . . . . . . . . .19
Setting a Wildcard Protocol ID Local Address Mask . . . . . . . . . . . . . .20
Address Space Conflicts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
How to Avoid Address Conflicts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
3. Establishing and Terminating a Socket Connection
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
36960-90061.bk Page 3 Friday, November 10, 2000 3:42 PM