![Smile :)](./images/smilies/ms-smile.png)
EDIT - Good lord, UDP holepunch sounds complicated. I'll try port opening first, if that's possible.
Of course, it's not going to be possible in general, so if anyone has successfully implemented UDP holepunch with LUBE, let me know.
Code: Select all
function Client.receive(data)
lube.bin:setseperators(string.char(30),string.char(31))
local datatable = lube.bin:unpack(data)
local playertable = {}
for n,p in pairs(datatable) do
lube.bin:setseperators(string.char(1),string.char(2))
playertable[n] = lube.bin:unpack(p)
-- Now everything is unpacked you call your own function to do something with it
playerobject[n]:updatedata(playertable[n])
end
end
Code: Select all
self.socket:setoption("reuseaddr", true)
Users browsing this forum: Ahrefs [Bot] and 3 guests