Internet Direct (Indy) Version 9.0.2 Beta
TIpStruct
Provides storage for the components of an IP address or network mask.

TIpStruct = record
  case integer of
    0: (Byte1: byte;
        Byte2: byte;
        Byte3: byte;
        Byte4: byte;);
    1: (FullAddr: Longword;);
  end;
Description
TIpStruct is a variant record used to store IP address values. TIpStruct has the following format:

+-------+-------+-------+-------+
| Byte4 | Byte3 | Byte2 | Byte1 | (Byte variant)
+-------+-------+-------+-------+
|           FullAddr            | (LongWord variant)
+-------------------------------+

TIpStruct provides access to the value of the IP address as a sequence of Byte values using Byte1, Byte2, Byte3, and Byte4. TIpStruct also provides access to the value of the IP address as a LongWord value using FullAddr.

TIpStruct is used by TIpProperty and the functions IP and StrToIP to store IP addresses.