Tested on Windows.

This commit is contained in:
Diego Nehab 2005-09-29 22:26:35 +00:00
parent a32c6d9140
commit 8420541720
8 changed files with 38 additions and 14 deletions

7
README
View File

@ -1,7 +1,6 @@
This release is a "beta" version. It has been tested on WinXP, Mac OS X,
and Linux. Although no major API changes should happen before the
final version is released, please look for and report any bugs (or
"features") you encounter.
This is the LuaSocket 2.0. It has been tested on WinXP, Mac OS X,
and Linux. Please use the Lua mailing list to report any bugs
(or "features") you encounter.
Have fun,
Diego Nehab.

10
config
View File

@ -35,13 +35,21 @@ INSTALL_EXEC=cp
#------
# Compiler and linker settings
# for Mac OS X
#
CC=gcc
DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2
CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
LDFLAGS=-bundle -undefined dynamic_lookup
LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
# for Linux
#CC=gcc
#DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
#LDFLAGS=-O -shared
#LD=gcc
#------
# End of makefile configuration
#

View File

@ -5,7 +5,7 @@
-- Author: Diego Nehab
-- RCS ID: $$
-----------------------------------------------------------------------------
local url = require("url")
local url = require("socket.url")
local dispatch = require("dispatch")
local http = require("socket.http")
dispatch.TIMEOUT = 10

View File

@ -7,7 +7,7 @@
local socket = require("socket")
local http = require("socket.http")
local ftp = require("socket.ftp")
local url = require("url")
local url = require("socket.url")
local ltn12 = require("ltn12")
-- formats a number of seconds into human readable form

17
etc/links Normal file
View File

@ -0,0 +1,17 @@
<a href="http://www.cs.princeton.edu"> bla </a>
<a href="http://www.princeton.edu"> bla </a>
<a href="http://www.tecgraf.puc-rio.br"> bla </a>
<a href="http://www.inf.puc-rio.br"> bla </a>
<a href="http://www.puc-rio.br"> bla </a>
<a href="http://www.impa.br"> bla </a>
<a href="http://www.lua.org"> bla </a>
<a href="http://www.lua-users.org"> bla </a>
<a href="http://www.amazon.com"> bla </a>
<a href="http://www.google.com"> bla </a>
<a href="http://www.nytimes.com"> bla </a>
<a href="http://www.bbc.co.uk"> bla </a>
<a href="http://oglobo.globo.com"> bla </a>
<a href="http://slate.msn.com"> bla </a>
<a href="http://www.apple.com"> bla </a>
<a href="http://www.microsoft.com"> bla </a>
<a href="http://www.nasa.gov"> bla </a>

View File

@ -19,7 +19,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include"
AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
@ -68,7 +68,7 @@
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include"
AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
@ -134,7 +134,7 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
<File
RelativePath="..\lua-5.0.2\lib\lua50.lib">
RelativePath=".\src\lua-5.0.2\lib\lua50.lib">
</File>
</Files>
<Globals>

View File

@ -69,7 +69,7 @@
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="src\compat-5.1r4, ..\lua-5.0.2\include"
AdditionalIncludeDirectories="src\compat-5.1r4, src\lua-5.0.2\include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
@ -169,7 +169,7 @@
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
<File
RelativePath="..\lua-5.0.2\lib\lua50.lib">
RelativePath=".\src\lua-5.0.2\lib\lua50.lib">
</File>
</Files>
<Globals>

View File

@ -22,8 +22,8 @@ http.TIMEOUT = 10
local t = socket.gettime()
host = host or "localhost" -- "diego.student.princeton.edu"
proxy = proxy or "http://localhost:3128"
host = host or "dell-diego" -- "diego.student.princeton.edu"
proxy = proxy or "http://dell-diego:3128"
prefix = prefix or "/luasocket-test"
cgiprefix = cgiprefix or "/luasocket-test-cgi"
index_file = "index.html"