net/httpclient_listener.lua

changeset 2126
fcdcdf00787c
parent 1522
569d58d21612
child 2674
a1fdfd7318df
--- a/net/httpclient_listener.lua	Sun Nov 22 04:42:47 2009 +0000
+++ b/net/httpclient_listener.lua	Sun Nov 22 04:43:46 2009 +0000
@@ -15,7 +15,7 @@
 
 local httpclient = { default_port = 80, default_mode = "*a" };
 
-function httpclient.listener(conn, data)
+function httpclient.onincoming(conn, data)
 	local request = requests[conn];
 
 	if not request then
@@ -28,7 +28,7 @@
 	end
 end
 
-function httpclient.disconnect(conn, err)
+function httpclient.ondisconnect(conn, err)
 	local request = requests[conn];
 	if request then
 		request:reader(nil);

mercurial