From bce60be30fe8e9c1b0eb33128c23c93d7bca5303 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Wed, 27 May 2009 09:31:38 +0000 Subject: Decent makefiles! --- doc/dns.html | 8 +++--- doc/ftp.html | 8 +++--- doc/http.html | 8 +++--- doc/index.html | 77 ++++++++++++++++++++------------------------------- doc/installation.html | 8 +++--- doc/introduction.html | 8 +++--- doc/ltn12.html | 8 +++--- doc/mime.html | 8 +++--- doc/reference.html | 9 +++--- doc/smtp.html | 8 +++--- doc/socket.html | 56 +++++++++++++++++++++++++------------ doc/tcp.html | 16 +++++------ doc/udp.html | 8 +++--- doc/url.html | 8 +++--- 14 files changed, 121 insertions(+), 117 deletions(-) (limited to 'doc') diff --git a/doc/dns.html b/doc/dns.html index f4c3b07..a38e368 100644 --- a/doc/dns.html +++ b/doc/dns.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -113,8 +113,8 @@ message.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/ftp.html b/doc/ftp.html index 9884f31..1f6335e 100644 --- a/doc/ftp.html +++ b/doc/ftp.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -270,8 +270,8 @@ f, e = ftp.put{


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/http.html b/doc/http.html index 0acac13..a274aef 100644 --- a/doc/http.html +++ b/doc/http.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · introduction · introduction · reference @@ -314,8 +314,8 @@ r, c = http.request {


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/index.html b/doc/index.html index 57a7907..5b54c59 100644 --- a/doc/index.html +++ b/doc/index.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -87,7 +87,7 @@ Author: Diego Nehab

Download

-LuaSocket version 2.0.2 is now available for download! It is +LuaSocket version 2.0.3 is now available for download! It is compatible with Lua 5.1, and has been tested on Windows XP, Linux, and Mac OS X. Chances are it works well on most UNIX distributions and Windows flavors. @@ -118,14 +118,15 @@ manual to find out how to properly install the library.

Special thanks

-Throughout LuaSocket's history, many people gave suggestions that helped -improve it. For that, I thank the Lua community. -Special thanks go to -David Burgess, who has helped push the library to a new level of quality and -from whom I have learned a lot of stuff that doesn't show up in RFCs. -Special thanks also to Carlos Cassino, who played a big part in the -extensible design seen in the C core of LuaSocket 2.0. Mike Pall -has been helping a lot too! Thanks to you all! +Throughout LuaSocket's history, many people gave suggestions +that helped improve it. For that, I thank the Lua community. +Special thanks go to David Burgess, who has helped push the +library to a new level of quality and from whom I have +learned a lot of stuff that doesn't show up in RFCs. +Special thanks also to Carlos Cassino, who played a big part +in the extensible design seen in the C core of LuaSocket +2.0. Mike Pall has been helping a lot too! Thanks to you +all!

@@ -133,44 +134,26 @@ has been helping a lot too! Thanks to you all!

What's New

-2.0.2 is just a bug-fix/update release. +2.0.3 is just a bug-fix/update release.

    -
  • Improved: http.request() now supports deprecated -HTTP/0.9 servers (Florian Berger); -
  • Fixed: could return "timedout" instead of "timeout" (Leo Leo); -
  • Fixed: crash when reading '*a' on closed socket (Paul Ducklin); -
  • Fixed: return values are consistent when reading from closed sockets; -
  • Fixed: case sensitivity in headers of multipart -messages in smtp.message() (Graham Henstridge); -
  • Fixed a couple instances of error() being called instead of -base.error(). These would cause an error when an error was -reported :) (Ketmar Dark); -
  • Fixed: test script now uses pairs() iterator instead -of the old Lua syntax (Robert Dodier). -
- -

-2.0.1 is just a bug-fix/update release. -

- -
    -
  • Updated: now using compat-5.1r5; -
  • Improved: http.request is more robust to -malformed URLs (Adrian Sietsma); -
  • Improved: the simple http.request interface sends a -"Content-type: application/x-www-form-urlencoded" -header (William Trenker); -
  • Improved: http.request is robust to evil -servers that send inappropriate 100-continue messages -(David Burgess); -
  • Fixed: http.request was using the old host header during -redirects (Florian Berger); -
  • Fixed: sample unix.c had fallen through the -cracks during development (Matthew Percival); -
  • Fixed: error code was not being propagated correctly in -ftp.lua (David Burgess). +
  • Fixed: multicast didn't work on Windows, or anywhere + else for that matter (Herbert Leuwer, Adrian Sietsma) +
  • Fixed: select() now reports an error when called with more + sockets than FD_SETSIZE (Lorenzo Leonini) +
  • Fixed: manual links to home.html changed to index.html (Robert Hahn) +
  • Fixed: mime.unb64() would return an empty string on results that started + with a null character (Robert Raschke) +
  • Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray) +
  • Fixed: calling sleep() with negative numbers could + block forever, wasting CPU. Now it returns immediately (MPB); +
  • Improved: FTP commands are now sent in upper case to + help buggy servers (Anders Eurenius) +
  • Improved: known headers now sent in canonic + capitalization to help buggy servers (Joseph Stewart); +
  • Improved: Clarified tcp:receive() in the manual (MPB); +
  • Improved: Decent makefiles (LHF).
@@ -190,7 +173,7 @@ still available for those that have compatibility issues.

-download · +download · installation · introduction · reference diff --git a/doc/installation.html b/doc/installation.html index 0288f4a..bb9a5bb 100644 --- a/doc/installation.html +++ b/doc/installation.html @@ -25,8 +25,8 @@ Installation">

-home · -download · +home · +download · installation · introduction · reference @@ -144,8 +144,8 @@ Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/introduction.html b/doc/introduction.html index eff6367..fd22f48 100644 --- a/doc/introduction.html +++ b/doc/introduction.html @@ -25,8 +25,8 @@ Library, Support">

-home · -download · +home · +download · installation · introduction · reference @@ -314,8 +314,8 @@ and many others are covered by the reference manual.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/ltn12.html b/doc/ltn12.html index 0013950..7e2f49a 100644 --- a/doc/ltn12.html +++ b/doc/ltn12.html @@ -25,8 +25,8 @@ Pump, Support, Library">

-home · -download · +home · +download · installation · introduction · reference @@ -411,8 +411,8 @@ Creates and returns a source that produces the contents of a


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/mime.html b/doc/mime.html index d7faf52..9844744 100644 --- a/doc/mime.html +++ b/doc/mime.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -457,8 +457,8 @@ marker.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/reference.html b/doc/reference.html index b329f57..31f6ecf 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -25,8 +25,8 @@ Support, Manual">

-home · -download · +home · +download · installation · introduction · reference @@ -151,6 +151,7 @@ Support, Manual"> sink, skip, sleep, +_SETSIZE, source, tcp, try, @@ -220,8 +221,8 @@ Support, Manual">


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/smtp.html b/doc/smtp.html index 27dd473..980b821 100644 --- a/doc/smtp.html +++ b/doc/smtp.html @@ -25,8 +25,8 @@ Library, Support">

-home · -download · +home · +download · installation · introduction · reference @@ -398,8 +398,8 @@ r, e = smtp.send{


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/socket.html b/doc/socket.html index f096e4b..490ab50 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -94,6 +94,24 @@ This constant is set to true if the library was compiled with debug support.

+ + +

+socket.gettime() +

+ +

+Returns the time in seconds, relative to the origin of the +universe. You should subtract the values returned by this function +to get meaningful values. +

+ +
+t = socket.gettime()
+-- do stuff
+print(socket.gettime() - t .. " seconds elapsed")
+
+

@@ -199,6 +217,15 @@ themselves, to simplify the test if a specific socket has changed status.

+

+Note: : select can monitor a limited number +of sockets, as defined by the constant socket._SETSIZE. This +number may be as high as 1024 or as low as 64 by default, +depending on the system. It is usually possible to change this +at compile time. Invoking select with a larger +number of sockets will raise an error. +

+

Important note: a known bug in WinSock causes select to fail on non-blocking TCP sockets. The function may return a socket as @@ -288,8 +315,8 @@ Freezes the program execution during a given amount of time.

-Time is the number of seconds to sleep for. -The function truncates time down to the nearest integer. +Time is the number of seconds to sleep for. If +time is negative, the function returns immediately.

@@ -324,24 +351,17 @@ side closes the connection. The function returns a source with the appropriate behavior.

- + -

-socket.gettime() +

+socket._SETSIZE

-Returns the time in seconds, relative to the origin of the -universe. You should subtract the values returned by this function -to get meaningful values. +The maximum number of sockets that the select function can handle.

-
-t = socket.gettime()
--- do stuff
-print(socket.gettime() - t .. " seconds elapsed")
-
-

@@ -386,8 +406,8 @@ This constant has a string describing the current LuaSocket version.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/tcp.html b/doc/tcp.html index a16a09e..d1d2154 100644 --- a/doc/tcp.html +++ b/doc/tcp.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -297,12 +297,12 @@ of any received data before return.

If successful, the method returns the received pattern. In case of error, -the method returns nil followed by an error message which -can be the string 'closed' in case the connection was +the method returns nil followed by an error +message, followed by a (possibly empty) string containing +the partial that was received. The error message can be +the string 'closed' in case the connection was closed before the transmission was completed or the string 'timeout' in case there was a timeout during the operation. -Also, after the error message, the function returns the partial result of -the transmission.

@@ -514,8 +514,8 @@ This function returns 1.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/udp.html b/doc/udp.html index 688649d..eca881d 100644 --- a/doc/udp.html +++ b/doc/udp.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -397,8 +397,8 @@ imperative nature obvious.


-home · -download · +home · +download · installation · introduction · reference diff --git a/doc/url.html b/doc/url.html index e87126f..303e05d 100644 --- a/doc/url.html +++ b/doc/url.html @@ -24,8 +24,8 @@

-home · -download · +home · +download · installation · introduction · reference @@ -310,8 +310,8 @@ The function returns the decoded string.


-home · -download · +home · +download · installation · introduction · reference -- cgit v1.2.3-55-g6feb