Error

#include <kademlia/error.hpp>

enum kademlia::error_type

Represents all the library specific errors

enumerator UNKNOWN_ERROR = 1

An unknown error.

enumerator RUN_ABORTED

The session::abort() has been called.

enumerator INITIAL_PEER_FAILED_TO_RESPOND

The session failed to contact a valid peer uppon creation.

enumerator MISSING_PEERS

The session routing table is missing peers.

enumerator INVALID_ID

An id has been corrupted.

enumerator TRUNCATED_ID

An id has been truncated.

enumerator TRUNCATED_HEADER

A packet header from the network is corrupted.

enumerator TRUNCATED_ENDPOINT

An endpoint information has been corrupted.

enumerator TRUNCATED_ADDRESS

An endpoint address has been corrupted.

enumerator TRUNCATED_SIZE

A list has been corrupted.

enumerator UNKNOWN_PROTOCOL_VERSION

A message from an unknown version of the library has been received.

enumerator CORRUPTED_BODY

A packet body has been corrupted.

enumerator UNASSOCIATED_MESSAGE_ID

An unexpected response has been received.

enumerator INVALID_IPV4_ADDRESS

The provided IPv4 address is invalid.

enumerator INVALID_IPV6_ADDRESS

The provided IPv6 address is invalid.

enumerator UNIMPLEMENTED

The function/method has been implemented yet.

enumerator VALUE_NOT_FOUND

The value associated with the requested key has not been found.

enumerator TIMER_MALFUNCTION

The internal timer failed to tick.

enumerator ALREADY_RUNNING

Another call to session::run() is still blocked.