Comparison

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
comparison
equal deleted inserted replaced
2338:2a163f6a4bc2 2339:b04014f42fce
843 --collectgarbage( ) 843 --collectgarbage( )
844 end 844 end
845 return "quitting" 845 return "quitting"
846 end 846 end
847 847
848 local function get_backend()
849 return "select";
850 end
851
848 --// EXPERIMENTAL //-- 852 --// EXPERIMENTAL //--
849 853
850 local wrapclient = function( socket, ip, serverport, listeners, pattern, sslctx, startssl ) 854 local wrapclient = function( socket, ip, serverport, listeners, pattern, sslctx, startssl )
851 local handler = wrapconnection( nil, listeners, socket, ip, serverport, "clientport", pattern, sslctx, startssl ) 855 local handler = wrapconnection( nil, listeners, socket, ip, serverport, "clientport", pattern, sslctx, startssl )
852 _socketlist[ socket ] = handler 856 _socketlist[ socket ] = handler
915 addserver = addserver, 919 addserver = addserver,
916 getserver = getserver, 920 getserver = getserver,
917 getsettings = getsettings, 921 getsettings = getsettings,
918 setquitting = setquitting, 922 setquitting = setquitting,
919 removeserver = removeserver, 923 removeserver = removeserver,
924 get_backend = get_backend,
920 changesettings = changesettings, 925 changesettings = changesettings,
921 } 926 }