From 58096449c6044b7aade5cd41cfd71c6bec1d273d Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 15 Jun 2004 06:24:00 +0000 Subject: Manual is almost done. HTTP is missing. Implemented new distribution scheme. Select is now purely C. HTTP reimplemented seems faster dunno why. LTN12 functions that coroutines fail gracefully. --- doc/socket.html | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'doc/socket.html') diff --git a/doc/socket.html b/doc/socket.html index bde882b..eccc676 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -36,16 +36,13 @@

The socket namespace

-The socket namespace contains the namespace tables for all -LuaSocket modules as well as function that didn't belong in any specific -module, functions that are so commonly used that deserve a shortcut and a -few constants. +The socket namespace contains the core functionality of LuaSocket.

-socket.debug +socket.DEBUG

@@ -57,7 +54,7 @@ with debug support.

-socket.protect(function) +socket.protect(func)

@@ -65,12 +62,12 @@ Converts a function that throws exceptions into a safe function.

-Function is a function that calls +Funct is a function that calls try to throw exceptions.

-The function an equivalent function that instead of throwing exceptoins, +Returns an equivalent function that instead of throwing exceptions, returns nil followed by an error message.

@@ -103,16 +100,16 @@ simplify the test if a specific socket has changed status.

-Important Note: a known bug in WinSock causes select to fail +Important note: a known bug in WinSock causes select to fail on non-blocking TCP sockets. The function may return a socket as writable even though the socket is not ready for sending.

-Important note: calling select with a server socket in the receive +Another important note: calling select with a server socket in the receive parameter before a call to accept does not guarantee accept will return immediately. -Use the timeout +Use the settimeout method or accept might block forever.

@@ -131,7 +128,7 @@ socket.sink(mode, socket)

Creates an -LTN012 +LTN12 sink from a stream socket object.

@@ -163,7 +160,7 @@ socket.source(mode, socket [, length])

Creates an -LTN012 +LTN12 source from a stream socket object.

@@ -217,7 +214,7 @@ c = socket.try(socket.connect("localhost", 80))

-socket.version +socket.VERSION

-- cgit v1.2.3-55-g6feb