From 894d94669187e906df97ad01473d2cb7041b97ae Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 17 Dec 2009 20:30:41 +0000 Subject: net.server_event: Add properties like _ip and _port to server objects too --- net/server_event.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/server_event.lua b/net/server_event.lua index 2f9ab7d9..53198a12 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -623,6 +623,9 @@ do 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 -- cgit v1.2.3