aboutsummaryrefslogtreecommitdiff
path: root/doc/tcp.html
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-26 04:04:04 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-26 04:04:04 +0000
commitd914007507a6a4ad3489cca19652af403fef7074 (patch)
tree71f83f3ce04c5c7852c0571d3f9fe0188c920784 /doc/tcp.html
parentcd994f306a67ea7b9ee0ba810d985114e097dd77 (diff)
downloadluasocket-d914007507a6a4ad3489cca19652af403fef7074.tar.gz
luasocket-d914007507a6a4ad3489cca19652af403fef7074.tar.bz2
luasocket-d914007507a6a4ad3489cca19652af403fef7074.zip
Almost ready for beta2.
Diffstat (limited to 'doc/tcp.html')
-rw-r--r--doc/tcp.html27
1 files changed, 26 insertions, 1 deletions
diff --git a/doc/tcp.html b/doc/tcp.html
index 30e06f4..dfc2c29 100644
--- a/doc/tcp.html
+++ b/doc/tcp.html
@@ -213,10 +213,12 @@ The method returns a string with local IP address and a number with
213the port. In case of error, the method returns <b><tt>nil</tt></b>. 213the port. In case of error, the method returns <b><tt>nil</tt></b>.
214</p> 214</p>
215 215
216<!-- getsockname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 216<!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
217 217
218<p class=name id=getstats> 218<p class=name id=getstats>
219master:<b>getstats()</b><br>
219client:<b>getstats()</b><br> 220client:<b>getstats()</b><br>
221server:<b>getstats()</b><br>
220</p> 222</p>
221 223
222<p class=description> 224<p class=description>
@@ -414,6 +416,29 @@ The method returns 1 in case of success, or <b><tt>nil</tt></b> otherwise.
414Note: The descriptions above come from the man pages. 416Note: The descriptions above come from the man pages.
415</p> 417</p>
416 418
419<!-- setstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
420
421<p class=name id=setstats>
422master:<b>setstats(</b>received, sent, age<b>)</b><br>
423client:<b>setstats(</b>received, sent, age<b>)</b><br>
424server:<b>setstats(</b>received, sent, age<b>)</b><br>
425</p>
426
427<p class=description>
428Resets accounting information on the socket, useful for throttling
429of bandwidth.
430</p>
431
432<p class=parameters>
433<tt>Received</tt> is a number with the new number of bytes received.
434<tt>Sent</tt> is a number with the new number of bytes sent.
435<tt>Age</tt> is the new age in seconds</tt>
436</p>
437
438<p class=return>
439The method returns 1 in case of success and <tt><b>nil</b></tt> otherwise.
440</p>
441
417<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 442<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
418 443
419<p class=name id=settimeout> 444<p class=name id=settimeout>