Host filter
The diagram shown in Figure 4-3
states "none specified" for the host
specification—the host filter.
So what happens now? Well, a host filter is usually one or more
<host/> tags containing
hostnames to which the component instance will “answer.” It’s a way of
specifying that packets destined for a certain hostname will be received
by that component instance.
However, if there are no
<host/> tags specified
as in this c2s example, then the component instance’s identification
is taken as the hostname specification. In other words, the
<service id="c2s"> declaration
in this example, coupled with the
lack of any explicit <host/>
tag, implies a host filter of c2s.
This component instance wants to receive all packets with
addresses that have c2s as the hostname. It’s the equivalent of this
host filter specification:
<host>c2s</host>
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access