Mon, 15 Feb 2010 06:25:25 +0500
buffer_event.h, event_buffer.h, event_callback.h: Remove sys/time.h, and other redundant #includes.
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 print("COMPLETE") end luaevent.addthread(func) luaevent.loop()