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

sockaddr_in

Internet socket address record

Declaration

Source position: socketsh.inc line 64

type sockaddr_in = packed record

  case Boolean of

    false: (

        sin_family: sa_family_t;

  

Internet socket family

        sin_port: cushort;

  

Internet socket port

        sin_addr: in_addr;

  

Internet socket host address

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

  

Padding bytes

      );

    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

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.