diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/cddb.lua | 4 | ||||
-rw-r--r-- | samples/daytimeclnt.lua | 2 | ||||
-rw-r--r-- | samples/echosrvr.lua | 2 | ||||
-rw-r--r-- | samples/talker.lua | 2 | ||||
-rw-r--r-- | samples/tinyirc.lua | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/samples/cddb.lua b/samples/cddb.lua index aefa04e..daa5df1 100644 --- a/samples/cddb.lua +++ b/samples/cddb.lua | |||
@@ -1,5 +1,5 @@ | |||
1 | socket = require("socket") | 1 | local socket = require("socket") |
2 | http = require("http") | 2 | local http = require("http") |
3 | 3 | ||
4 | if not arg or not arg[1] or not arg[2] then | 4 | if not arg or not arg[1] or not arg[2] then |
5 | print("luasocket cddb.lua <category> <disc-id> [<server>]") | 5 | print("luasocket cddb.lua <category> <disc-id> [<server>]") |
diff --git a/samples/daytimeclnt.lua b/samples/daytimeclnt.lua index b4075e9..6a26ffc 100644 --- a/samples/daytimeclnt.lua +++ b/samples/daytimeclnt.lua | |||
@@ -4,7 +4,7 @@ | |||
4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
5 | -- RCS ID: $Id$ | 5 | -- RCS ID: $Id$ |
6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
7 | require"socket" | 7 | local socket = require"socket" |
8 | host = host or "127.0.0.1" | 8 | host = host or "127.0.0.1" |
9 | port = port or 13 | 9 | port = port or 13 |
10 | if arg then | 10 | if arg then |
diff --git a/samples/echosrvr.lua b/samples/echosrvr.lua index 73bf374..3ebbe85 100644 --- a/samples/echosrvr.lua +++ b/samples/echosrvr.lua | |||
@@ -4,7 +4,7 @@ | |||
4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
5 | -- RCS ID: $Id$ | 5 | -- RCS ID: $Id$ |
6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
7 | socket = require("socket") | 7 | local socket = require("socket") |
8 | host = host or "127.0.0.1" | 8 | host = host or "127.0.0.1" |
9 | port = port or 7 | 9 | port = port or 7 |
10 | if arg then | 10 | if arg then |
diff --git a/samples/talker.lua b/samples/talker.lua index bafd021..3f6e69c 100644 --- a/samples/talker.lua +++ b/samples/talker.lua | |||
@@ -4,7 +4,7 @@ | |||
4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
5 | -- RCS ID: $Id$ | 5 | -- RCS ID: $Id$ |
6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
7 | socket = require("socket") | 7 | local socket = require("socket") |
8 | host = host or "localhost" | 8 | host = host or "localhost" |
9 | port = port or 8080 | 9 | port = port or 8080 |
10 | if arg then | 10 | if arg then |
diff --git a/samples/tinyirc.lua b/samples/tinyirc.lua index 85ebe29..13f42ec 100644 --- a/samples/tinyirc.lua +++ b/samples/tinyirc.lua | |||
@@ -4,7 +4,7 @@ | |||
4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
5 | -- RCS ID: $Id$ | 5 | -- RCS ID: $Id$ |
6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
7 | socket = require("socket") | 7 | local socket = require("socket") |
8 | host = host or "*" | 8 | host = host or "*" |
9 | port1 = port1 or 8080 | 9 | port1 = port1 or 8080 |
10 | port2 = port2 or 8181 | 10 | port2 = port2 or 8181 |