Changeset

2375:31297a5641e3

net.server_event: Add properties like _ip and _port to server objects too
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Dec 2009 20:30:41 +0000
parents 2374:9b6a9d521620
children 2376:c5faafa89f50
files net/server_event.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Thu Dec 17 20:30:10 2009 +0000
+++ b/net/server_event.lua	Thu Dec 17 20:30:41 2009 +0000
@@ -623,6 +623,9 @@
 			readcallback = false; -- read event callback
 			fatalerror = false; -- error message
 			nointerface = true;  -- lock/unlock parameter
+			
+			_ip = addr, _port = port, _pattern = pattern,
+			_sslctx = sslctx;
 		}
 		interface.id = tostring(interface):match("%x+$");
 		interface.readcallback = function( event )  -- server handler, called on incoming connections