Software /
code /
prosody
Diff
net/server_event.lua @ 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 |
parent | 2374:9b6a9d521620 |
child | 2434:4403d4473783 |
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