diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dns.html | 6 | ||||
-rw-r--r-- | doc/ftp.html | 10 | ||||
-rw-r--r-- | doc/http.html | 6 | ||||
-rw-r--r-- | doc/index.html | 6 | ||||
-rw-r--r-- | doc/introduction.html | 8 | ||||
-rw-r--r-- | doc/ltn12.html | 7 | ||||
-rw-r--r-- | doc/mime.html | 8 | ||||
-rw-r--r-- | doc/reference.html | 6 | ||||
-rw-r--r-- | doc/smtp.html | 12 | ||||
-rw-r--r-- | doc/socket.html | 20 | ||||
-rw-r--r-- | doc/tcp.html | 17 | ||||
-rw-r--r-- | doc/udp.html | 12 | ||||
-rw-r--r-- | doc/url.html | 12 |
13 files changed, 86 insertions, 44 deletions
diff --git a/doc/dns.html b/doc/dns.html index 47134d8..09a9bdb 100644 --- a/doc/dns.html +++ b/doc/dns.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: DNS support"> |
7 | <meta name="keywords" content="Lua, Library, DNS, Network, Support"> | ||
8 | <title>LuaSocket: DNS support</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
diff --git a/doc/ftp.html b/doc/ftp.html index fe514e9..158b402 100644 --- a/doc/ftp.html +++ b/doc/ftp.html | |||
@@ -1,7 +1,11 @@ | |||
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 | "http://www.w3.org/TR/html4/strict.dtd"> | ||
3 | <html> | ||
2 | 4 | ||
3 | <head> | 5 | <head> |
4 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: FTP support"> |
7 | <meta name="keywords" content="Lua, Library, FTP, Network, Support"> | ||
8 | <title>LuaSocket: FTP support</title> | ||
5 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
6 | </head> | 10 | </head> |
7 | 11 | ||
@@ -14,7 +18,7 @@ | |||
14 | <center> | 18 | <center> |
15 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
16 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
17 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
18 | </a></td></tr> | 22 | </a></td></tr> |
19 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
20 | </td></tr> | 24 | </td></tr> |
diff --git a/doc/http.html b/doc/http.html index 4780436..13acd1c 100644 --- a/doc/http.html +++ b/doc/http.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: HTTP support"> |
7 | <meta name="keywords" content="Lua, Library, HTTP, WWW, browser, Network, Support"> | ||
8 | <title>LuaSocket: HTTP support</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
diff --git a/doc/index.html b/doc/index.html index 0e9eb1d..abba703 100644 --- a/doc/index.html +++ b/doc/index.html | |||
@@ -3,6 +3,8 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <meta name="description" content="The LuaSocket Homepage"> | ||
7 | <meta name="keywords" content="Lua, Library, Network, Support, Internet"> | ||
6 | <title>LuaSocket: Network support for the Lua language </title> | 8 | <title>LuaSocket: Network support for the Lua language </title> |
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -276,7 +278,7 @@ return convention WILL break old code; | |||
276 | does not call <tt>listen</tt> anymore. It is the new <tt>listen</tt> | 278 | does not call <tt>listen</tt> anymore. It is the new <tt>listen</tt> |
277 | method that turns a TCP object into a server object; | 279 | method that turns a TCP object into a server object; |
278 | 280 | ||
279 | <li> <tt>socket.time</tt> became <tt>socket.gettime</tt> for uniformity; | 281 | <li> <tt>socket.time</tt> changed to <tt>socket.gettime</tt> for uniformity; |
280 | 282 | ||
281 | <li> Interface to options has changed. | 283 | <li> Interface to options has changed. |
282 | 284 | ||
diff --git a/doc/introduction.html b/doc/introduction.html index 2c738d6..6468148 100644 --- a/doc/introduction.html +++ b/doc/introduction.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: Introduction to the core"> |
7 | <meta name="keywords" content="Lua, Library, TCP, UDP, Network, Support"> | ||
8 | <title>LuaSocket: Introduction to the core</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -209,7 +211,7 @@ print("Please telnet to localhost on port " .. port) | |||
209 | print("After connecting, you have 10s to enter a line to be echoed") | 211 | print("After connecting, you have 10s to enter a line to be echoed") |
210 | -- loop forever waiting for clients | 212 | -- loop forever waiting for clients |
211 | while 1 do | 213 | while 1 do |
212 | -- wait for a conection from any client | 214 | -- wait for a connection from any client |
213 | local client = server:accept() | 215 | local client = server:accept() |
214 | -- make sure we don't block waiting for this client's line | 216 | -- make sure we don't block waiting for this client's line |
215 | client:settimeout(10) | 217 | client:settimeout(10) |
diff --git a/doc/ltn12.html b/doc/ltn12.html index bfb9b51..40dcf96 100644 --- a/doc/ltn12.html +++ b/doc/ltn12.html | |||
@@ -3,7 +3,10 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: LTN12 support"> |
7 | <meta name="keywords" content="Lua, Library, Filters, Source, Sink, | ||
8 | Pump, Support"> | ||
9 | <title>LuaSocket: LTN12 module</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 10 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 11 | </head> |
9 | 12 | ||
@@ -16,7 +19,7 @@ | |||
16 | <center> | 19 | <center> |
17 | <table summary="LuaSocket logo"> | 20 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 21 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 22 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 23 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 24 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 25 | </td></tr> |
diff --git a/doc/mime.html b/doc/mime.html index 0f4ffa8..6758a4b 100644 --- a/doc/mime.html +++ b/doc/mime.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: MIME support"> |
7 | <meta name="keywords" content="Lua, Library, MIME, Support"> | ||
8 | <title>LuaSocket: MIME module</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -92,7 +94,7 @@ The function returns a filter that performs the conversion. | |||
92 | Note: There is no perfect solution to this problem. Different end-of-line | 94 | Note: There is no perfect solution to this problem. Different end-of-line |
93 | markers are an evil that will probably plague developers forever. | 95 | markers are an evil that will probably plague developers forever. |
94 | This function, however, will work perfectly for text created with any of | 96 | This function, however, will work perfectly for text created with any of |
95 | the most common end-of-line markers, i.e. the MacOS (CR), the Unix (LF), | 97 | the most common end-of-line markers, i.e. the Mac OS (CR), the Unix (LF), |
96 | or the DOS (CRLF) conventions. Even if the data has mixed end-of-line | 98 | or the DOS (CRLF) conventions. Even if the data has mixed end-of-line |
97 | markers, the function will still work well, although it doesn't | 99 | markers, the function will still work well, although it doesn't |
98 | guarantee that the number of empty lines will be correct. | 100 | guarantee that the number of empty lines will be correct. |
diff --git a/doc/reference.html b/doc/reference.html index 5c07c4d..8d129e3 100644 --- a/doc/reference.html +++ b/doc/reference.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language </title> | 6 | <meta name="description" content="LuaSocket: Index to reference manual"> |
7 | <meta name="keywords" content="Lua, Library, Index, Manual, Network, Support"> | ||
8 | <title>LuaSocket: Index to reference manual</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
diff --git a/doc/smtp.html b/doc/smtp.html index 224dde3..b975045 100644 --- a/doc/smtp.html +++ b/doc/smtp.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: SMTP support"> |
7 | <meta name="keywords" content="Lua, Library, SMTP, e-mail, MIME, Multipart, Support"> | ||
8 | <title>LuaSocket: SMTP support</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -48,7 +50,7 @@ control (if you bother to read the code). | |||
48 | Another RFC of interest is <a | 50 | Another RFC of interest is <a |
49 | href="http://www.cs.princeton.edu/~diego/rfc/rfc2822.txt">RFC 2822</a>, | 51 | href="http://www.cs.princeton.edu/~diego/rfc/rfc2822.txt">RFC 2822</a>, |
50 | which governs the Internet Message Format. | 52 | which governs the Internet Message Format. |
51 | Multipart messages (those that contain attatchments) are part | 53 | Multipart messages (those that contain attachments) are part |
52 | of the MIME standard, but described mainly | 54 | of the MIME standard, but described mainly |
53 | in <a href="http://www.cs.princeton.edu/~diego/rfc/rfc2046.txt">RFC | 55 | in <a href="http://www.cs.princeton.edu/~diego/rfc/rfc2046.txt">RFC |
54 | 2046</a> | 56 | 2046</a> |
@@ -98,7 +100,7 @@ in representing them in a Lua table. | |||
98 | </p> | 100 | </p> |
99 | 101 | ||
100 | <p> | 102 | <p> |
101 | The following constants can be set to control the default behaviour of | 103 | The following constants can be set to control the default behavior of |
102 | the SMTP module: | 104 | the SMTP module: |
103 | </p> | 105 | </p> |
104 | 106 | ||
@@ -256,7 +258,7 @@ mesgt = { | |||
256 | to = "Fulano da Silva <fulano@example.com>", | 258 | to = "Fulano da Silva <fulano@example.com>", |
257 | cc = '"Beltrano F. Nunes" <beltrano@example.com>', | 259 | cc = '"Beltrano F. Nunes" <beltrano@example.com>', |
258 | subject = "My first message" | 260 | subject = "My first message" |
259 | } | 261 | }, |
260 | body = "I hope this works. If it does, I can send you another 1000 copies." | 262 | body = "I hope this works. If it does, I can send you another 1000 copies." |
261 | } | 263 | } |
262 | 264 | ||
diff --git a/doc/socket.html b/doc/socket.html index 1bbeb7f..129b134 100644 --- a/doc/socket.html +++ b/doc/socket.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: The core namespace"> |
7 | <meta name="keywords" content="Lua, Library, socket, Network, Support"> | ||
8 | <title>LuaSocket: The socket namespace</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -55,6 +57,16 @@ socket.<b>bind(</b>address, port [, backlog]<b>)</b> | |||
55 | </p> | 57 | </p> |
56 | 58 | ||
57 | <p class=description> | 59 | <p class=description> |
60 | This function is a shortcut that creates and returns a TCP server object | ||
61 | bound to a local <tt>address</tt> and <tt>port</tt>, ready to | ||
62 | accept client connections. Optionally, | ||
63 | user can also specify the <tt>backlog</tt> argument to the | ||
64 | <a href=tcp.html#listen><tt>listen</tt></a> method (defaults to 32). | ||
65 | </p> | ||
66 | |||
67 | <p class=note> | ||
68 | Note: The server object returned will have the option "<tt>reuseaddr</tt>" | ||
69 | set to <tt><b>true</b></tt>. | ||
58 | </p> | 70 | </p> |
59 | 71 | ||
60 | <!-- connect ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 72 | <!-- connect ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
@@ -64,9 +76,9 @@ socket.<b>connect(</b>address, port [, locaddr, locport]<b>)</b> | |||
64 | </p> | 76 | </p> |
65 | 77 | ||
66 | <p class=description> | 78 | <p class=description> |
67 | This function is a shortcut that creates and returns a TCP socket object | 79 | This function is a shortcut that creates and returns a TCP client object |
68 | connected to a remote <tt>host</tt> at a given <tt>port</tt>. Optionally, | 80 | connected to a remote <tt>host</tt> at a given <tt>port</tt>. Optionally, |
69 | the use can also specify the local address and port to bind | 81 | the user can also specify the local address and port to bind |
70 | (<tt>locaddr</tt> and </tt>locport</tt>). | 82 | (<tt>locaddr</tt> and </tt>locport</tt>). |
71 | </p> | 83 | </p> |
72 | 84 | ||
diff --git a/doc/tcp.html b/doc/tcp.html index 37b0b56..5c0da75 100644 --- a/doc/tcp.html +++ b/doc/tcp.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: The TCP/IP support"> |
7 | <meta name="keywords" content="Lua, Library, socket, TCP, Network, Support"> | ||
8 | <title>LuaSocket: TCP/IP support</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -74,7 +76,7 @@ reported by <b><tt>nil</tt></b> followed by a message describing the error. | |||
74 | </p> | 76 | </p> |
75 | 77 | ||
76 | <p class=note> | 78 | <p class=note> |
77 | Note: calling <a href=sockett.html#select><tt>socket.select</tt></a> | 79 | Note: calling <a href=socket.html#select><tt>socket.select</tt></a> |
78 | with a server object in | 80 | with a server object in |
79 | the <tt>receive</tt> parameter before a call to <tt>accept</tt> does | 81 | the <tt>receive</tt> parameter before a call to <tt>accept</tt> does |
80 | <em>not</em> guarantee <tt>accept</tt> will return immediately. Use the <a | 82 | <em>not</em> guarantee <tt>accept</tt> will return immediately. Use the <a |
@@ -107,7 +109,7 @@ method returns <b><tt>nil</tt></b> followed by an error message. | |||
107 | </p> | 109 | </p> |
108 | 110 | ||
109 | <p class=note> | 111 | <p class=note> |
110 | Note: The function <a href=#socket.bind><tt>socket.bind</tt></a> | 112 | Note: The function <a href=socket.html#bind><tt>socket.bind</tt></a> |
111 | is available and is a shortcut for the creation server sockets. | 113 | is available and is a shortcut for the creation server sockets. |
112 | </p> | 114 | </p> |
113 | 115 | ||
@@ -163,15 +165,15 @@ describing the error. In case of success, the method returns 1. | |||
163 | </p> | 165 | </p> |
164 | 166 | ||
165 | <p class=note> | 167 | <p class=note> |
166 | Note: The function <a href=#socket.connect><tt>socket.connect</tt></a> | 168 | Note: The function <a href=socket.html#connect><tt>socket.connect</tt></a> |
167 | is available and is a shortcut for the creation of client sockets. | 169 | is available and is a shortcut for the creation of client sockets. |
168 | </p> | 170 | </p> |
169 | 171 | ||
170 | <p class=note> | 172 | <p class=note> |
171 | Note: Starting with LuaSocket 2.0, | 173 | Note: Starting with LuaSocket 2.0, |
172 | the <a href=#settimeout><tt>settimeout</tt></a> | 174 | the <a href=#settimeout><tt>settimeout</tt></a> |
173 | function affects the behavior of connect, causing it to return in case of | 175 | method affects the behavior of connect, causing it to return in case of |
174 | a timeout error. | 176 | a timeout. |
175 | </p> | 177 | </p> |
176 | 178 | ||
177 | <!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 179 | <!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
@@ -197,6 +199,7 @@ Note: It makes no sense to call this method on server objects. | |||
197 | <!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 199 | <!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
198 | 200 | ||
199 | <p class=name id=getsockname> | 201 | <p class=name id=getsockname> |
202 | master:<b>getsockname()</b><br> | ||
200 | client:<b>getsockname()</b><br> | 203 | client:<b>getsockname()</b><br> |
201 | server:<b>getsockname()</b> | 204 | server:<b>getsockname()</b> |
202 | </p> | 205 | </p> |
diff --git a/doc/udp.html b/doc/udp.html index 69895ce..75d1d9e 100644 --- a/doc/udp.html +++ b/doc/udp.html | |||
@@ -1,10 +1,14 @@ | |||
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 | "http://www.w3.org/TR/html4/strict.dtd"> | 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
3 | <html> | 3 | <html> |
4 | |||
4 | <head> | 5 | <head> |
5 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: The UDP support"> |
7 | <meta name="keywords" content="Lua, Library, socket, UDP, Network, Support"> | ||
8 | <title>LuaSocket: UDP support</title> | ||
6 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
7 | </head> | 10 | </head> |
11 | |||
8 | <body> | 12 | <body> |
9 | 13 | ||
10 | <!-- header ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 14 | <!-- header ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
@@ -14,7 +18,7 @@ | |||
14 | <center> | 18 | <center> |
15 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
16 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
17 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
18 | </a></td></tr> | 22 | </a></td></tr> |
19 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
20 | </td></tr> | 24 | </td></tr> |
@@ -240,7 +244,7 @@ unconnected:<b>setpeername(</b>address, port<b>)</b> | |||
240 | <p class="description"> | 244 | <p class="description"> |
241 | Changes the peer of a UDP object. This | 245 | Changes the peer of a UDP object. This |
242 | method turns an unconnected UDP object into a connected UDP | 246 | method turns an unconnected UDP object into a connected UDP |
243 | object or vice-versa. | 247 | object or vice versa. |
244 | </p> | 248 | </p> |
245 | 249 | ||
246 | <p class="description"> | 250 | <p class="description"> |
diff --git a/doc/url.html b/doc/url.html index 207995c..92acf36 100644 --- a/doc/url.html +++ b/doc/url.html | |||
@@ -3,7 +3,9 @@ | |||
3 | <html> | 3 | <html> |
4 | 4 | ||
5 | <head> | 5 | <head> |
6 | <title>LuaSocket: Network support for the Lua language</title> | 6 | <meta name="description" content="LuaSocket: URL manipulation"> |
7 | <meta name="keywords" content="Lua, Library, URL, link, Network, Support"> | ||
8 | <title>LuaSocket: URL support</title> | ||
7 | <link rel="stylesheet" href="reference.css" type="text/css"> | 9 | <link rel="stylesheet" href="reference.css" type="text/css"> |
8 | </head> | 10 | </head> |
9 | 11 | ||
@@ -16,7 +18,7 @@ | |||
16 | <center> | 18 | <center> |
17 | <table summary="LuaSocket logo"> | 19 | <table summary="LuaSocket logo"> |
18 | <tr><td align=center><a href="http://www.lua.org"> | 20 | <tr><td align=center><a href="http://www.lua.org"> |
19 | <img width=128 border=0 alt="LuaSocket" src="luasocket.png"> | 21 | <img width=128 height=128 border=0 alt="LuaSocket" src="luasocket.png"> |
20 | </a></td></tr> | 22 | </a></td></tr> |
21 | <tr><td align=center valign=top>Network support for the Lua language | 23 | <tr><td align=center valign=top>Network support for the Lua language |
22 | </td></tr> | 24 | </td></tr> |
@@ -135,7 +137,7 @@ Rebuilds an URL from its parts. | |||
135 | <tt>Parsed_url</tt> is a table with same components returned by | 137 | <tt>Parsed_url</tt> is a table with same components returned by |
136 | <a href="#parse"><tt>parse</tt></a>. | 138 | <a href="#parse"><tt>parse</tt></a>. |
137 | Lower level components, if specified, | 139 | Lower level components, if specified, |
138 | take precedence over hight level components of the URL grammar. | 140 | take precedence over high level components of the URL grammar. |
139 | </p> | 141 | </p> |
140 | 142 | ||
141 | <p class=return> | 143 | <p class=return> |
@@ -279,8 +281,8 @@ Breaks a <tt><path></tt> URL component into all its | |||
279 | <p class=return> | 281 | <p class=return> |
280 | Since some characters are reserved in URLs, they must be escaped | 282 | Since some characters are reserved in URLs, they must be escaped |
281 | whenever present in a <tt><path></tt> component. Therefore, before | 283 | whenever present in a <tt><path></tt> component. Therefore, before |
282 | returning a list with all the parsed segments, the function unescapes all | 284 | returning a list with all the parsed segments, the function removes |
283 | of them. | 285 | escaping from all of them. |
284 | </p> | 286 | </p> |
285 | 287 | ||
286 | <!-- unescape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 288 | <!-- unescape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |