Changeset

2244:730038d3e9e3

mod_proxy65: Update listener callback names for new server API
author sjoerd.simons@collabora.co.uk
date Fri, 27 Nov 2009 16:51:05 +0000
parents 2243:bd17dd75b4a5
children 2245:df9e18f5c808
files plugins/mod_proxy65.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua	Fri Nov 27 00:19:56 2009 +0100
+++ b/plugins/mod_proxy65.lua	Fri Nov 27 16:51:05 2009 +0000
@@ -31,7 +31,7 @@
 
 local connlistener = { default_port = proxy_port, default_interface = proxy_interface, default_mode = "*a" };
 
-function connlistener.listener(conn, data)
+function connlistener.onincoming(conn, data)
 	local session = sessions[conn] or {};
 	
 	if session.setup == nil and data ~= nil and data:sub(1):byte() == 0x05 and data:len() > 2 then
@@ -94,7 +94,7 @@
 	end
 end
 
-function connlistener.disconnect(conn, err)
+function connlistener.ondisconnect(conn, err)
 	local session = sessions[conn];
 	if session then
 		if session.sha and transfers[session.sha] then