diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-09-21 16:44:27 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-09-21 16:44:27 +0000 |
commit | 2b11e2bde90ef42de22b7e2ae78cd1da134b4565 (patch) | |
tree | 594638d461eb78251eede8133e010cd01396a46e /doc | |
parent | 982781f1464c9b7a8133130433f83dbf1f59a2c0 (diff) | |
download | luasocket-2b11e2bde90ef42de22b7e2ae78cd1da134b4565.tar.gz luasocket-2b11e2bde90ef42de22b7e2ae78cd1da134b4565.tar.bz2 luasocket-2b11e2bde90ef42de22b7e2ae78cd1da134b4565.zip |
Corrected bugs found by Steve Elkins
Diffstat (limited to 'doc')
-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() |