diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-01-25 21:57:07 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-01-25 21:57:07 +0000 |
commit | 68f51243b38bf1e32d471e9cc9ddf12a25110e80 (patch) | |
tree | d2b99215d61a5ba780efe1b67d44512a94cf0f78 | |
parent | 03e063c21eb153197d56cc82fa0356a15d7a467f (diff) | |
download | luasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.tar.gz luasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.tar.bz2 luasocket-68f51243b38bf1e32d471e9cc9ddf12a25110e80.zip |
Parameter passing updated.
-rw-r--r-- | samples/listener.lua | 4 | ||||
-rw-r--r-- | samples/talker.lua | 4 |
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 @@ | |||
1 | host = "localhost" | 1 | host = host or "localhost" |
2 | port = 8080 | 2 | port = host or 8080 |
3 | if arg then | 3 | if 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 @@ | |||
1 | host = "localhost" | 1 | host = host or "localhost" |
2 | port = 8080 | 2 | port = port or 8080 |
3 | if arg then | 3 | if 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 |