Merge branch 'master' of github.com:thirtythreeforty/neolink into protocol_updates

This commit is contained in:
QuantumEntangledAndy committed 2021-04-15 08:04:30 +07:00
commit a2ca630bdd
21 files changed
+616 -402

No files matched your search

+6 -1
View File
@@ -165,7 +165,12 @@ end
function get_header_len(buffer)
local magic = buffer(0, 4):le_uint()
if magic ~= 0x0abcdef0 then
if magic == 0x0abcdef0 then
-- Client <-> BC
elseif magic == 0x0fedcba0 then
-- BC <-> BC
else
-- Unknown magic
return -1 -- No header found
end
local header_len = header_lengths[buffer(18, 2):le_uint()]