diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-02 23:31:39 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-02 23:31:39 +0000 |
| commit | 87d260356a83b03df2629d31718bae381cd6b363 (patch) | |
| tree | 15b0325c5d7bcbedc293827d605d1d9879eaa283 /doc | |
| parent | 6058d1838e2b7a926a454d57e30a8ce52494b188 (diff) | |
| download | luasocket-87d260356a83b03df2629d31718bae381cd6b363.tar.gz luasocket-87d260356a83b03df2629d31718bae381cd6b363.tar.bz2 luasocket-87d260356a83b03df2629d31718bae381cd6b363.zip | |
*** empty log message ***
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference.html | 1 | ||||
| -rw-r--r-- | doc/tcp.html | 18 |
2 files changed, 18 insertions, 1 deletions
diff --git a/doc/reference.html b/doc/reference.html index 8d129e3..8f86338 100644 --- a/doc/reference.html +++ b/doc/reference.html | |||
| @@ -168,6 +168,7 @@ | |||
| 168 | <a href="tcp.html#connect">connect</a>, | 168 | <a href="tcp.html#connect">connect</a>, |
| 169 | <a href="tcp.html#getpeername">getpeername</a>, | 169 | <a href="tcp.html#getpeername">getpeername</a>, |
| 170 | <a href="tcp.html#getsockname">getsockname</a>, | 170 | <a href="tcp.html#getsockname">getsockname</a>, |
| 171 | <a href="tcp.html#getstats">getstats</a>, | ||
| 171 | <a href="tcp.html#receive">receive</a>, | 172 | <a href="tcp.html#receive">receive</a>, |
| 172 | <a href="tcp.html#send">send</a>, | 173 | <a href="tcp.html#send">send</a>, |
| 173 | <a href="tcp.html#setoption">setoption</a>, | 174 | <a href="tcp.html#setoption">setoption</a>, |
diff --git a/doc/tcp.html b/doc/tcp.html index 5c0da75..5f520e9 100644 --- a/doc/tcp.html +++ b/doc/tcp.html | |||
| @@ -196,7 +196,7 @@ In case of error, the method returns <b><tt>nil</tt></b>. | |||
| 196 | Note: It makes no sense to call this method on server objects. | 196 | Note: It makes no sense to call this method on server objects. |
| 197 | </p> | 197 | </p> |
| 198 | 198 | ||
| 199 | <!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 199 | <!-- getsockname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 200 | 200 | ||
| 201 | <p class=name id=getsockname> | 201 | <p class=name id=getsockname> |
| 202 | master:<b>getsockname()</b><br> | 202 | master:<b>getsockname()</b><br> |
| @@ -213,6 +213,22 @@ 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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 217 | |||
| 218 | <p class=name id=getstats> | ||
| 219 | client:<b>getstats()</b><br> | ||
| 220 | </p> | ||
| 221 | |||
| 222 | <p class=description> | ||
| 223 | Returns accounting information on the socket, useful for throttling | ||
| 224 | of bandwidth. | ||
| 225 | </p> | ||
| 226 | |||
| 227 | <p class=return> | ||
| 228 | The method returns the number of bytes received, the number of bytes sent, | ||
| 229 | and the age of the socket object in seconds. | ||
| 230 | </p> | ||
| 231 | |||
| 216 | <!-- listen ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 232 | <!-- listen ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 217 | 233 | ||
| 218 | <p class=name id=listen> | 234 | <p class=name id=listen> |
