请教gethostbyaddr的参数
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.
addr指的是IP地址吗?如果不是那是什么?
len是不是 strlen(addr)?如果不是那是什么?
若addr是IP地址,那么type是不是 AF_INET?如果不是那是什么?
我对C和winsock都不熟悉。请详细指点。