Uses of Interface
org.refcodes.p2p.P2PHeader
-
Uses of P2PHeader in org.refcodes.p2p
Modifier and TypeClassDescriptionclass
AbstractP2PMessage<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, BODY, TAIL extends P2PTail<LOCATOR>> Abstract implementation of aP2PMessage
.class
AbstractPeer<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>, CONSUMER extends P2PMessageConsumer<MSG, PEER>, PEER extends Peer<LOCATOR, HEADER, TAIL, MSG, ROUTER>, ROUTER extends PeerRouter<LOCATOR, HEADER, TAIL, MSG>> TheAbstractPeer
class implements thePeer
interface and is a concrete implementation of a physical Peer.interface
P2PMessage<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, BODY, TAIL extends P2PTail<LOCATOR>> AP2PMessage
is a transient passing various peers till reaching its target, consisting of a target, a payload and a trail of visited (peer) nodes.interface
Peer<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>, ROUTER extends PeerRouter<LOCATOR, HEADER, TAIL, MSG>> APeer
represents a physical peer usingPeerRouter
instances to communicate with its direct neighbours.interface
PeerProxy<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>> interface
PeerRouter<LOCATOR,
HEADER extends P2PHeader<LOCATOR>, TAIL extends P2PTail<LOCATOR>, MSG extends P2PMessage<LOCATOR, HEADER, ?, TAIL>> APeerRouter
defines functionality to route aP2PMessage
.Modifier and TypeClassDescriptionclass
AbstractP2PHeader<LOCATOR>
Abstract implementation of aP2PHeader
.