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

Вниз

Расскажите плизз, про gethostbyaddr?   Найти похожие ветки 

 
Yuran   (2005-09-28 12:56) [0]

Расскажите как в Delphi пользоваться функцией gethostbyaddr.


 
Digitman ©   (2005-09-28 17:23) [1]

пользоваться ей так как указано в станд.справке ..

а почитать оную ты, разумеется, не сподобился ...


 
isasa ©   (2005-09-28 17:32) [2]

См.

unit WinSock; //файл $Delphi$\Source\Rtl\Win\WinSock.pas

{$EXTERNALSYM gethostbyaddr}
function gethostbyaddr(addr: Pointer; len, Struct: Integer): PHostEnt; stdcall;

MSDN

gethostbyaddr
The Windows Sockets gethostbyaddr function retrieves the host information corresponding to a network address.

struct HOSTENT FAR * gethostbyaddr (
 const char FAR       *addr,  
 int                  len,                
 int                  type                
);
Parameters
addr
[in] Pointer to an address in network byte order.
len
[in] Length of the address.
type
[in] Type of the address, such as the AF_INET address family type (defined as TCP, UDP, and other associated Internet protocols). Address family types and their corresponding values are defined in the winsock2.h header file.
Return Values
If no error occurs, gethostbyaddr returns a pointer to the HOSTENT structure. Otherwise, it returns a NULL pointer, and a specific error code can be retrieved by calling WSAGetLastError.


там, же


const
  {$EXTERNALSYM AF_INET}
  AF_INET         = 2;               { internetwork: UDP, TCP, etc. }



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

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

Наверх




Память: 0.47 MB
Время: 0.049 c
2-1135605320
kotbazilio
2005-12-26 16:55
2006.01.15
StringGrid


2-1135086695
Jumaric
2005-12-20 16:51
2006.01.15
Application


14-1134736827
Иксик
2005-12-16 15:40
2006.01.15
А я сегодня посадил дерево!


14-1135225381
konda
2005-12-22 07:23
2006.01.15
Чем потестировать компьютер?


4-1131107280
Bless
2005-11-04 15:28
2006.01.15
Копирование файлов по сети.