Use this function to receive informations about a installed netword adapter. The syntax is as follows:
%System.Network(Parameter1,Parameter2)
Parameter 1 accepts the index of the network adapter. First network adapter is indexed by 0.
Parameter 2 accepts the following values:
IP - IP assigned to network adapter
IPMask - Subnet Mask assigned to network adapter
IPWINS - IP of WINS server
IPDHCP - IP of DHCP server
IPGateway - IP of gateway
Name - Description of network adapter
Type - Type of network adapter
0 = Unknown
1 = Ethernet
2 = TokenRing
3 = FDDI
4 = PPP
5 = LoopBack
6 = SLIP
Speed - Speed of network adapter measured in MBits/s
PacketsIn - Received packets measured in byte
PacketsOut - Sent packets measured in byte
Example:
%System.Network(2,Type)
This function call returns the type of network adapter indexed by 2. For example if the network adapter number 2 is a network card then the value 1 (ethernet) is returned.