Rice Pastry API

rice.pastry.socket.nat.rendezvous
Class RendezvousContactDirectStrategy

java.lang.Object
  extended by rice.pastry.socket.nat.rendezvous.RendezvousContactDirectStrategy
All Implemented Interfaces:
ContactDirectStrategy<RendezvousSocketNodeHandle>

public class RendezvousContactDirectStrategy
extends java.lang.Object
implements ContactDirectStrategy<RendezvousSocketNodeHandle>


Constructor Summary
RendezvousContactDirectStrategy(RendezvousSocketNodeHandle localNodeHandle, AddressStrategy addressStrategy, Environment environment)
           
 
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
 

Constructor Detail

RendezvousContactDirectStrategy

public RendezvousContactDirectStrategy(RendezvousSocketNodeHandle localNodeHandle,
                                       AddressStrategy addressStrategy,
                                       Environment environment)
Method Detail

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>

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection