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

TSockAddr

General socket adress record

Declaration

Source position: socketsh.inc line 85

type TSockAddr = packed record

  case Integer of

    0: (

        sa_family: sa_family_t;

  

General socket address: Address family

        sa_data: array [0..13] of Byte;

  

General socket address: Address data

      );

    1: (

        sin_family: sa_family_t;

        sin_port: cushort;

        sin_addr: in_addr;

        sin_zero: array [0..7] of Byte;

      );

end;

Description

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