| Package | Description |
|---|---|
| net.tomp2p.connection | |
| net.tomp2p.futures | |
| net.tomp2p.p2p | |
| net.tomp2p.rpc | |
| net.tomp2p.utils |
| Modifier and Type | Method and Description |
|---|---|
ChannelCreator |
PeerConnection.channelCreator() |
| Modifier and Type | Method and Description |
|---|---|
K |
RequestHandler.fireAndForgetBroadcastUDP(ChannelCreator channelCreator)
Broadcast a UDP message (layer 2) and do not expect a reply.
|
K |
RequestHandler.fireAndForgetUDP(ChannelCreator channelCreator)
Send a UDP message and don't expect a reply.
|
K |
RequestHandler.sendBroadcastUDP(ChannelCreator channelCreator)
Broadcast a UDP message (layer 2) and expect a reply.
|
K |
RequestHandler.sendTCP(ChannelCreator channelCreator)
Send a TCP message and expect a reply.
|
K |
RequestHandler.sendTCP(ChannelCreator channelCreator,
PeerConnection peerConnection)
Send a TCP message and expect a reply.
|
void |
Sender.sendTCP(io.netty.channel.SimpleChannelInboundHandler<Message> handler,
FutureResponse futureResponse,
Message message,
ChannelCreator channelCreator,
int idleTCPSeconds,
int connectTimeoutMillis,
PeerConnection peerConnection)
Send a message via TCP.
|
K |
RequestHandler.sendUDP(ChannelCreator channelCreator)
Send a UDP message and expect a reply.
|
void |
Sender.sendUDP(io.netty.channel.SimpleChannelInboundHandler<Message> handler,
FutureResponse futureResponse,
Message message,
ChannelCreator channelCreator,
int idleUDPSeconds,
boolean broadcast)
Send a message via UDP.
|
| Constructor and Description |
|---|
PeerConnection(PeerAddress remotePeer,
ChannelCreator cc,
int heartBeatMillis)
If we don't have an open TCP connection, we first need a channel creator to open a channel.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelCreator |
FutureChannelCreator.channelCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
FutureChannelCreator.reserved(ChannelCreator channelCreator)
Called if a channel creator could be created.
|
| Modifier and Type | Method and Description |
|---|---|
FutureDone<Pair<FutureRouting,FutureRouting>> |
DistributedRouting.bootstrap(Collection<PeerAddress> peerAddresses,
RoutingBuilder routingBuilder,
ChannelCreator cc)
Bootstraps to the given peerAddresses, i.e.
|
FutureRouting |
DistributedRouting.quit(RoutingBuilder routingBuilder,
ChannelCreator cc) |
FutureRouting |
DistributedRouting.route(RoutingBuilder routingBuilder,
Message.Type type,
ChannelCreator cc)
Looks for a route to the given locationKey.
|
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
AnnounceRPC.broadcast(PeerAddress remotePeer,
ConnectionConfiguration configuration,
ChannelCreator channelCreator) |
FutureResponse |
NeighborRPC.closeNeighbors(PeerAddress remotePeer,
NeighborRPC.SearchValues searchValues,
Message.Type type,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Requests close neighbors from the remote peer.
|
FutureResponse |
PingRPC.fireTCP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, but don't expect an answer.
|
FutureResponse |
PingRPC.fireUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, but don't expect an answer.
|
FutureResponse |
AnnounceRPC.ping(PeerAddress remotePeer,
ConnectionConfiguration configuration,
ChannelCreator channelCreator) |
FutureResponse |
PingRPC.pingBroadcastUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer using layer 2 broadcast.
|
FutureResponse |
PingRPC.pingTCP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer.
|
FutureResponse |
PingRPC.pingTCPDiscover(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, and find out how the other peer sees us.
|
FutureResponse |
PingRPC.pingTCPProbe(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a TCP peer, and request the other peer to ping us on our public address with a fire and forget message.
|
FutureResponse |
PingRPC.pingUDP(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer.
|
FutureResponse |
PingRPC.pingUDPDiscover(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, and find out how the other peer sees us.
|
FutureResponse |
PingRPC.pingUDPProbe(PeerAddress remotePeer,
ChannelCreator channelCreator,
ConnectionConfiguration configuration)
Ping a UDP peer, and request the other peer to ping us on our public address with a fire and forget message.
|
FutureResponse |
QuitRPC.quit(PeerAddress remotePeer,
ShutdownBuilder shutdownBuilder,
ChannelCreator channelCreator)
Sends a message that indicates this peer is about to quit.
|
FutureResponse |
BroadcastRPC.send(PeerAddress remotePeer,
BroadcastBuilder broadcastBuilder,
ChannelCreator channelCreator,
ConnectionConfiguration configuration) |
FutureResponse |
DirectDataRPC.send(PeerAddress remotePeer,
SendDirectBuilderI sendDirectBuilder,
ChannelCreator channelCreator) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.addReleaseListener(ChannelCreator channelCreator,
BaseFuture... baseFutures)
Adds a listener to the response future and releases all aquired channels in channel creator.
|
Copyright © 2014. All rights reserved.