|
Internet Direct (Indy) Version 9.0.1 Beta
|
TIpStruct = record
case integer of
0: (Byte1: byte;
Byte2: byte;
Byte3: byte;
Byte4: byte;);
1: (FullAddr: Longword;);
end;
+-------+-------+-------+-------+ | 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.