forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostAddressToName.xml
More file actions
70 lines (54 loc) · 2.42 KB
/
Copy pathhostAddressToName.xml
File metadata and controls
70 lines (54 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<doc>
<legacy_id>1833</legacy_id>
<name>hostAddressToName</name>
<type>function</type>
<syntax>
<example>the hostAddressToName of <i>IPAddress</i></example>
<example>hostAddressToName(<i>IPAddress</i>)</example>
</syntax>
<synonyms>
</synonyms>
<summary><glossary tag="return">Returns</glossary> the <glossary tag="domain name">domain name</glossary> corresponding to an <glossary tag="IP address">IP address</glossary>.</summary>
<examples>
<example>hostAddressToName("127.0.0.1")</example>
<example>answer "Connecting to" && hostAddressToName(newAddress) & "..."</example>
</examples>
<history>
<introduced version="1.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Networks & Communication</category>
</classification>
<references>
<function tag="peerAddress">peerAddress Function</function>
<function tag="hostAddress">hostAddress Function</function>
<command tag="accept">accept Command</command>
</references>
<description>
<overview>Use the <b>hostAddressToName</b> function to find the <glossary tag="domain name">domain name</glossary> of the computer at a <glossary tag="IP address">IP address</glossary>.</overview>
<parameters>
<parameter>
<name>IPAddress</name>
<description>Is a numeric IP address.</description>
</parameter> </parameters>
<value>The <b>hostAddressToName</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <glossary tag="domain name">domain name</glossary> corresponding to the <i>IPAddress</i>.</value>
<comments>The <b>hostAddressToName</b> <control_st tag="function">function</control_st> does a reverse <glossary tag="DNS">DNS</glossary> lookup on the <glossary tag="IP address">IP address</glossary> in order to find the <glossary tag="domain name">domain name</glossary>. This means that the computer must be connected to the Internet in order to use this <control_st tag="function">function</control_st>. If a connection to the Internet is not available, the <b>hostAddressToName</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> an error message.</comments>
</description>
</doc>