Packet LookupResponse

File: src/common/CommonMessages.msg

Internal RPC response from overlay containing lookup results

Author: Ingmar Baumgart

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends:

BaseResponseMessage (packet)

A basic Remote-Procedure-Response message

Fields:

Name Type Description
srcNode NodeHandle

source node

hopCount int

the accumulated hop count for this lookup

statType int

message type for stats

authBlock AuthBlock[]

optional authentication block containing a signature

nonce unsigned int

nonce to match RPC responses to corresponding calls

callHopCount int
type int

message type

siblings NodeHandle[]

the siblings for the key (closest nodes=

isValid bool

true if this lookup finished successfully

ncsInfo double[]

info block for network coordinate systems

key OverlayKey

the lookup key

Source code:

//
// Internal RPC response from overlay containing lookup results
// @author Ingmar Baumgart
//
packet LookupResponse extends BaseResponseMessage
{
    OverlayKey key;        // the lookup key
    int hopCount = 0;      // the accumulated hop count for this lookup
    bool isValid;          // true if this lookup finished successfully
    NodeHandle siblings[]; // the siblings for the key (closest nodes=
}