Define and detect different packet types (2,2e,2+,2.2)

This commit is contained in:
2023-06-25 22:45:02 +12:00
parent fa3653a94b
commit a26f61d75d
10 changed files with 678 additions and 266 deletions

View File

@@ -71,7 +71,7 @@ class Message extends FTNBase
public const FLAG_ECHOMAIL = 1<<16;
// FTS-0001.016 Message header 32 bytes node, net, flags, cost, date
private const HEADER_LEN = 0x20; // Length of message header
public const HEADER_LEN = 0x20; // Length of message header
private const header = [ // Struct of message header
'onode' => [0x00,'v',2], // Originating Node
'dnode' => [0x02,'v',2], // Destination Node