Comparison

net/server.lua @ 994:8fd4efc3ed96

net.server: Remove some debug code which slipped through
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Apr 2009 03:06:22 +0100
parent 989:ec239c044f31
child 996:6fb96dffb2c1
comparison
equal deleted inserted replaced
993:b2e9456dc200 994:8fd4efc3ed96
731 return; 731 return;
732 end 732 end
733 733
734 loop = function( ) -- this is the main loop of the program 734 loop = function( ) -- this is the main loop of the program
735 while dontstop do 735 while dontstop do
736 out_put(tostring(dontstop))
737 local read, write, err = socket_select( _readlist, _sendlist, _selecttimeout ) 736 local read, write, err = socket_select( _readlist, _sendlist, _selecttimeout )
738 for i, socket in ipairs( write ) do -- send data waiting in writequeues 737 for i, socket in ipairs( write ) do -- send data waiting in writequeues
739 local handler = _socketlist[ socket ] 738 local handler = _socketlist[ socket ]
740 if handler then 739 if handler then
741 handler.sendbuffer( ) 740 handler.sendbuffer( )