Comparison

net/server_event.lua @ 4905:274ef78aa173

net.server_event: Assume wrapclient() is taking a new connection, and call onconnect when appropriate (to match server_select)
author Matthew Wild <mwild1@gmail.com>
date Thu, 24 May 2012 02:55:37 +0100
parent 4676:1ce2ff9ec313
child 4907:32b638a8da5b
comparison
equal deleted inserted replaced
4904:5d2ff4627b72 4905:274ef78aa173
742 742
743 local addclient, wrapclient 743 local addclient, wrapclient
744 do 744 do
745 function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl ) 745 function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl )
746 local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx ) 746 local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx )
747 interface:_start_session() 747 interface:_start_connection(sslctx)
748 return interface, client 748 return interface, client
749 --function handleclient( client, ip, port, server, pattern, listener, _, sslctx ) -- creates an client interface 749 --function handleclient( client, ip, port, server, pattern, listener, _, sslctx ) -- creates an client interface
750 end 750 end
751 751
752 function addclient( addr, serverport, listener, pattern, localaddr, localport, sslcfg, startssl ) 752 function addclient( addr, serverport, listener, pattern, localaddr, localport, sslcfg, startssl )