Internet Direct (Indy) Version 9.0.1 Beta
TIdInAddr
Represents an IP address for protocol stack functions.

TIdInAddr = record
  case integer of
    0: (S_un_b: TIdSunB;);
    1: (S_un_w: TIdSunW;);
    2: (S_addr: longword;);
  end;
Description
TIdInAddr is a variant record type used to represent an IP address in a form required by low-level socket functions. TIdInAddr provides a flexible method for accessing the differing representations of the 32-bit IP address.

S_un_b is a TIdSunB member that represents the IP address as 4 Byte values.

S_un_w is a TIdSunW member that represents the IP address as 2 Word values.

S_addr is a LongWord member that represents the 32-bit IP address.

TIdInAddr is used internally in Indy.