poppy-client/server/networkBuffer.lua

14 lines
431 B
Lua

local nwBuffer = {}
nwBuffer.replyBuffers = {}
-- This implementation requires the client to supply a requestID, so that it later can
-- tell if the transfer suceeded or not, and re-request data out of a chunked reply.
nwbuffer.commands.requestChunk(clientID, args)
local chunkNumber = args
if replybuffers[clientID .. "_" .. args] then
reply(clientID, "chunk", args, chunk[clientID .. "_" .. args])
end
end
return nwBuffer