Ravn::

Net module

EventMesh networking library for Ravn systems.

This is a p2p messaging library built on top of the ZeroMQ Realtime Exchange Protocol (36/ZRE) as inplemented in the Zyre library.

Refs: - rfc.zeromq.org/spec/36/

SBIR DATA RIGHTS

Contract No. FA8649-19-9-9031 Contractor Name: Ravn Inc. Contractor Address: 548 Market Street, PMB 80382, San Francisco, CA 94104, United States Expiration of SBIR Data Rights Period: 7 August 2039

The Government’s rights to use, modify, reproduce, release, perform, display, or disclose technical data or computer software marked with this legend are restricted during the period shown as provided in paragraph (b)(4) of the Rights in Noncommercial Technical Data and Computer Software—Small Business Innovation Research (SBIR) Program clause contained in the above identified contract. No restrictions apply after the expiration date shown above. Any reproduction of technical data, computer software, or portions thereof marked with this legend must also reproduce the markings.

Constants

DEFAULT_GATEWAYS

The default gateways to start up

VERSION

Package version

Public Class Methods

make_node_id()

Create a universally-unique node identifier.

# File lib/ravn/net.rb, line 95
def self::make_node_id
        bytes = String.new( encoding: Encoding::ASCII_8BIT )
        bytes << RbConfig::CONFIG[ 'host' ]
        bytes << '-'
        bytes << Mac.addr

        rawhash = RbNaCl::Hash.blake2b( bytes, personal: 'ravn-net' )
        return [ rawhash ].pack( 'm0' )
end
node_id()

Return a universally-unique identifier for the current host.

# File lib/ravn/net.rb, line 89
def self::node_id
        return @node_id ||= self.make_node_id
end