mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
Merge pull request #671 from MihailRis/debugging-client
Debugging client
This commit is contained in:
commit
6def370c2b
35 changed files with 430 additions and 73 deletions
|
|
@ -39,6 +39,16 @@ end
|
|||
local Socket = {__index={
|
||||
send=function(self, ...) return network.__send(self.id, ...) end,
|
||||
recv=function(self, ...) return network.__recv(self.id, ...) end,
|
||||
recv_async=function(self, length, usetable)
|
||||
while self:is_alive() do
|
||||
local available = self:available()
|
||||
if available >= length then
|
||||
return self:recv(length, usetable)
|
||||
end
|
||||
coroutine.yield()
|
||||
end
|
||||
return self:recv(length, usetable)
|
||||
end,
|
||||
close=function(self) return network.__close(self.id) end,
|
||||
available=function(self) return network.__available(self.id) or 0 end,
|
||||
is_alive=function(self) return network.__is_alive(self.id) end,
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ local function complete_app_lib(app)
|
|||
end
|
||||
app.reset_content = core.reset_content
|
||||
app.is_content_loaded = core.is_content_loaded
|
||||
app.set_title = core.set_title
|
||||
|
||||
function app.config_packs(packs_list)
|
||||
-- Check if packs are valid and add dependencies to the configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue