Packet LookupResponse

File: src/common/CommonMessages.msg

C++ definition

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. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

Name Type Description
BaseResponseMessage packet

A basic Remote-Procedure-Response message

Fields:

Name Type Description
key OverlayKey

the lookup key

hopCount int

the accumulated hop count for this lookup

isValid bool

true if this lookup finished successfully

siblings NodeHandle[]

the siblings for the key (closest nodes=

callHopCount int
ncsInfo double[]

info block for network coordinate systems

nonce unsigned int

nonce to match RPC responses to corresponding calls

srcNode NodeHandle

source node

authBlock AuthBlock[]

optional authentication block containing a signature

type int

message type

statType int

message type for stats

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=
}