Comparison

net/server.lua @ 1865:388b125b784a

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Oct 2009 21:24:16 +0100
parent 1806:c55e06eb53b2
parent 1863:51b1612325e6
child 1881:35e05b77f6ce
comparison
equal deleted inserted replaced
1862:115f274dd17f 1865:388b125b784a
718 end 718 end
719 719
720 removeserver = function( port ) 720 removeserver = function( port )
721 local handler = _server[ port ] 721 local handler = _server[ port ]
722 if not handler then 722 if not handler then
723 return nil, "no server found on port '" .. tostring( port ) "'" 723 return nil, "no server found on port '" .. tostring( port ) .. "'"
724 end 724 end
725 handler.close( ) 725 handler.close( )
726 _server[ port ] = nil 726 _server[ port ] = nil
727 return true 727 return true
728 end 728 end