From bce1cb30d856d167e167c4c2997f9bebe03a612c Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 21 Jun 2004 06:07:58 +0000 Subject: More adjustments/bugfixes. --- doc/socket.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'doc/socket.html') diff --git a/doc/socket.html b/doc/socket.html index 1bbeb7f..129b134 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -3,7 +3,9 @@ -LuaSocket: Network support for the Lua language + + +LuaSocket: The socket namespace @@ -16,7 +18,7 @@
@@ -55,6 +57,16 @@ socket.bind(address, port [, backlog])

+This function is a shortcut that creates and returns a TCP server object +bound to a local address and port, ready to +accept client connections. Optionally, +user can also specify the backlog argument to the +listen method (defaults to 32). +

+ +

+Note: The server object returned will have the option "reuseaddr" +set to true.

@@ -64,9 +76,9 @@ socket.connect(address, port [, locaddr, locport])

-This function is a shortcut that creates and returns a TCP socket object +This function is a shortcut that creates and returns a TCP client object connected to a remote host at a given port. Optionally, -the use can also specify the local address and port to bind +the user can also specify the local address and port to bind (locaddr and locport).

-- cgit v1.2.3-55-g6feb
-LuaSocket +LuaSocket
Network support for the Lua language