aboutsummaryrefslogtreecommitdiff
path: root/doc/tcp.html
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-21 06:07:58 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-21 06:07:58 +0000
commitbce1cb30d856d167e167c4c2997f9bebe03a612c (patch)
tree8e684b912cdc9d27c5aebf593107487c94866438 /doc/tcp.html
parentf7579db9e830ef41f422a280d26c9077f48728e5 (diff)
downloadluasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.gz
luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.bz2
luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.zip
More adjustments/bugfixes.
Diffstat (limited to 'doc/tcp.html')
-rw-r--r--doc/tcp.html17
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>
77Note: calling <a href=sockett.html#select><tt>socket.select</tt></a> 79Note: calling <a href=socket.html#select><tt>socket.select</tt></a>
78with a server object in 80with a server object in
79the <tt>receive</tt> parameter before a call to <tt>accept</tt> does 81the <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>
110Note: The function <a href=#socket.bind><tt>socket.bind</tt></a> 112Note: The function <a href=socket.html#bind><tt>socket.bind</tt></a>
111is available and is a shortcut for the creation server sockets. 113is 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>
166Note: The function <a href=#socket.connect><tt>socket.connect</tt></a> 168Note: The function <a href=socket.html#connect><tt>socket.connect</tt></a>
167is available and is a shortcut for the creation of client sockets. 169is 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>
171Note: Starting with LuaSocket 2.0, 173Note: Starting with LuaSocket 2.0,
172the <a href=#settimeout><tt>settimeout</tt></a> 174the <a href=#settimeout><tt>settimeout</tt></a>
173function affects the behavior of connect, causing it to return in case of 175method affects the behavior of connect, causing it to return in case of
174a timeout error. 176a 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>
202master:<b>getsockname()</b><br>
200client:<b>getsockname()</b><br> 203client:<b>getsockname()</b><br>
201server:<b>getsockname()</b> 204server:<b>getsockname()</b>
202</p> 205</p>