From 3a0fd4744daa972e59579a753af2da9dbde36edd Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 6 Oct 2011 11:52:52 -0700 Subject: Reference index was missing documented APIs, and only partially alphabetized. --- doc/reference.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'doc/reference.html') diff --git a/doc/reference.html b/doc/reference.html index b329f57..f13a6bd 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -42,9 +42,9 @@ Support, Manual">
DNS (in socket)
-toip, +gethostname, tohostname, -gethostname. +toip.
@@ -108,9 +108,9 @@ Support, Manual"> MIME
high-level: -normalize, decode, encode, +normalize, stuff, wrap.
@@ -120,10 +120,10 @@ Support, Manual"> dot, eol, qp, -wrp, -qpwrp. +qpwrp, unb64, unqp, +wrp. @@ -142,6 +142,8 @@ Support, Manual">
Socket
+bind, +connect, _DEBUG, dns, gettime, @@ -171,6 +173,7 @@ Support, Manual"> getpeername, getsockname, getstats, +listen, receive, send, setoption, -- cgit v1.2.3-55-g6feb From 12bde801f6a5d3a192dee29dda1266108aa98d45 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Mon, 24 Oct 2011 11:24:58 -0700 Subject: Document dirty, getfd, and setfd for select and tcp. --- doc/reference.html | 3 +++ doc/socket.html | 4 ++++ doc/tcp.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) (limited to 'doc/reference.html') diff --git a/doc/reference.html b/doc/reference.html index f13a6bd..edffc40 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -170,12 +170,15 @@ Support, Manual"> bind, close, connect, +dirty, +getfd, getpeername, getsockname, getstats, listen, receive, send, +setfd, setoption, setstats, settimeout, diff --git a/doc/socket.html b/doc/socket.html index f096e4b..4d44f01 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -217,6 +217,10 @@ method or accept might block forever. it to select, it will be ignored.

+

+Using select with non-socket objects: Any object that implements getfd and dirty can be used with select, allowing objects from other libraries to be used within a socket.select driven loop. +

+

diff --git a/doc/tcp.html b/doc/tcp.html index 602c73c..ab70f04 100644 --- a/doc/tcp.html +++ b/doc/tcp.html @@ -507,6 +507,66 @@ This is the default mode; This function returns 1.

+ + +

+master:dirty()
+client:dirty()
+server:dirty() +

+ +

+Check the read buffer status. +

+ +

+Returns true if there is any data in the read buffer, false otherwise. +

+ +

+Note: This is an internal method, any use is unlikely to be portable. +

+ + + +

+master:getfd()
+client:getfd()
+server:getfd() +

+ +

+Returns the underling socket descriptor or handle associated to the object. +

+ +

+The descriptor or handle. In case the object has been closed, the return will be -1. +

+ +

+Note: This is an internal method, any use is unlikely to be portable. +

+ + + +

+master:setfd(fd)
+client:setfd(fd)
+server:setfd(fd) +

+ +

+Sets the underling socket descriptor or handle associated to the object. The current one is simply replaced, not closed, and no other change to the object state is made. +

+ +

+No return value. +

+ +

+Note: This is an internal method, any use is unlikely to be portable. +

+