Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.023 c
3-1131864905
KostR
2005-11-13 09:55
2006.01.15
Редактирование найденных данных.


1-1134136957
diwww
2005-12-09 17:02
2006.01.15
Как сделать недоступной кнопку Х (закрыть окно) в заголовке окна?


2-1135532931
Aleks
2005-12-25 20:48
2006.01.15
Есть каталог (папка), необходимо узнать сколько папок находится в


6-1128346174
kay
2005-10-03 17:29
2006.01.15
Как сделать, чтобы при использовании InternetConnect и прочих...


1-1134062536
Andy BitOff
2005-12-08 20:22
2006.01.15
Отображение MessageBox поверх всех окон.




   Наверх