ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示
/doc/efuns/resolve
rrrreeeessssoooollllvvvveeee((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) rrrreeeessssoooollllvvvveeee((((3333))))
NNNNAAAAMMMMEEEE
resolve() - resolve an internet address to domain name, or
vice versa
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
int resolve( string address, string callback_func );
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
resolve() resolves `address', which should be an internet
address in the form "127.0.0.1" or a domain name, into its
domain name, or internet address. When the resolve is
complete, `callback_func' will be called in the current
object. The form of the callback is:
void callback(string address, string resolved, int key);
`key' will match up with the number that the call to
resolve() returned. `address' will be the domain name of
the host, and `resolved' the dotted decimal ip address. The
unknown value will be 0 if the lookup failed.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
query_host_name(3), socket_address(3), query_ip_name(3),
query_ip_number(3)
Page 1 (printed 3/16/95)