Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -record(packet,{ % using Big-Endian, This is Network!
- HEAD = 16# 0000 002A, % 42, no comment, simple 42
- VERS = 16# 0000 0001, % protocol version
- SIZE = 16# 0000 0000, % sizeof(crypted_data); //max 4294967295 byte (4GB) or 8#00, then max 65536 byte (64KB) ;
- DATA = 16# 0000 0000, % crypted_data
- TAIL = 16# 0000 0000, % needed magic const, for end packet
- CRC32 = 16# ffff ffff % CRC32(crypted_data); - 4 byte
- }
- ).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement