diff options
| -rw-r--r-- | doc/introduction.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/introduction.html b/doc/introduction.html index 7adf45b..e6f0ea2 100644 --- a/doc/introduction.html +++ b/doc/introduction.html | |||
| @@ -42,7 +42,7 @@ provided for TCP and UDP, but there is work in progress to implement SSL, | |||
| 42 | Local Domain, Pipes, File Descriptors etc. I/O objects provide a standard | 42 | Local Domain, Pipes, File Descriptors etc. I/O objects provide a standard |
| 43 | interface to I/O across different domains and operating systems. | 43 | interface to I/O across different domains and operating systems. |
| 44 | LuaSocket 2.0 has been rewritten from scratch to simplify the future | 44 | LuaSocket 2.0 has been rewritten from scratch to simplify the future |
| 45 | addition new domains. | 45 | addition of new domains. |
| 46 | </p> | 46 | </p> |
| 47 | 47 | ||
| 48 | <p> | 48 | <p> |
| @@ -112,7 +112,7 @@ host OS requires for network access (Windows requires ws2_32.lib, for | |||
| 112 | instance). LuaSocket is initialized in the | 112 | instance). LuaSocket is initialized in the |
| 113 | Lua state given as the argument to the function | 113 | Lua state given as the argument to the function |
| 114 | <tt>luaopen_socket</tt>, the only C function exported by the library. | 114 | <tt>luaopen_socket</tt>, the only C function exported by the library. |
| 115 | After initialization, the scripts are free to use all LuaSocket API. | 115 | After initialization, scripts are free to use all of the LuaSocket API. |
| 116 | </p> | 116 | </p> |
| 117 | 117 | ||
| 118 | <!-- tcp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 118 | <!-- tcp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| @@ -289,7 +289,7 @@ error message. | |||
| 289 | host = "localhost" -- change here to the host you want to contact | 289 | host = "localhost" -- change here to the host you want to contact |
| 290 | port = port or 13 | 290 | port = port or 13 |
| 291 | -- convert host name to ip address | 291 | -- convert host name to ip address |
| 292 | ip, err = socket.toip(host) | 292 | ip, err = socket.dns.toip(host) |
| 293 | assert(ip, err) | 293 | assert(ip, err) |
| 294 | -- create a new UDP object | 294 | -- create a new UDP object |
| 295 | udp = socket.udp() | 295 | udp = socket.udp() |
