Comparison

net/server_select.lua @ 2559:a90a00ebae25

net.server_select: listener.status -> listener.onstatus for consistency
author Matthew Wild <mwild1@gmail.com>
date Sun, 31 Jan 2010 19:56:22 +0000
parent 2549:55a50e75c0c0
child 2581:1b9f424e695e
comparison
equal deleted inserted replaced
2558:0a65fc0c7bee 2559:a90a00ebae25
247 --// private closures of the object //-- 247 --// private closures of the object //--
248 248
249 local ssl 249 local ssl
250 250
251 local dispatch = listeners.onincoming 251 local dispatch = listeners.onincoming
252 local status = listeners.status 252 local status = listeners.onstatus
253 local disconnect = listeners.ondisconnect 253 local disconnect = listeners.ondisconnect
254 254
255 local bufferqueue = { } -- buffer array 255 local bufferqueue = { } -- buffer array
256 local bufferqueuelen = 0 -- end of buffer array 256 local bufferqueuelen = 0 -- end of buffer array
257 257
280 return disconnect 280 return disconnect
281 end 281 end
282 handler.setlistener = function( self, listeners ) 282 handler.setlistener = function( self, listeners )
283 dispatch = listeners.onincoming 283 dispatch = listeners.onincoming
284 disconnect = listeners.ondisconnect 284 disconnect = listeners.ondisconnect
285 status = listeners.onstatus
285 end 286 end
286 handler.getstats = function( ) 287 handler.getstats = function( )
287 return readtraffic, sendtraffic 288 return readtraffic, sendtraffic
288 end 289 end
289 handler.ssl = function( ) 290 handler.ssl = function( )