Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2006.01.15;
Скачать: [xml.tar.bz2];

Вниз

Расскажите плизз, про 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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.011 c
5-1121242211
Alexander_VC
2005-07-13 12:10
2006.01.15
Подключение редактора компонента cxGrid в Dream designer


2-1135358567
Gorger
2005-12-23 20:22
2006.01.15
Что такое OEM?


14-1134904770
Bogdan1024
2005-12-18 14:19
2006.01.15
колонки


3-1132322433
alpine
2005-11-18 17:00
2006.01.15
Можно ли добавить поле из третьей таблицы с помощью SQL?


14-1134634406
Progger
2005-12-15 11:13
2006.01.15
Мороженые пельмени.





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский