Skip to content

sockaddr_in

Internet socket address record.

Declaration

Source position: socketsh.inc line 70

type
  sockaddr_in = packed record
    sin_family: sa_family_t = cushort;
    sin_port: cushort = cuint16;
    sin_addr: in_addr = packed record
      case Boolean of
        True: (
          s_addr : cuint32;
        );
        False: (
          s_bytes : packed Array[1..4] of Byte;
        );
    end;
    xpad: Array[0..7] of AnsiChar = char;
  end;

Description

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