Comparison

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
comparison
equal deleted inserted replaced
2374:9b6a9d521620 2375:31297a5641e3
621 eventread = false; -- read event handler 621 eventread = false; -- read event handler
622 eventclose = false; -- close event handler 622 eventclose = false; -- close event handler
623 readcallback = false; -- read event callback 623 readcallback = false; -- read event callback
624 fatalerror = false; -- error message 624 fatalerror = false; -- error message
625 nointerface = true; -- lock/unlock parameter 625 nointerface = true; -- lock/unlock parameter
626
627 _ip = addr, _port = port, _pattern = pattern,
628 _sslctx = sslctx;
626 } 629 }
627 interface.id = tostring(interface):match("%x+$"); 630 interface.id = tostring(interface):match("%x+$");
628 interface.readcallback = function( event ) -- server handler, called on incoming connections 631 interface.readcallback = function( event ) -- server handler, called on incoming connections
629 --vdebug( "server can accept, id/addr/port:", interface, addr, port ) 632 --vdebug( "server can accept, id/addr/port:", interface, addr, port )
630 if interface.fatalerror then 633 if interface.fatalerror then