Diff

net/server_select.lua @ 2109:0dc5eb9dbb62

net.server_select: Change addserver() parameters to be compatible with new standard syntax
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:19:57 +0000
parent 2093:abfa1cc3a42f
child 2131:72411e239221
line wrap: on
line diff
--- a/net/server_select.lua	Sat Nov 21 17:16:46 2009 +0000
+++ b/net/server_select.lua	Sat Nov 21 17:19:57 2009 +0000
@@ -692,7 +692,7 @@
 
 ----------------------------------// PUBLIC //--
 
-addserver = function( listeners, port, addr, pattern, sslctx, maxconnections, startssl )    -- this function provides a way for other scripts to reg a server
+addserver = function( addr, port, listeners, pattern, sslctx, startssl )    -- this function provides a way for other scripts to reg a server
     local err
     --out_put("server.lua: autossl on ", port, " is ", startssl)
     if type( listeners ) ~= "table" then
@@ -715,7 +715,7 @@
         out_error( "server.lua, port ", port, ": ", err )
         return nil, err
     end
-    local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, maxconnections, startssl )    -- wrap new server socket
+    local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, _maxclientsperserver, startssl )    -- wrap new server socket
     if not handler then
         server:close( )
         return nil, err