|
|
@ -50,7 +50,7 @@ function server:accept()
|
|
|
|
if id~=nil then
|
|
|
|
if id~=nil then
|
|
|
|
return client{server_id=self.server_id,client_id=id}
|
|
|
|
return client{server_id=self.server_id,client_id=id}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -64,4 +64,4 @@ function tcp:connect( address,port )
|
|
|
|
return client{client_id=id}
|
|
|
|
return client{client_id=id}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
--TODO garbage collect stuff
|
|
|
|
--TODO garbage collect stuff
|
|
|
|
return _ENV
|
|
|
|
return _ENV
|
|
|
|