Comparison

net/server.lua @ 1035:8cc7e4452b2b

net.server: Fix global access
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 20:19:04 +0100
parent 999:c088139d8f05
child 1036:b2e19c66ec7f
comparison
equal deleted inserted replaced
1034:2b0aba0bb013 1035:8cc7e4452b2b
784 _sendlist[ socket ] = _sendlistlen 784 _sendlist[ socket ] = _sendlistlen
785 return handler, socket 785 return handler, socket
786 end 786 end
787 787
788 local addclient = function( address, port, listeners, pattern, sslctx, startssl ) 788 local addclient = function( address, port, listeners, pattern, sslctx, startssl )
789 local client, err = socket.tcp( ) 789 local client, err = luasocket.tcp( )
790 if err then 790 if err then
791 return nil, err 791 return nil, err
792 end 792 end
793 client:settimeout( 0 ) 793 client:settimeout( 0 )
794 _, err = client:connect( address, port ) 794 _, err = client:connect( address, port )