diff options
Diffstat (limited to 'luaevent/test/testClient.lua')
-rw-r--r-- | luaevent/test/testClient.lua | 19 |
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 |