diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
| commit | 0b2542d1a61fc5425ff65ab3dbf7ba7de174763f (patch) | |
| tree | 8a6188e11db0c9ef6891c31e8a1bebca050b23b2 /doc/dns.html | |
| parent | f67864f86c7d703325e86b14d0ba33992c52891b (diff) | |
| download | luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.gz luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.bz2 luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.zip | |
Worked on the manual.
Implemented stuffing (needs test)
Added cddb and qp examples.
Diffstat (limited to 'doc/dns.html')
| -rw-r--r-- | doc/dns.html | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/dns.html b/doc/dns.html index 17cee45..71a9719 100644 --- a/doc/dns.html +++ b/doc/dns.html | |||
| @@ -36,8 +36,7 @@ | |||
| 36 | <h2 id=dns>DNS</h2> | 36 | <h2 id=dns>DNS</h2> |
| 37 | 37 | ||
| 38 | <p> | 38 | <p> |
| 39 | The following functions can be used to convert between host names and IP | 39 | Name resolution function return <em>all</em> information returned by the |
| 40 | addresses. Both functions return <em>all</em> information returned by the | ||
| 41 | resolver in a table of the form: | 40 | resolver in a table of the form: |
| 42 | </p> | 41 | </p> |
| 43 | 42 | ||
| @@ -53,6 +52,21 @@ resolved = {<br> | |||
| 53 | Note that the <tt>alias</tt> list can be empty. | 52 | Note that the <tt>alias</tt> list can be empty. |
| 54 | </p> | 53 | </p> |
| 55 | 54 | ||
| 55 | <!-- gethostname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 56 | |||
| 57 | <p class=name id=gethostname> | ||
| 58 | socket.dns.<b>gethostname()</b> | ||
| 59 | </p> | ||
| 60 | |||
| 61 | <p class=description> | ||
| 62 | Returns the standard host name for the machine. | ||
| 63 | </p> | ||
| 64 | |||
| 65 | <p class=return> | ||
| 66 | The function returns a string with the host name. | ||
| 67 | </p> | ||
| 68 | |||
| 69 | |||
| 56 | <!-- tohostname +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 70 | <!-- tohostname +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 57 | 71 | ||
| 58 | <p class=name id=tohostname> | 72 | <p class=name id=tohostname> |
| @@ -74,7 +88,6 @@ the resolver. In case of error, the function returns <b><tt>nil</tt></b> | |||
| 74 | followed by an error message. | 88 | followed by an error message. |
| 75 | </p> | 89 | </p> |
| 76 | 90 | ||
| 77 | |||
| 78 | <!-- toip +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 91 | <!-- toip +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 79 | 92 | ||
| 80 | <p class=name id=toip> | 93 | <p class=name id=toip> |
