From 58096449c6044b7aade5cd41cfd71c6bec1d273d Mon Sep 17 00:00:00 2001
From: Diego Nehab
-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.
The socket namespace
-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