Comparison

net/server_select.lua @ 2250:3196dabe8a36

net.server_select: Update conn.close() to use new connection method convention
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Nov 2009 14:09:53 +0000
parent 2233:459c1d1cae95
child 2302:2dc9bbf25447
comparison
equal deleted inserted replaced
2249:6e0c861dc61f 2250:3196dabe8a36
351 return receive( socket, pattern, prefix ) 351 return receive( socket, pattern, prefix )
352 end 352 end
353 handler.shutdown = function( pattern ) 353 handler.shutdown = function( pattern )
354 return shutdown( socket, pattern ) 354 return shutdown( socket, pattern )
355 end 355 end
356 handler.close = function( forced ) 356 handler.close = function( self, forced )
357 if not handler then return true; end 357 if not handler then return true; end
358 _readlistlen = removesocket( _readlist, socket, _readlistlen ) 358 _readlistlen = removesocket( _readlist, socket, _readlistlen )
359 _readtimes[ handler ] = nil 359 _readtimes[ handler ] = nil
360 if bufferqueuelen ~= 0 then 360 if bufferqueuelen ~= 0 then
361 if not ( forced or fatalerror ) then 361 if not ( forced or fatalerror ) then