Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.11.21;
Скачать: CL | DM;

Вниз

resolve dns address   Найти похожие ветки 

 
странно...   (2002-09-25 17:09) [0]

может ктото знает как урл типа www.micro$oft.ru преобразовать в ай пи адрес?


 
Ghost. ©   (2002-09-25 17:11) [1]

через DNS


 
странно...   (2002-09-25 17:44) [2]

как а не через что


 
Digitman ©   (2002-09-26 10:26) [3]

The Windows Sockets gethostbyname function gets host information corresponding to a hostname.

struct hostent FAR * gethostbyname (

const char FAR * name
);


Parameters

name

[out] A pointer to the null terminated name of the host.



Remarks

gethostbyname returns a pointer to a hostent structure. The contents of this structure correspond to the hostname name.
The pointer which is returned points to a structure which is allocated by Windows Sockets. The application must never attempt to modify this structure or to free any of its components. Furthermore, only one copy of this structure is allocated per thread, and so the application should copy any information which it needs before issuing any other Windows Sockets function calls.

gethostbyname does not resolve IP address strings passed to it. Such a request is treated exactly as if an unknown host name were passed. An application with an IP address string to resolve should use inet_addr to convert the string to an IP address, then gethostbyaddr to obtain the hostent structure.


 
DEMETRIUSSoftware   (2002-09-26 19:14) [4]

Если у тебя Delphi6 то покапайся в компонентах Indy
или зайди в пример Indy и посмотри там.
Папка по моему называеться DNSResolver



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

Текущий архив: 2002.11.21;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.017 c
6-69468
Azbul
2002-09-26 10:33
2002.11.21
как програмно сделать чтобы народ в инет ходит не мог?


6-69467
Troll
2002-09-26 16:00
2002.11.21
Дело есть!


1-69262
S_Dimon
2002-11-11 23:34
2002.11.21
Ну вот нет у TLabel такого ивента


1-69385
s_karm
2002-11-10 12:13
2002.11.21
инсталяция


1-69418
Holy
2002-11-11 11:42
2002.11.21
Помогите создать класс, принимающий сообщения