Skip to content

sockaddr

Alias for TSockAddr record type.

Declaration

Source position: socketsh.inc line 84

type
  sockaddr = packed record
    case Integer of
      0: (
        sa_family : sa_family_t;
        sa_data : packed Array[0..13] of cuint8 = Byte;
      );
      1: (
        sin_family : sa_family_t;
        sin_port : cushort;
        sin_addr : in_addr;
        sin_zero : packed Array[0..7] of cuint8 = Byte;
      );
  end;

Description

sockaddr is used to store a general socket address for the FPBind, FPRecv and FPSend calls.