| Constructor and Description |
|---|
HolePuncher(Peer peer,
int numberOfHoles,
int idleUDPSeconds,
Message originalMessage) |
| Modifier and Type | Method and Description |
|---|---|
FutureDone<Message> |
initiateHolePunch(ChannelCreator originalChannelCreator,
FutureResponse originalFutureResponse) |
FutureDone<Message> |
replyHolePunch() |
void |
tryConnect()
This methods is only called by a
HolePunchScheduler. |
public FutureDone<Message> initiateHolePunch(ChannelCreator originalChannelCreator, FutureResponse originalFutureResponse)
public FutureDone<Message> replyHolePunch()
public void tryConnect()
throws Exception
HolePunchScheduler. It simply
creates a dummyMessage and sends it from a given localPort (
ChannelFuture) to a given remotePort. This procedure then punches
the holes needed by the initiating Peer.ExceptionCopyright © 2015. All rights reserved.