diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-26 04:04:04 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-26 04:04:04 +0000 |
commit | d914007507a6a4ad3489cca19652af403fef7074 (patch) | |
tree | 71f83f3ce04c5c7852c0571d3f9fe0188c920784 /doc/tcp.html | |
parent | cd994f306a67ea7b9ee0ba810d985114e097dd77 (diff) | |
download | luasocket-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.html | 27 |
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 | |||
213 | the port. In case of error, the method returns <b><tt>nil</tt></b>. | 213 | the 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> |
219 | master:<b>getstats()</b><br> | ||
219 | client:<b>getstats()</b><br> | 220 | client:<b>getstats()</b><br> |
221 | server:<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. | |||
414 | Note: The descriptions above come from the man pages. | 416 | Note: The descriptions above come from the man pages. |
415 | </p> | 417 | </p> |
416 | 418 | ||
419 | <!-- setstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
420 | |||
421 | <p class=name id=setstats> | ||
422 | master:<b>setstats(</b>received, sent, age<b>)</b><br> | ||
423 | client:<b>setstats(</b>received, sent, age<b>)</b><br> | ||
424 | server:<b>setstats(</b>received, sent, age<b>)</b><br> | ||
425 | </p> | ||
426 | |||
427 | <p class=description> | ||
428 | Resets accounting information on the socket, useful for throttling | ||
429 | of 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> | ||
439 | The 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> |