rice.pastry.socket.nat.connectivityverifiier
Interface ConnectivityVerifier

All Known Implementing Classes:
ConnectivityVerifierImpl

public interface ConnectivityVerifier


Method Summary
 Cancellable findExternalAddress(InetSocketAddress local, Collection<InetSocketAddress> probeAddresses, Continuation<InetAddress,IOException> deliverResultToMe)
          Finds the external address by contacting a random member of the probeAddresses
 Cancellable findExternalNodes(InetSocketAddress local, Collection<InetSocketAddress> probeAddresses, Continuation<Collection<InetSocketAddress>,IOException> deliverResultToMe)
          Finds known external nodes from other bootstrap nodes who are in your firewall
 Cancellable verifyConnectivity(MultiInetSocketAddress local, Collection<InetSocketAddress> probeAddresses, ConnectivityResult deliverResultToMe)
          Verify my connectivity using a 3rd party
 

Method Detail

findExternalNodes

Cancellable findExternalNodes(InetSocketAddress local,
                              Collection<InetSocketAddress> probeAddresses,
                              Continuation<Collection<InetSocketAddress>,IOException> deliverResultToMe)
Finds known external nodes from other bootstrap nodes who are in your firewall

Parameters:
local - the local bindaddress
probeAddresses - the nodes ask
deliverResultToMe - deliver the result here
Returns:
cancel the operation

findExternalAddress

Cancellable findExternalAddress(InetSocketAddress local,
                                Collection<InetSocketAddress> probeAddresses,
                                Continuation<InetAddress,IOException> deliverResultToMe)
Finds the external address by contacting a random member of the probeAddresses

Parameters:
local - the local bindaddress
probeAddresses - the nodes ask
deliverResultToMe - deliver the result here
Returns:
cancel the operation

verifyConnectivity

Cancellable verifyConnectivity(MultiInetSocketAddress local,
                               Collection<InetSocketAddress> probeAddresses,
                               ConnectivityResult deliverResultToMe)
Verify my connectivity using a 3rd party

Parameters:
local -
probeAddresses -
deliverResultToMe -
Returns:
cancel the operation


Copyright © 2010. All Rights Reserved.