Diff

net/server_event.lua @ 3149:5aca2f01c0f9

net.server_event: Also return the socket from wrapclient, to maintain compatibility with server_select (thanks uhoreg)
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Jun 2010 21:33:44 +0100
parent 3003:48871a549b4c
child 3237:721a83a3beb9
line wrap: on
line diff
--- a/net/server_event.lua	Wed May 26 13:38:00 2010 +0100
+++ b/net/server_event.lua	Wed Jun 02 21:33:44 2010 +0100
@@ -750,7 +750,7 @@
 	function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl )
 		local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx )
 		interface:_start_session()
-		return interface
+		return interface, client
 		--function handleclient( client, ip, port, server, pattern, listener, _, sslctx )  -- creates an client interface
 	end