Skip to content
Snippets Groups Projects
Commit 0a2ce78c authored by deuce's avatar deuce
Browse files

Add flo_outbound(default_zone) method to determine the path to append to the

base outbound for a specified node.
parent 4e4ff0c3
Branches
Tags
No related merge requests found
......@@ -174,3 +174,16 @@ FIDO.Addr.prototype.toString = function()
{
return this.str;
};
FIDO.Addr.prototype.flo_outbound = function(default_zone)
{
// backslash() doesn't work on an empty string
var ret = '_';
if (this.zone !== undefined && this.zone !== default_zone)
ret += format(".%03x", this.zone);
ret = backslash(ret);
if (this.point !== undefined)
ret += backslash(format("%08x.pnt", this.point));
ret += format("%04x%04x.", this.net, this.node);
return ret.substr(1);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment