C
coolcat
Unregistered / Unconfirmed
GUEST, unregistred user!
在这里最多只能给300。答案满意再开帖给。
PHostEnt = ^THostEnt;
{$EXTERNALSYM hostent}
hostent = record
h_name: PChar;
h_aliases: ^PChar;
h_addrtype: Smallint;
h_length: Smallint;
case Byte of
0: (h_addr_list: ^PChar);
1: (h_addr: ^PChar)
end;
Pointer(RemoteHost^.h_addr_list^)^和RemoteHost^.h_addr_list^^有什么区别?
另:
GetHostByname(Host);
返回的PHostEnt类型中有h_addr_list的最终值是什么?IPv4的地址还是什么?
PHostEnt = ^THostEnt;
{$EXTERNALSYM hostent}
hostent = record
h_name: PChar;
h_aliases: ^PChar;
h_addrtype: Smallint;
h_length: Smallint;
case Byte of
0: (h_addr_list: ^PChar);
1: (h_addr: ^PChar)
end;
Pointer(RemoteHost^.h_addr_list^)^和RemoteHost^.h_addr_list^^有什么区别?
另:
GetHostByname(Host);
返回的PHostEnt类型中有h_addr_list的最终值是什么?IPv4的地址还是什么?