Вниз
Скачать: CL | DM;

Проблема с GetHostByName   Найти похожие ветки 

← →
chernoruk ©   (2002-04-25 20:45) [0]

Type
pHostInfo=^thostInfo;
ThostInfo = record
h_name: PChar;
h_aliases: ^PChar;
h_addrtype: Smallint;
h_length: Smallint;
h_addr_list: ^PChar;
end;
...
var
host :pHostInfo;
address :integer;
begin
host:=gethostbyname(pChar("localhost"));
address:=host^.h_addr_list ????????(что писать дальше, чтоб в результате получить 127.0.0.1)
end;


← →
Song ©   (2002-04-26 08:22) [1]

String:=inet_ntoa(PInAddr(host^.h_addr_list)^);


← →
chernoruk ©   (2002-04-29 07:38) [2]

А что такое PInAddr?



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.008 c
1-88932
angelcom
2002-06-15 11:00
2002.06.27
Господа!!! Помогите новичку, плз...


14-89010
antistatic
2002-05-25 20:57
2002.06.27
Какого хрена мои ветки удаляются???


1-88859
Shrek
2002-06-08 00:08
2002.06.27
Печать из дельфи


1-88827
don_dampster
2002-06-14 10:33
2002.06.27
SysTray


3-88697
roadstar
2002-06-01 11:12
2002.06.27
TADOX




   Наверх