rice.pastry.socket.nat.rendezvous
Class RendezvousContactDirectStrategy
java.lang.Object
rice.pastry.socket.nat.rendezvous.RendezvousContactDirectStrategy
- All Implemented Interfaces:
- ContactDirectStrategy<RendezvousSocketNodeHandle>
public class RendezvousContactDirectStrategy
- extends Object
- implements ContactDirectStrategy<RendezvousSocketNodeHandle>
|
Method Summary |
boolean |
canContactDirect(RendezvousSocketNodeHandle remoteNode)
Return true if they're behind the same firewall
If the address I should use to contact the node is the same as his internal address |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RendezvousContactDirectStrategy
public RendezvousContactDirectStrategy(RendezvousSocketNodeHandle localNodeHandle,
AddressStrategy addressStrategy,
Environment environment)
canContactDirect
public boolean canContactDirect(RendezvousSocketNodeHandle remoteNode)
- Return true if they're behind the same firewall
If the address I should use to contact the node is the same as his internal address
- Specified by:
canContactDirect in interface ContactDirectStrategy<RendezvousSocketNodeHandle>
Copyright © 2010. All Rights Reserved.