mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
Tested on Windows.
This commit is contained in:
parent
a32c6d9140
commit
8420541720
7
README
7
README
@ -1,7 +1,6 @@
|
|||||||
This release is a "beta" version. It has been tested on WinXP, Mac OS X,
|
This is the LuaSocket 2.0. It has been tested on WinXP, Mac OS X,
|
||||||
and Linux. Although no major API changes should happen before the
|
and Linux. Please use the Lua mailing list to report any bugs
|
||||||
final version is released, please look for and report any bugs (or
|
(or "features") you encounter.
|
||||||
"features") you encounter.
|
|
||||||
|
|
||||||
Have fun,
|
Have fun,
|
||||||
Diego Nehab.
|
Diego Nehab.
|
||||||
|
10
config
10
config
@ -35,13 +35,21 @@ INSTALL_EXEC=cp
|
|||||||
|
|
||||||
#------
|
#------
|
||||||
# Compiler and linker settings
|
# Compiler and linker settings
|
||||||
|
# for Mac OS X
|
||||||
#
|
#
|
||||||
CC=gcc
|
CC=gcc
|
||||||
DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
|
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
|
LDFLAGS=-bundle -undefined dynamic_lookup
|
||||||
LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
|
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
|
# End of makefile configuration
|
||||||
#
|
#
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
-- Author: Diego Nehab
|
-- Author: Diego Nehab
|
||||||
-- RCS ID: $$
|
-- RCS ID: $$
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
local url = require("url")
|
local url = require("socket.url")
|
||||||
local dispatch = require("dispatch")
|
local dispatch = require("dispatch")
|
||||||
local http = require("socket.http")
|
local http = require("socket.http")
|
||||||
dispatch.TIMEOUT = 10
|
dispatch.TIMEOUT = 10
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
local socket = require("socket")
|
local socket = require("socket")
|
||||||
local http = require("socket.http")
|
local http = require("socket.http")
|
||||||
local ftp = require("socket.ftp")
|
local ftp = require("socket.ftp")
|
||||||
local url = require("url")
|
local url = require("socket.url")
|
||||||
local ltn12 = require("ltn12")
|
local ltn12 = require("ltn12")
|
||||||
|
|
||||||
-- formats a number of seconds into human readable form
|
-- formats a number of seconds into human readable form
|
||||||
|
17
etc/links
Normal file
17
etc/links
Normal 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>
|
@ -19,7 +19,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
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)"
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS;MIME_API=__declspec(dllexport)"
|
||||||
MinimalRebuild="TRUE"
|
MinimalRebuild="TRUE"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
@ -68,7 +68,7 @@
|
|||||||
CharacterSet="2">
|
CharacterSet="2">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
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)"
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_EXPORTS; MIME_API=__declspec(dllexport)"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
@ -134,7 +134,7 @@
|
|||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\lua-5.0.2\lib\lua50.lib">
|
RelativePath=".\src\lua-5.0.2\lib\lua50.lib">
|
||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
CharacterSet="2">
|
CharacterSet="2">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
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"
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_EXPORTS;LUASOCKET_API=__declspec(dllexport); LUASOCKET_DEBUG"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
@ -169,7 +169,7 @@
|
|||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\lua-5.0.2\lib\lua50.lib">
|
RelativePath=".\src\lua-5.0.2\lib\lua50.lib">
|
||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
@ -22,8 +22,8 @@ http.TIMEOUT = 10
|
|||||||
|
|
||||||
local t = socket.gettime()
|
local t = socket.gettime()
|
||||||
|
|
||||||
host = host or "localhost" -- "diego.student.princeton.edu"
|
host = host or "dell-diego" -- "diego.student.princeton.edu"
|
||||||
proxy = proxy or "http://localhost:3128"
|
proxy = proxy or "http://dell-diego:3128"
|
||||||
prefix = prefix or "/luasocket-test"
|
prefix = prefix or "/luasocket-test"
|
||||||
cgiprefix = cgiprefix or "/luasocket-test-cgi"
|
cgiprefix = cgiprefix or "/luasocket-test-cgi"
|
||||||
index_file = "index.html"
|
index_file = "index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user