Comparison

net/server_event.lua @ 2340:b286d60cb4fc

net.server_event: Add get_backend() method
author Matthew Wild <mwild1@gmail.com>
date Tue, 08 Dec 2009 01:22:54 +0000
parent 2336:fb1d9d2444df
child 2367:22dc9005360f
comparison
equal deleted inserted replaced
2339:b04014f42fce 2340:b286d60cb4fc
772 closeallservers(); 772 closeallservers();
773 base:loopexit(); 773 base:loopexit();
774 end 774 end
775 end 775 end
776 776
777 function get_backend()
778 return base:method();
779 end
780
777 return { 781 return {
778 782
779 cfg = cfg, 783 cfg = cfg,
780 base = base, 784 base = base,
781 loop = loop, 785 loop = loop,
785 addserver = addserver, 789 addserver = addserver,
786 addclient = addclient, 790 addclient = addclient,
787 wrapclient = wrapclient, 791 wrapclient = wrapclient,
788 setquitting = setquitting, 792 setquitting = setquitting,
789 closeall = closeallservers, 793 closeall = closeallservers,
794 get_backend = get_backend,
790 795
791 __NAME = SCRIPT_NAME, 796 __NAME = SCRIPT_NAME,
792 __DATE = LAST_MODIFIED, 797 __DATE = LAST_MODIFIED,
793 __AUTHOR = SCRIPT_AUTHOR, 798 __AUTHOR = SCRIPT_AUTHOR,
794 __VERSION = SCRIPT_VERSION, 799 __VERSION = SCRIPT_VERSION,