to chenlili:
难得你还记得我,难得啊。(小猪激动的口吐白沫,一下子晕倒在地上...口中喃喃自语:阿尔派、阿尔派)
不过我记得我第一次接触到gatakeeper的概念好像是在我用delphi的时代,
不过我仔细看了看delphi的帮助,却果然没有提到gatekeeper,真是奇怪了。
不过看看delphi的帮助,到也有收获,估计可以解决heiniu的问题,帮助如下,
其实就是copy的delphi的帮助,就算灌水吧。
关键是//////////之前的东西。
Using an agentaddr file
Consider the two Smart Agents depicted
in the following figure. The Smart Agent
on network #1 listens for broadcast
messages using the IP address 199.10.9.5.
The Smart Agent on network #2 listens
using the IP address 101.10.2.6.
The Smart Agent on network #1 can contact
the Smart Agent on network #2 if it can find
a file named agentaddr which
contains the following line:
101.10.2.6
The Smart Agent looks for this file in the
directory specified by the VBROKER_ADM
environment variable.
//////////////////////////////////////////////////////
Using a multi-homed host
When you start the Smart Agent on a host
that has more than one IP address (known
as a multi-homed host), it can provide a
powerful mechanism for bridging objects
located on separate local networks. All
local networks to which the host is connected
can communicate with a single Smart Agent,
effectively bridging the local networks without
an agentaddr file.
However, on a multi-homed host, the Smart
Agent can抰 determine the correct subnet
mask and broadcast address values. You
must specify these values in a localaddr
file. You can obtain the appropriate
network interface values of the localaddr
file by accessing the TCP/IP protocol
properties from the Network Control Panel.
If your host is running Windows NT, you
can use the ipconfig command to get these
values.
The localaddr file contains a line for
every combination of IP address, subnet
mask, and broadcast address that the
Smart Agent can use. For example, the
following lists the contents of a localaddr
file for a Smart Agent that has two IP addresses:
216.64.15.10 255.255.255.0 216.64.15.255
214.79.98.88 255.255.255.0 214.79.98.255
You must also set the OSAGENT_LOCAL_FILE
environment variable to the fully qualified
path name of the localaddr file. This allows
the Smart Agent to locate this file.