help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] 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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505