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';
Содержание Назад Вперед