diff options
| author | Diego Nehab <diego@impa.br> | 2013-06-11 19:10:03 +0800 |
|---|---|---|
| committer | Diego Nehab <diego@impa.br> | 2013-06-11 19:10:03 +0800 |
| commit | 6e00ffd62f135c30be3b5a6404a722beb1bdf215 (patch) | |
| tree | a49bf542aa24ae34e563ff6b0bd5a5e1a139b41f | |
| parent | 906abf29d146272512feddd74005a8833ee34e7d (diff) | |
| download | luasocket-6e00ffd62f135c30be3b5a6404a722beb1bdf215.tar.gz luasocket-6e00ffd62f135c30be3b5a6404a722beb1bdf215.tar.bz2 luasocket-6e00ffd62f135c30be3b5a6404a722beb1bdf215.zip | |
Changing from 2.1-rc1 to 3.0-rc1.
| -rw-r--r-- | doc/index.html | 32 | ||||
| -rw-r--r-- | doc/installation.html | 14 | ||||
| -rw-r--r-- | doc/tcp.html | 2 | ||||
| -rw-r--r-- | doc/udp.html | 2 | ||||
| -rw-r--r-- | luasocket-3.0.rockspec (renamed from luasocket-2.1-1.rockspec) | 0 | ||||
| -rw-r--r-- | src/ltn12.lua | 2 | ||||
| -rw-r--r-- | src/luasocket.h | 5 | ||||
| -rw-r--r-- | src/makefile | 2 | ||||
| -rw-r--r-- | src/mime.h | 4 | ||||
| -rw-r--r-- | src/url.lua | 4 |
10 files changed, 33 insertions, 34 deletions
diff --git a/doc/index.html b/doc/index.html index d8ee4a4..b8f8798 100644 --- a/doc/index.html +++ b/doc/index.html | |||
| @@ -49,7 +49,7 @@ functionality commonly needed by applications that deal with the Internet. | |||
| 49 | The core support has been implemented so that it is both efficient and | 49 | The core support has been implemented so that it is both efficient and |
| 50 | simple to use. It is available to any Lua application once it has been | 50 | simple to use. It is available to any Lua application once it has been |
| 51 | properly initialized by the interpreter in use. The code has been tested | 51 | properly initialized by the interpreter in use. The code has been tested |
| 52 | and runs well on several Windows and Unix platforms. </p> | 52 | and runs well on several Windows and UNIX platforms. </p> |
| 53 | 53 | ||
| 54 | <p> | 54 | <p> |
| 55 | Among the support modules, the most commonly used implement the | 55 | Among the support modules, the most commonly used implement the |
| @@ -78,7 +78,7 @@ LuaSocket. | |||
| 78 | </p> | 78 | </p> |
| 79 | 79 | ||
| 80 | <p> | 80 | <p> |
| 81 | Copyright © 1999-2012 Diego Nehab. All rights reserved. <br> | 81 | Copyright © 1999-2013 Diego Nehab. All rights reserved. <br> |
| 82 | Author: <A href="http://www.impa.br/~diego">Diego Nehab</a> | 82 | Author: <A href="http://www.impa.br/~diego">Diego Nehab</a> |
| 83 | </p> | 83 | </p> |
| 84 | 84 | ||
| @@ -87,7 +87,7 @@ Author: <A href="http://www.impa.br/~diego">Diego Nehab</a> | |||
| 87 | <h2 id=download>Download</h2> | 87 | <h2 id=download>Download</h2> |
| 88 | 88 | ||
| 89 | <p> | 89 | <p> |
| 90 | LuaSocket version 2.1-rc1 is now available for download! | 90 | LuaSocket version 3.0-rc1 is now available for download! |
| 91 | It is compatible with Lua 5.1 and 5.2, and has | 91 | It is compatible with Lua 5.1 and 5.2, and has |
| 92 | been tested on Windows XP, Linux, and Mac OS X. Chances | 92 | been tested on Windows XP, Linux, and Mac OS X. Chances |
| 93 | are it works well on most UNIX distributions and Windows flavors. | 93 | are it works well on most UNIX distributions and Windows flavors. |
| @@ -96,7 +96,7 @@ are it works well on most UNIX distributions and Windows flavors. | |||
| 96 | <p> | 96 | <p> |
| 97 | The library can be downloaded in source code from the | 97 | The library can be downloaded in source code from the |
| 98 | <a href="https://github.com/diegonehab/luasocket/downloads">LuaSocket | 98 | <a href="https://github.com/diegonehab/luasocket/downloads">LuaSocket |
| 99 | project page</a> at GitHub. Besides the full C and Lua source code | 99 | project page</a> on GitHub. Besides the full C and Lua source code |
| 100 | for the library, the distribution contains several examples, | 100 | for the library, the distribution contains several examples, |
| 101 | this user's manual and basic test procedures. | 101 | this user's manual and basic test procedures. |
| 102 | </p> | 102 | </p> |
| @@ -113,11 +113,12 @@ manual to find out how to properly install the library. | |||
| 113 | <p> | 113 | <p> |
| 114 | This marks the first release of LuaSocket that | 114 | This marks the first release of LuaSocket that |
| 115 | wholeheartedly embraces the open-source development | 115 | wholeheartedly embraces the open-source development |
| 116 | philosophy. After a long hiatus, Matthew Wild finally | 116 | philosophy. After a long hiatus, Matthew Wild finally |
| 117 | convinced me it was time for a release including IPv6 | 117 | convinced me it was time for a release including IPv6 and |
| 118 | and Lua 5.2 support. Special thanks to Sam Roberts, Florian | 118 | Lua 5.2 support. It was more work than we anticipated. |
| 119 | Zeitz, and Paul Aurich, Liam Devine, and everybody else that | 119 | Special thanks to Sam Roberts, Florian Zeitz, and Paul |
| 120 | has helped bring this library back to life. | 120 | Aurich, Liam Devine, Alexey Melnichuk, and everybody else |
| 121 | that has helped bring this library back to life. | ||
| 121 | </p> | 122 | </p> |
| 122 | 123 | ||
| 123 | <!-- whatsnew +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 124 | <!-- whatsnew +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| @@ -125,12 +126,16 @@ has helped bring this library back to life. | |||
| 125 | <h2 id=new>What's New</h2> | 126 | <h2 id=new>What's New</h2> |
| 126 | 127 | ||
| 127 | <p> | 128 | <p> |
| 128 | Main changes for LuaSocket 2.1-rc1 are IPv6 support | 129 | Main changes for LuaSocket 3.0-rc1 are IPv6 support |
| 129 | and Lua 5.2 compatibility. | 130 | and Lua 5.2 compatibility. |
| 130 | </p> | 131 | </p> |
| 131 | 132 | ||
| 132 | <ul> | 133 | <ul> |
| 133 | <li> Added: Compatible with Lua 5.2 (using <tt>LUA_COMPAT_MODULE</tt>); | 134 | <li> Added: Compatible with Lua 5.2 |
| 135 | <ul> | ||
| 136 | <li> Note that unless you define <tt>LUA_COMPAT_MODULE</tt>, | ||
| 137 | package tables will <em>not</em> be exported as globals! | ||
| 138 | </ul> | ||
| 134 | <li> Added: IPv6 support; | 139 | <li> Added: IPv6 support; |
| 135 | <ul> | 140 | <ul> |
| 136 | <li> <tt>Socket.connect</tt> and <tt>socket.bind</tt> support IPv6 addresses; | 141 | <li> <tt>Socket.connect</tt> and <tt>socket.bind</tt> support IPv6 addresses; |
| @@ -138,7 +143,8 @@ and Lua 5.2 compatibility. | |||
| 138 | IPv6 addresses, and return the socket family as a third value; | 143 | IPv6 addresses, and return the socket family as a third value; |
| 139 | <li> URL module updated to support IPv6 host names; | 144 | <li> URL module updated to support IPv6 host names; |
| 140 | <li> New <tt>socket.tcp6</tt> and <tt>socket.udp6</tt> functions; | 145 | <li> New <tt>socket.tcp6</tt> and <tt>socket.udp6</tt> functions; |
| 141 | <li> New <tt>socket.dns.getaddrinfo</tt> function; | 146 | <li> New <tt>socket.dns.getaddrinfo</tt> and |
| 147 | <tt>socket.dns.getnameinfo</tt> functions; | ||
| 142 | </ul> | 148 | </ul> |
| 143 | <li> Added: <tt>getoption</tt> method; | 149 | <li> Added: <tt>getoption</tt> method; |
| 144 | <li> Fixed: <tt>url.unescape</tt> was returning additional values; | 150 | <li> Fixed: <tt>url.unescape</tt> was returning additional values; |
| @@ -176,7 +182,7 @@ still available for those that have compatibility issues. | |||
| 176 | <p> | 182 | <p> |
| 177 | <small> | 183 | <small> |
| 178 | Last modified by Diego Nehab on <br> | 184 | Last modified by Diego Nehab on <br> |
| 179 | Mon Apr 16 21:58:56 HKT 2012 | 185 | Tue Jun 11 18:50:23 HKT 2013 |
| 180 | </small> | 186 | </small> |
| 181 | </p> | 187 | </p> |
| 182 | </center> | 188 | </center> |
diff --git a/doc/installation.html b/doc/installation.html index 37c309b..28a9fbb 100644 --- a/doc/installation.html +++ b/doc/installation.html | |||
| @@ -39,12 +39,6 @@ Installation"> | |||
| 39 | 39 | ||
| 40 | <h2>Installation</h2> | 40 | <h2>Installation</h2> |
| 41 | 41 | ||
| 42 | <p> LuaSocket 2.1-rc still uses Lua 5.1's package | ||
| 43 | system. Users that have already made the switch to | ||
| 44 | Lua 5.2 should leave the default | ||
| 45 | <tt>LUA_COMPAT_MODULE</tt> defined when compiling their Lua | ||
| 46 | distribution for compatibility with LuaSocket. </p> | ||
| 47 | |||
| 48 | <p> Here we describe the standard distribution. If the | 42 | <p> Here we describe the standard distribution. If the |
| 49 | standard doesn't meet your needs, we refer you to the Lua | 43 | standard doesn't meet your needs, we refer you to the Lua |
| 50 | discussion list, where any question about the package scheme | 44 | discussion list, where any question about the package scheme |
| @@ -92,17 +86,17 @@ it should be easy to use LuaSocket. Just fire the interpreter and use the | |||
| 92 | <tt>require</tt> function to gain access to whatever module you need:</p> | 86 | <tt>require</tt> function to gain access to whatever module you need:</p> |
| 93 | 87 | ||
| 94 | <pre class=example> | 88 | <pre class=example> |
| 95 | Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio | 89 | Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio |
| 96 | > socket = require("socket") | 90 | > socket = require("socket") |
| 97 | > print(socket._VERSION) | 91 | > print(socket._VERSION) |
| 98 | --> LuaSocket 2.1-rc1 | 92 | --> LuaSocket 3.0-rc1 |
| 99 | </pre> | 93 | </pre> |
| 100 | 94 | ||
| 101 | <p> Each module loads their dependencies automatically, so you only need to | 95 | <p> Each module loads their dependencies automatically, so you only need to |
| 102 | load the modules you directly depend upon: </p> | 96 | load the modules you directly depend upon: </p> |
| 103 | 97 | ||
| 104 | <pre class=example> | 98 | <pre class=example> |
| 105 | Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio | 99 | Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio |
| 106 | > http = require("socket.http") | 100 | > http = require("socket.http") |
| 107 | > print(http.request("http://www.impa.br/~diego/software/luasocket")) | 101 | > print(http.request("http://www.impa.br/~diego/software/luasocket")) |
| 108 | --> homepage gets dumped to terminal | 102 | --> homepage gets dumped to terminal |
| @@ -123,7 +117,7 @@ Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio | |||
| 123 | <p> | 117 | <p> |
| 124 | <small> | 118 | <small> |
| 125 | Last modified by Diego Nehab on <br> | 119 | Last modified by Diego Nehab on <br> |
| 126 | Mon Apr 16 21:01:42 HKT 2012 | 120 | Tue Jun 11 19:06:14 HKT 2013 |
| 127 | </small> | 121 | </small> |
| 128 | </p> | 122 | </p> |
| 129 | </center> | 123 | </center> |
diff --git a/doc/tcp.html b/doc/tcp.html index 151a4c9..4226d78 100644 --- a/doc/tcp.html +++ b/doc/tcp.html | |||
| @@ -208,7 +208,7 @@ established. | |||
| 208 | </p> | 208 | </p> |
| 209 | 209 | ||
| 210 | <p class=note> | 210 | <p class=note> |
| 211 | Note: Starting with LuaSocket 2.1, the host name resolution | 211 | Note: Starting with LuaSocket 3.0, the host name resolution |
| 212 | depends on whether the socket was created by <a | 212 | depends on whether the socket was created by <a |
| 213 | href=#socket.tcp><tt>socket.tcp</tt></a> or <a | 213 | href=#socket.tcp><tt>socket.tcp</tt></a> or <a |
| 214 | href=#socket.tcp6><tt>socket.tcp6</tt></a>. Addresses from | 214 | href=#socket.tcp6><tt>socket.tcp6</tt></a>. Addresses from |
diff --git a/doc/udp.html b/doc/udp.html index 554fa31..e5b0ad0 100644 --- a/doc/udp.html +++ b/doc/udp.html | |||
| @@ -365,7 +365,7 @@ and can result in up to 30% performance gains. | |||
| 365 | </p> | 365 | </p> |
| 366 | 366 | ||
| 367 | <p class=note> | 367 | <p class=note> |
| 368 | Note: Starting with LuaSocket 2.1, the host name resolution | 368 | Note: Starting with LuaSocket 3.0, the host name resolution |
| 369 | depends on whether the socket was created by <a | 369 | depends on whether the socket was created by <a |
| 370 | href=#socket.udp><tt>socket.udp</tt></a> or <a | 370 | href=#socket.udp><tt>socket.udp</tt></a> or <a |
| 371 | href=#socket.udp6><tt>socket.udp6</tt></a>. Addresses from | 371 | href=#socket.udp6><tt>socket.udp6</tt></a>. Addresses from |
diff --git a/luasocket-2.1-1.rockspec b/luasocket-3.0.rockspec index 9c59abe..9c59abe 100644 --- a/luasocket-2.1-1.rockspec +++ b/luasocket-3.0.rockspec | |||
diff --git a/src/ltn12.lua b/src/ltn12.lua index 8742b0e..5b10f56 100644 --- a/src/ltn12.lua +++ b/src/ltn12.lua | |||
| @@ -23,7 +23,7 @@ _M.pump = pump | |||
| 23 | 23 | ||
| 24 | -- 2048 seems to be better in windows... | 24 | -- 2048 seems to be better in windows... |
| 25 | _M.BLOCKSIZE = 2048 | 25 | _M.BLOCKSIZE = 2048 |
| 26 | _M._VERSION = "LTN12 1.0.2" | 26 | _M._VERSION = "LTN12 1.0.3" |
| 27 | 27 | ||
| 28 | ----------------------------------------------------------------------------- | 28 | ----------------------------------------------------------------------------- |
| 29 | -- Filter stuff | 29 | -- Filter stuff |
diff --git a/src/luasocket.h b/src/luasocket.h index f4463a7..f75d21f 100644 --- a/src/luasocket.h +++ b/src/luasocket.h | |||
| @@ -11,9 +11,8 @@ | |||
| 11 | /*-------------------------------------------------------------------------*\ | 11 | /*-------------------------------------------------------------------------*\ |
| 12 | * Current socket library version | 12 | * Current socket library version |
| 13 | \*-------------------------------------------------------------------------*/ | 13 | \*-------------------------------------------------------------------------*/ |
| 14 | #define LUASOCKET_VERSION "LuaSocket 2.1-rc1" | 14 | #define LUASOCKET_VERSION "LuaSocket 3.0-rc1" |
| 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2012 Diego Nehab" | 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" |
| 16 | #define LUASOCKET_AUTHORS "Diego Nehab" | ||
| 17 | 16 | ||
| 18 | /*-------------------------------------------------------------------------*\ | 17 | /*-------------------------------------------------------------------------*\ |
| 19 | * This macro prefixes all exported API functions | 18 | * This macro prefixes all exported API functions |
diff --git a/src/makefile b/src/makefile index 313ca51..50d5cc1 100644 --- a/src/makefile +++ b/src/makefile | |||
| @@ -202,7 +202,7 @@ SOCKET_win32=wsocket.obj | |||
| 202 | # | 202 | # |
| 203 | SO=$(SO_$(PLAT)) | 203 | SO=$(SO_$(PLAT)) |
| 204 | O=$(O_$(PLAT)) | 204 | O=$(O_$(PLAT)) |
| 205 | SOCKET_V=2.1 | 205 | SOCKET_V=3.0-rc1 |
| 206 | MIME_V=1.0.3 | 206 | MIME_V=1.0.3 |
| 207 | SOCKET_SO=socket.$(SO).$(SOCKET_V) | 207 | SOCKET_SO=socket.$(SO).$(SOCKET_V) |
| 208 | MIME_SO=mime.$(SO).$(MIME_V) | 208 | MIME_SO=mime.$(SO).$(MIME_V) |
| @@ -13,8 +13,8 @@ | |||
| 13 | /*-------------------------------------------------------------------------*\ | 13 | /*-------------------------------------------------------------------------*\ |
| 14 | * Current MIME library version | 14 | * Current MIME library version |
| 15 | \*-------------------------------------------------------------------------*/ | 15 | \*-------------------------------------------------------------------------*/ |
| 16 | #define MIME_VERSION "MIME 1.0.3-rc1" | 16 | #define MIME_VERSION "MIME 1.0.3" |
| 17 | #define MIME_COPYRIGHT "Copyright (C) 2004-2012 Diego Nehab" | 17 | #define MIME_COPYRIGHT "Copyright (C) 2004-2013 Diego Nehab" |
| 18 | #define MIME_AUTHORS "Diego Nehab" | 18 | #define MIME_AUTHORS "Diego Nehab" |
| 19 | 19 | ||
| 20 | /*-------------------------------------------------------------------------*\ | 20 | /*-------------------------------------------------------------------------*\ |
diff --git a/src/url.lua b/src/url.lua index 3c4f85d..7809535 100644 --- a/src/url.lua +++ b/src/url.lua | |||
| @@ -18,7 +18,7 @@ local _M = socket.url | |||
| 18 | ----------------------------------------------------------------------------- | 18 | ----------------------------------------------------------------------------- |
| 19 | -- Module version | 19 | -- Module version |
| 20 | ----------------------------------------------------------------------------- | 20 | ----------------------------------------------------------------------------- |
| 21 | _M._VERSION = "URL 1.0.2" | 21 | _M._VERSION = "URL 1.0.3" |
| 22 | 22 | ||
| 23 | ----------------------------------------------------------------------------- | 23 | ----------------------------------------------------------------------------- |
| 24 | -- Encodes a string into its escaped hexadecimal representation | 24 | -- Encodes a string into its escaped hexadecimal representation |
| @@ -304,4 +304,4 @@ function _M.build_path(parsed, unsafe) | |||
| 304 | return path | 304 | return path |
| 305 | end | 305 | end |
| 306 | 306 | ||
| 307 | return _M \ No newline at end of file | 307 | return _M |
