From f7579db9e830ef41f422a280d26c9077f48728e5 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 20 Jun 2004 22:19:54 +0000 Subject: Fixing bugs... --- doc/socket.html | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'doc/socket.html') diff --git a/doc/socket.html b/doc/socket.html index 4d77478..1bbeb7f 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -16,7 +16,7 @@
@@ -48,6 +48,27 @@ To obtain the socket namespace, run: local socket = require("socket") + + +

+socket.bind(address, port [, backlog]) +

+ +

+

+ + + +

+socket.connect(address, port [, locaddr, locport]) +

+ +

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

@@ -289,8 +310,8 @@ The function returns a source with the appropriate behavior. -

-socket.time() +

+socket.gettime()

@@ -304,9 +325,9 @@ The function returns the time as a number.

-t = socket.time()
+t = socket.gettime()
 -- do stuff
-print(socket.time() - t .. " seconds elapsed")
+print(socket.gettime() - t .. " seconds elapsed")
 
-- cgit v1.2.3-55-g6feb
-LuaSocket +LuaSocket
Network support for the Lua language