diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-09-29 22:26:35 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-09-29 22:26:35 +0000 |
commit | 8420541720726975ab79fafc399c45c6a8eff3bd (patch) | |
tree | fffed8e810cd70ebb59e0775348ca24a049b868e | |
parent | a32c6d91402329adb769c4fe8bbb24f0d4e99051 (diff) | |
download | luasocket-8420541720726975ab79fafc399c45c6a8eff3bd.tar.gz luasocket-8420541720726975ab79fafc399c45c6a8eff3bd.tar.bz2 luasocket-8420541720726975ab79fafc399c45c6a8eff3bd.zip |
Tested on Windows.
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | config | 10 | ||||
-rw-r--r-- | etc/check-links.lua | 2 | ||||
-rw-r--r-- | etc/get.lua | 2 | ||||
-rw-r--r-- | etc/links | 17 | ||||
-rw-r--r-- | mime.vcproj | 6 | ||||
-rw-r--r-- | socket.vcproj | 4 | ||||
-rw-r--r-- | test/httptest.lua | 4 |
8 files changed, 38 insertions, 14 deletions
@@ -1,7 +1,6 @@ | |||
1 | This release is a "beta" version. It has been tested on WinXP, Mac OS X, | 1 | This is the LuaSocket 2.0. It has been tested on WinXP, Mac OS X, |
2 | and Linux. Although no major API changes should happen before the | 2 | and Linux. Please use the Lua mailing list to report any bugs |
3 | final version is released, please look for and report any bugs (or | 3 | (or "features") you encounter. |
4 | "features") you encounter. | ||
5 | 4 | ||
6 | Have fun, | 5 | Have fun, |
7 | Diego Nehab. | 6 | Diego Nehab. |
@@ -35,13 +35,21 @@ INSTALL_EXEC=cp | |||
35 | 35 | ||
36 | #------ | 36 | #------ |
37 | # Compiler and linker settings | 37 | # Compiler and linker settings |
38 | # for Mac OS X | ||
38 | # | 39 | # |
39 | CC=gcc | 40 | CC=gcc |
40 | DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN | 41 | DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN |
41 | CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 | 42 | CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common |
42 | LDFLAGS=-bundle -undefined dynamic_lookup | 43 | LDFLAGS=-bundle -undefined dynamic_lookup |
43 | LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc | 44 | LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc |
44 | 45 | ||
46 | # for Linux | ||
47 | #CC=gcc | ||
48 | #DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN | ||
49 | #CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic | ||
50 | #LDFLAGS=-O -shared | ||
51 | #LD=gcc | ||
52 | |||
45 | #------ | 53 | #------ |
46 | # End of makefile configuration | 54 | # End of makefile configuration |
47 | # | 55 | # |
diff --git a/etc/check-links.lua b/etc/check-links.lua index 5c124a8..725cd2a 100644 --- a/etc/check-links.lua +++ b/etc/check-links.lua | |||
@@ -5,7 +5,7 @@ | |||
5 | -- Author: Diego Nehab | 5 | -- Author: Diego Nehab |
6 | -- RCS ID: $$ | 6 | -- RCS ID: $$ |
7 | ----------------------------------------------------------------------------- | 7 | ----------------------------------------------------------------------------- |
8 | local url = require("url") | 8 | local url = require("socket.url") |
9 | local dispatch = require("dispatch") | 9 | local dispatch = require("dispatch") |
10 | local http = require("socket.http") | 10 | local http = require("socket.http") |
11 | dispatch.TIMEOUT = 10 | 11 | dispatch.TIMEOUT = 10 |
diff --git a/etc/get.lua b/etc/get.lua index bd5af28..0c95d54 100644 --- a/etc/get.lua +++ b/etc/get.lua | |||
@@ -7,7 +7,7 @@ | |||
7 | local socket = require("socket") | 7 | local socket = require("socket") |
8 | local http = require("socket.http") | 8 | local http = require("socket.http") |
9 | local ftp = require("socket.ftp") | 9 | local ftp = require("socket.ftp") |
10 | local url = require("url") | 10 | local url = require("socket.url") |
11 | local ltn12 = require("ltn12") | 11 | local ltn12 = require("ltn12") |
12 | 12 | ||
13 | -- formats a number of seconds into human readable form | 13 | -- formats a number of seconds into human readable form |
diff --git a/etc/links b/etc/links new file mode 100644 index 0000000..087f1c0 --- /dev/null +++ b/etc/links | |||
@@ -0,0 +1,17 @@ | |||
1 | <a href="http://www.cs.princeton.edu"> bla </a> | ||
2 | <a href="http://www.princeton.edu"> bla </a> | ||
3 | <a href="http://www.tecgraf.puc-rio.br"> bla </a> | ||
4 | <a href="http://www.inf.puc-rio.br"> bla </a> | ||
5 | <a href="http://www.puc-rio.br"> bla </a> | ||
6 | <a href="http://www.impa.br"> bla </a> | ||
7 | <a href="http://www.lua.org"> bla </a> | ||
8 | <a href="http://www.lua-users.org"> bla </a> | ||
9 | <a href="http://www.amazon.com"> bla </a> | ||
10 | <a href="http://www.google.com"> bla </a> | ||
11 | <a href="http://www.nytimes.com"> bla </a> | ||
12 | <a href="http://www.bbc.co.uk"> bla </a> | ||
13 | <a href="http://oglobo.globo.com"> bla </a> | ||
14 | <a href="http://slate.msn.com"> bla </a> | ||
15 | <a href="http://www.apple.com"> bla </a> | ||
16 | <a href="http://www.microsoft.com"> bla </a> | ||
17 | <a href="http://www.nasa.gov"> bla </a> | ||
diff --git a/mime.vcproj b/mime.vcproj index c4e328f..f5c57c3 100644 --- a/mime.vcproj +++ b/mime.vcproj | |||
@@ -19,7 +19,7 @@ | |||
19 | <Tool | 19 | <Tool |
20 | Name="VCCLCompilerTool" | 20 | Name="VCCLCompilerTool" |
21 | Optimization="0" | 21 | Optimization="0" |
22 | AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include" | 22 | AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include" |
23 | PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)" | 23 | PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)" |
24 | MinimalRebuild="TRUE" | 24 | MinimalRebuild="TRUE" |
25 | BasicRuntimeChecks="3" | 25 | BasicRuntimeChecks="3" |
@@ -68,7 +68,7 @@ | |||
68 | CharacterSet="2"> | 68 | CharacterSet="2"> |
69 | <Tool | 69 | <Tool |
70 | Name="VCCLCompilerTool" | 70 | Name="VCCLCompilerTool" |
71 | AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include" | 71 | AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include" |
72 | PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)" | 72 | PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)" |
73 | RuntimeLibrary="2" | 73 | RuntimeLibrary="2" |
74 | UsePrecompiledHeader="0" | 74 | UsePrecompiledHeader="0" |
@@ -134,7 +134,7 @@ | |||
134 | UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> | 134 | UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> |
135 | </Filter> | 135 | </Filter> |
136 | <File | 136 | <File |
137 | RelativePath="..\lua-5.0.2\lib\lua50.lib"> | 137 | RelativePath=".\src\lua-5.0.2\lib\lua50.lib"> |
138 | </File> | 138 | </File> |
139 | </Files> | 139 | </Files> |
140 | <Globals> | 140 | <Globals> |
diff --git a/socket.vcproj b/socket.vcproj index ddfb46e..133c902 100644 --- a/socket.vcproj +++ b/socket.vcproj | |||
@@ -69,7 +69,7 @@ | |||
69 | CharacterSet="2"> | 69 | CharacterSet="2"> |
70 | <Tool | 70 | <Tool |
71 | Name="VCCLCompilerTool" | 71 | Name="VCCLCompilerTool" |
72 | AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include" | 72 | AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include" |
73 | PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG" | 73 | PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG" |
74 | RuntimeLibrary="2" | 74 | RuntimeLibrary="2" |
75 | UsePrecompiledHeader="0" | 75 | UsePrecompiledHeader="0" |
@@ -169,7 +169,7 @@ | |||
169 | UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> | 169 | UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> |
170 | </Filter> | 170 | </Filter> |
171 | <File | 171 | <File |
172 | RelativePath="..\lua-5.0.2\lib\lua50.lib"> | 172 | RelativePath=".\src\lua-5.0.2\lib\lua50.lib"> |
173 | </File> | 173 | </File> |
174 | </Files> | 174 | </Files> |
175 | <Globals> | 175 | <Globals> |
diff --git a/test/httptest.lua b/test/httptest.lua index 3816b54..0951389 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -22,8 +22,8 @@ http.TIMEOUT = 10 | |||
22 | 22 | ||
23 | local t = socket.gettime() | 23 | local t = socket.gettime() |
24 | 24 | ||
25 | host = host or "localhost" -- "diego.student.princeton.edu" | 25 | host = host or "dell-diego" -- "diego.student.princeton.edu" |
26 | proxy = proxy or "http://localhost:3128" | 26 | proxy = proxy or "http://dell-diego:3128" |
27 | prefix = prefix or "/luasocket-test" | 27 | prefix = prefix or "/luasocket-test" |
28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
29 | index_file = "index.html" | 29 | index_file = "index.html" |