diff --git a/doc/index.html b/doc/index.html index abba703..8eaa37a 100644 --- a/doc/index.html +++ b/doc/index.html @@ -88,7 +88,7 @@ Author: Diego Nehab

Download

-LuaSocket version 2.0 beta is now available for download! It is +LuaSocket version 2.0 beta2 is now available for download! It is compatible with Lua 5.0 and has been tested on Windows XP, Linux, and Mac OS X.

@@ -99,8 +99,8 @@ The library can be downloaded in source code from the following links:

-luasocket-2.0-beta.tar.gz
-luasocket-2.0-beta.zip +luasocket-2.0-beta2.tar.gz
+luasocket-2.0-beta2.zip

@@ -116,7 +116,7 @@ LuaSocket a quick try:

-luasocket-2.0-beta-win32.zip +luasocket-2.0-beta2-win32.zip

@@ -156,104 +156,43 @@ Special thanks go to David Burgess, who has helped push the library to a new level of quality and from whom I have learned a lot of stuff that doesn't show up in RFCs. Special thanks also to Carlos Cassino, who played a big part in the -extensible design seen in the C core of LuaSocket 2.0. +extensible design seen in the C core of LuaSocket 2.0. Recently, Mike Pall +has been helping a lot too! Thanks to you all!

What's New

-

-Everything is new! Many changes for 2.0 happened in the C layer, -which has been almost completely rewritten. The code has been ported to -Lua 5.0 and greatly improved. There have also been some API changes -that made the interface simpler and more consistent. Here are some of -the changes that made it into version 2.0: +Changes in the 2.0-beta2 were mostly bug-fixes.

- -

-Lots of changes in the Lua modules, too! -

- - @@ -262,25 +201,8 @@ personal needs; diff --git a/doc/socket.html b/doc/socket.html index 129b134..c7525eb 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -332,10 +332,6 @@ universe. You should subtract the values returned by this function to get meaningful values.

-

-The function returns the time as a number. -

-
 t = socket.gettime()
 -- do stuff
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
 the port. In case of error, the method returns nil.
 

- +

+master:getstats()
client:getstats()
+server:getstats()

@@ -414,6 +416,29 @@ The method returns 1 in case of success, or nil otherwise. Note: The descriptions above come from the man pages.

+ + +

+master:setstats(received, sent, age)
+client:setstats(received, sent, age)
+server:setstats(received, sent, age)
+

+ +

+Resets accounting information on the socket, useful for throttling +of bandwidth. +

+ +

+Received is a number with the new number of bytes received. +Sent is a number with the new number of bytes sent. +Age is the new age in seconds +

+ +

+The method returns 1 in case of success and nil otherwise. +

+