From 87d260356a83b03df2629d31718bae381cd6b363 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Fri, 2 Jul 2004 23:31:39 +0000 Subject: [PATCH] *** empty log message *** --- doc/reference.html | 1 + doc/tcp.html | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) 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 @@ connect, getpeername, getsockname, +getstats, receive, send, setoption, 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 nil. Note: It makes no sense to call this method on server objects.

- +

master:getsockname()
@@ -213,6 +213,22 @@ The method returns a string with local IP address and a number with the port. In case of error, the method returns nil.

+ + +

+client:getstats()
+

+ +

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

+ +

+The method returns the number of bytes received, the number of bytes sent, +and the age of the socket object in seconds. +

+