Comparison

net/server_event.lua @ 2117:ce42307f0938

net.server_event: Use correct listener callbacks
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 03:51:31 +0000
parent 2116:719f95428522
child 2118:2e2e1b46cfe2
comparison
equal deleted inserted replaced
2116:719f95428522 2117:ce42307f0938
210 self:_lock( false, false, false ) -- unlock the interface; sending, closing etc allowed 210 self:_lock( false, false, false ) -- unlock the interface; sending, closing etc allowed
211 self.send = self.conn.send -- caching table lookups with new client object 211 self.send = self.conn.send -- caching table lookups with new client object
212 self.receive = self.conn.receive 212 self.receive = self.conn.receive
213 local onsomething 213 local onsomething
214 if "onconnect" == arg then -- trigger listener 214 if "onconnect" == arg then -- trigger listener
215 onsomething = self.listener.onconnect 215 onsomething = self.onconnect
216 else 216 else
217 onsomething = self.listener.onsslconnection 217 onsomething = self.onsslconnection
218 end 218 end
219 self:_start_session( onsomething ) 219 self:_start_session( onsomething )
220 debug( "ssl handshake done" ) 220 debug( "ssl handshake done" )
221 self.eventhandshake = nil 221 self.eventhandshake = nil
222 return -1 222 return -1