Indy 9 | Content | Index | Reference

TIdInAddr
Unit: IdStack
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;

Unit
IdStack
Members
S_un_b: TIdSunB;
Member variable.
S_un_w: TIdSunW;
Member variable.
S_addr: longword;
Member variable.
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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.