UNIX Free Pascal


         

returns the local host address


(* The inet_lnaof() function returns the local host address part of the

Internet address in. The local host address is returned in local host

byte order. *)

function inet_lnaof(n:in_addr):in_addr_t;cdecl;external 'c';



(* The inet_netof() function returns the network number part of the Inter-

net Address in. The network number is returned in local host byte

order. *)

function inet_netof(n:in_addr):in_addr_t;cdecl;external 'c';



(* sendto - .

send, sendto, sendmsg

. send ,

, sendto sendmsg

. *)

function sendto(sock:longint;var addr;addrlen,flags:longint;

var sato:tsockaddr;tolen:longint):longint;cdecl;external 'c';



(* recvfrom ,

, ,

. *)

function recvfrom(sock:longint;var addr;addrlen,flags:longint;

var from:tsockaddr;var fromlen:longint):longint;cdecl;external 'c';

(* character classification routines *)

function isalnum(c:integer):boolean;cdecl;external 'c';

function isalpha(c:integer):boolean;cdecl;external 'c';

function isascii(c:integer):boolean;cdecl;external 'c';

function isblank(c:integer):boolean;cdecl;external 'c';

function iscntrl(c:integer):boolean;cdecl;external 'c';

function isdigit(c:integer):boolean;cdecl;external 'c';

function isgraph(c:integer):boolean;cdecl;external 'c';

function islower(c:integer):boolean;cdecl;external 'c';

function isprint(c:integer):boolean;cdecl;external 'c';

function ispunct(c:integer):boolean;cdecl;external 'c';

function isupper(c:integer):boolean;cdecl;external 'c';

function isxdigit(c:integer):boolean;cdecl;external 'c';