aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-01-25 21:57:07 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-01-25 21:57:07 +0000
commit68f51243b38bf1e32d471e9cc9ddf12a25110e80 (patch)
treed2b99215d61a5ba780efe1b67d44512a94cf0f78
parent03e063c21eb153197d56cc82fa0356a15d7a467f (diff)
downloadluasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.tar.gz
luasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.tar.bz2
luasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.zip
Parameter passing updated.
-rw-r--r--samples/listener.lua4
-rw-r--r--samples/talker.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/samples/listener.lua b/samples/listener.lua
index a47d9a3..5e1eb02 100644
--- a/samples/listener.lua
+++ b/samples/listener.lua
@@ -1,5 +1,5 @@
1host = "localhost" 1host = host or "localhost"
2port = 8080 2port = host or 8080
3if arg then 3if arg then
4 host = arg[1] or host 4 host = arg[1] or host
5 port = arg[2] or port 5 port = arg[2] or port
diff --git a/samples/talker.lua b/samples/talker.lua
index b3313e6..d66cf66 100644
--- a/samples/talker.lua
+++ b/samples/talker.lua
@@ -1,5 +1,5 @@
1host = "localhost" 1host = host or "localhost"
2port = 8080 2port = port or 8080
3if arg then 3if arg then
4 host = arg[1] or host 4 host = arg[1] or host
5 port = arg[2] or port 5 port = arg[2] or port