Merge branch 'master' of github.com:thirtythreeforty/neolink into protocol_updates
This commit is contained in:
21 files changed
+616
-402
No files matched your search
@@ -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()]
|
||||
|
||||
Reference in new issue
Block a user