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/socket.html | |
| parent | f7579db9e830ef41f422a280d26c9077f48728e5 (diff) | |
| download | luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.gz luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.bz2 luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.zip | |
More adjustments/bugfixes.
Diffstat (limited to 'doc/socket.html')
| -rw-r--r-- | doc/socket.html | 20 |
1 files changed, 16 insertions, 4 deletions
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 | ||
