mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 06:18: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,
|
||||
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
10
config
@ -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
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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
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
|
||||
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>
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user