aboutsummaryrefslogtreecommitdiffstats
path: root/luaevent/test/testClient.lua
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
commit4c2a04eded5c66c6696d4b53aee339f0f3ab8155 (patch)
treee5ad5a8ea9377f7b1c18732f094c11bcb610ae81 /luaevent/test/testClient.lua
parentae3262e075eadefbae445e64576f6a10f0d3e236 (diff)
downloadluaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.tar.gz
luaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.zip
Reformed project layout from 'luaevent/*' -> '*'
Diffstat (limited to 'luaevent/test/testClient.lua')
-rw-r--r--luaevent/test/testClient.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/luaevent/test/testClient.lua b/luaevent/test/testClient.lua
deleted file mode 100644
index fbbcf87..0000000
--- a/luaevent/test/testClient.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-require"luaevent"
-require"socket"
-local oldPrint = print
-print = function(...)
- oldPrint("CLT", ...)
-end
-
-local function func()
- print("ACTIVATED")
- local sock = socket.tcp()
- --sock:
- sock = luaevent.wrap(sock)
- print(assert(sock:connect("localhost", 20000)))
- for i = 1, 100 do assert(sock:send("Greet me ")) assert(sock:receive(10)) collectgarbage() end
-end
-
-luaevent.addthread(func)
-
-luaevent.loop() \ No newline at end of file