>gethostbyname:
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.
>gethostbyaddr:
The Windows Sockets gethostbyaddr function gets host information corresponding to an address.
struct hostent FAR * gethostbyaddr (
const char FAR * addr,
int len,
int type
);
Parameters
addr
[in] A pointer to an address in network byte order.
len
[in] The length of the address.
type
[in] The type of the address.
>WSAAsyncGetHostByName:
he Windows Sockets WSAAsyncGetHostByName function gets host information corresponding to a hostname?
asynchronous version.
HANDLE WSAAsyncGetHostByName (
HWND hWnd,
unsigned int wMsg,
const char FAR * name,
char FAR * buf,
int buflen
);
Parameters
hWnd
[in] The handle of the window which should receive a message when the asynchronous request completes.
wMsg
[in] The message to be received when the asynchronous request completes.
name
[in] A pointer to the null terminated name of the host.
buf
[out] A pointer to the data area to receive the hostent data. Note that this
must be larger than the size of a hostent structure. This is because the data
area supplied is used by Windows Sockets to contain not only a hostent structure
but any and all of the data which is referenced by members of the hostent structure.
It is recommended that you supply a buffer of MAXGETHOSTSTRUCT bytes.
>WSAAsyncGetHostByAddr:
The Windows Sockets WSAAsyncGetHostByAddr function gets host information corresponding to an address?
asynchronous version.
HANDLE WSAAsyncGetHostByAddr (
HWND hWnd,
unsigned int wMsg,
const char FAR * addr,
int len,
int type,
char FAR * buf,
int buflen
);
Parameters
hWnd
[in] The handle of the window which should receive a message when the asynchronous request completes.
wMsg
[in] The message to be received when the asynchronous request completes.
addr
[in] A pointer to the network address for the host. Host addresses are stored in network byte order.
len
[in] The length of the address.
type
[in] The type of the address.
buf
[out] A pointer to the data area to receive the hostent data. Note that this
must be larger than the size of a hostent structure. This is because the data
area supplied is used by Windows Sockets to contain not only a hostent structure
but any and all of the data which is referenced by members of the hostent structure.
It is recommended that you supply a buffer of MAXGETHOSTSTRUCT bytes.
buflen
[in] The size of data area buf above.
buflen
[in] The size of data area buf above.