Module ethcore_light::net [] [src]

LES Protocol Version 1 implementation.

This uses a "Provider" to answer requests. See https://github.com/ethcore/parity/wiki/Light-Ethereum-Subprotocol-(LES)

Modules

buffer_flow

LES buffer flow management.

Structs

Announcement

An announcement of new chain head or capabilities made by a peer.

Capabilities

Peer capabilities.

LightProtocol

This is an implementation of the light ethereum network protocol, abstracted over a Provider of data and a p2p network.

Params

Protocol parameters.

Peer

Relevant data to each peer. Not accessible publicly, only pub due to limitations of the privacy system.

ReqId

A request id.

Status

A peer status message.

Enums

Error

Kinds of errors which can be encountered in the course of LES.

Constants

MAX_PROTOCOL_VERSION

Max protocol version.

PACKET_COUNT

Packet count for LES.

PROTOCOL_VERSIONS

Supported protocol versions.

Traits

BasicContext

Basic context for the protocol.

EventContext

Context for a protocol event which has a peer ID attached.

Handler

An LES event handler.

IoContext

An I/O context which allows sending and receiving packets as well as disconnecting peers. This is used as a generalization of the portions of a p2p network which the light protocol structure makes use of.

Type Definitions

PeerMap

Type alias for convenience.