[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Sockets' (#rtl)

TInetSockAddr

Internet socket address record

Declaration

Source position: socketsh.inc line 101

type TInetSockAddr = packed record

  case Boolean of

    false: (

        sin_family: sa_family_t;

        sin_port: cushort;

        sin_addr: in_addr;

        xpad: array [0..7] of Char;

      );

    true: (

        family: sa_family_t;

  

Address family

        port: cushort;

  

Port number

        addr: cardinal;

  

IP address

        pad: array [0..7] of Char;

  

Pad data. Do not use.

      );

end;

Description

TUnixSockAddr is used to store a INET socket addres for the Bind, Recv and Send calls.