luaevent/test/testClient.lua

changeset 13
3e2ea1e7b2e8
parent 12
a9b590350c03
child 14
2bc0eb496976
--- a/luaevent/test/testClient.lua	Tue Aug 28 17:50:26 2007 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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

mercurial