* Reworked FTN packet I/O (WIP)

* Detect FTN packet 2, 2.2, and 2+
* Various FTN utils (MSGID, Origin, PID, generation etc)
* More work on message network readyness
This commit is contained in:
Bryan Ashby 2016-02-09 22:30:59 -07:00
parent 317af8419a
commit dec78e942d
11 changed files with 377 additions and 708 deletions

View file

@ -17,7 +17,7 @@ function Message(options) {
this.messageId = options.messageId || 0; // always generated @ persist
this.areaTag = options.areaTag || Message.WellKnownAreaTags.Invalid;
this.uuid = uuid.v1();
this.uuid = options.uuid || uuid.v1();
this.replyToMsgId = options.replyToMsgId || 0;
this.toUserName = options.toUserName || '';
this.fromUserName = options.fromUserName || '';