diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
| commit | bce1cb30d856d167e167c4c2997f9bebe03a612c (patch) | |
| tree | 8e684b912cdc9d27c5aebf593107487c94866438 /doc/tcp.html | |
| parent | f7579db9e830ef41f422a280d26c9077f48728e5 (diff) | |
| download | luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.gz luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.bz2 luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.zip | |
More adjustments/bugfixes.
Diffstat (limited to 'doc/tcp.html')
| -rw-r--r-- | doc/tcp.html | 17 |
1 files changed, 10 insertions, 7 deletions
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> |
