Diff

net/server_select.lua @ 2339:b04014f42fce

net.server_select: Add get_backend() method
author Matthew Wild <mwild1@gmail.com>
date Tue, 08 Dec 2009 01:22:09 +0000
parent 2318:a831de056de3
child 2423:0597c553acf2
line wrap: on
line diff
--- a/net/server_select.lua	Tue Dec 08 01:16:24 2009 +0000
+++ b/net/server_select.lua	Tue Dec 08 01:22:09 2009 +0000
@@ -845,6 +845,10 @@
     return "quitting"
 end
 
+local function get_backend()
+	return "select";
+end
+
 --// EXPERIMENTAL //--
 
 local wrapclient = function( socket, ip, serverport, listeners, pattern, sslctx, startssl )
@@ -917,5 +921,6 @@
     getsettings = getsettings,
     setquitting = setquitting,
     removeserver = removeserver,
+    get_backend = get_backend,
     changesettings = changesettings,
 }