Packet DHTgetCAPIResponse

File: src/common/CommonMessages.msg

Message type to respond to a DHTget request

See also: DHTget

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:

BaseResponseMessage (packet)

A basic Remote-Procedure-Response message

Fields:

Name Type Description
srcNode NodeHandle

source node

coords double[]
statType int

message type for stats

error double
nonce unsigned int

nonce to match RPC responses to corresponding calls

value BinaryValue

the requested value

isSuccess bool
type int

message type

key OverlayKey

Source code:

//
// Message type to respond to a DHTget request @see DHTget
//
// @author Ingmar Baumgart
//
packet DHTgetCAPIResponse extends BaseResponseMessage
{
    OverlayKey key;
    BinaryValue value; // the requested value
    bool isSuccess;
}