HP X.25/9000 Programmer's Guide
Chapter 2 19
X.25 Addressing
Using Wildcard Addressing
Using Wildcard Addressing
Wildcard addressing lets a single listen socket connect to incoming calls
using a variety of addresses and protocol IDs.
NOTE Wildcard addresses are used in bind() calls only. They cannot be used in
connect() calls.
When an incoming CALL REQUEST packet is received, the x25addrstr
structure fields are checked in the following order:
x25ifname
,
x25_host
, and then
x25pid
. Refer to the sections below for instructions
on using wildcards for each of these fields.
Wildcard Addresses in the x25ifname[] Field
The
x25ifname[]
field has only one form of wildcard addressing. If you
specify the null string (“\0”), the specified address will match the X.121
address of any interface connected to your system. If you specify an
interface name, only calls from that one interface will match.
Wildcard Addresses in the x25_host[] Field
A wildcard address in the
x25_host[]
field can be either the null string
or a string composed wholly or partly of wildcard characters. Note that
the null string matches only the X.121 address of the interface on the
receiving end, not the subaddress.
Valid wildcard characters are the question mark (“?”) and the asterisk
(“*”). These characters can be used in combination with the decimal
digits normally specified in this field. When used in the
x25_host
field
and matched with an incoming call’s called address field, they have the
properties described in table below.
Table 2-1 Wildcard Characters
Character Meaning
36960-90061.bk Page 19 Friday, November 10, 2000 3:42 PM










