Unit Sockets

From Ultibo.org
Revision as of 04:45, 2 September 2016 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


This unit includes the interface normally provided by the sockets unit in the FPC package rtl-extras. The rtl-extras package does not build the sockets unit for target Ultibo as this unit will always be available to provide the required functionality for any other package that uses it.

Constants


To be documented

Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]
procedure SocketsInit;
Description: To be documented


[Expand]
function SocketsStart:LongWord;
Description: To be documented


[Expand]
function SocketsStop:LongWord;
Description: To be documented


[Expand]
procedure SocketsAsyncStart(Data:Pointer);
Description: To be documented


Sockets functions

[Expand]
function SocketError: cint;
Description: To be documented


[Expand]
function Socket(Domain,SocketType,Protocol:Longint):Longint;
Description: To be documented


[Expand]
function Send(Sock:Longint; const Buf; BufLen,Flags:Longint):Longint;
Description: To be documented


[Expand]
function SendTo(Sock:Longint; const Buf; BufLen,Flags:Longint; var Addr; AddrLen : Longint):Longint;
Description: To be documented


[Expand]
function Recv(Sock:Longint; var Buf; BufLen,Flags:Longint):Longint;
Description: To be documented


[Expand]
function RecvFrom(Sock : Longint; var Buf; Buflen,Flags : Longint; var Addr; var AddrLen : longint) : longint;
Description: To be documented


[Expand]
function Connect(Sock:Longint; const Addr; Addrlen:Longint):Boolean;
Description: To be documented


[Expand]
function Shutdown(Sock:Longint; How:Longint):Longint;
Description: To be documented


[Expand]
function Bind(Sock:Longint; const Addr; AddrLen:Longint):Boolean;
Description: To be documented


[Expand]
function Listen(Sock,MaxConnect:Longint):Boolean;
Description: To be documented


[Expand]
function Accept(Sock:Longint; var Addr; var Addrlen:Longint):Longint;
Description: To be documented


[Expand]
function GetSocketName(Sock:Longint; var Addr; var Addrlen:Longint):Longint;
Description: To be documented


[Expand]
function GetPeerName(Sock:Longint; var Addr; var Addrlen:Longint):Longint;
Description: To be documented


[Expand]
function GetSocketOptions(Sock,Level,OptName:Longint; var OptVal; var optlen:longint):Longint;
Description: To be documented


[Expand]
function SetSocketOptions(Sock,Level,OptName:Longint; const OptVal; optlen:longint):Longint;
Description: To be documented


[Expand]
function SocketPair(Domain,SocketType,Protocol:Longint; var Pair:TSockArray):Longint;
Description: To be documented


[Expand]
function CloseSocket(Sock:Longint):Longint;
Description: To be documented


[Expand]
function Inet_Addr(cp: PChar): Longint;
Description: To be documented


[Expand]
function Inet_Ntoa(inaddr: TInAddr): PChar;
Description: To be documented


[Expand]
function Inet_Pton(family: Longint; Source: PChar; Dest: Pointer): Longint;
Description: To be documented


[Expand]
function Inet_Ntop(family: Longint; Source: Pointer; Dest: PChar; Size: Longint): PChar;
Description: To be documented


[Expand]
function GetHostByAddr(addr: Pointer; len, family: Longint): PHostEnt;
Description: To be documented


[Expand]
function GetHostByName(name: PChar): PHostEnt;
Description: To be documented


[Expand]
function GetHostName(name: PChar; len: Longint): Longint;
Description: To be documented


[Expand]
function GetNetByAddr(addr: Pointer; len, Struct: Integer): PNetEnt;
Description: To be documented


[Expand]
function GetNetByName(name: PChar): PNetEnt;
Description: To be documented


[Expand]
function GetServByPort(port: Longint; proto: PChar): PServEnt;
Description: To be documented


[Expand]
function GetServByName(name, proto: PChar): PServEnt;
Description: To be documented


[Expand]
function GetProtoByNumber(proto: Longint): PProtoEnt;
Description: To be documented


[Expand]
function GetProtoByName(name: PChar): PProtoEnt;
Description: To be documented


[Expand]
function GetAddrInfo(HostName, ServName: PChar; Hints: PAddrInfo; var Addr: PAddrInfo): Longint;
Description: To be documented


[Expand]
procedure FreeAddrInfo(ai: PAddrInfo);
Description: To be documented


[Expand]
function GetNameInfo(sa: PSockAddr; salen: Longint; host: PChar; hostlen: DWORD; serv: PChar; servlen: DWORD; flags: Longint): Longint;
Description: To be documented


Return to Unit Reference