Package org.ardverk.dht.routing

Examples of org.ardverk.dht.routing.Identity


  protected void configure() {
  }

  @Provides @Singleton
  Identity getIdentity() {
    return new Identity(contactId, address);
  }
View Full Code Here


   * Each message contains the receiver's (our) {@link SocketAddress}.
   * We're using it to update our {@link Identity}'s contact address.
   */
  private void updateContactAddress(SocketAddress address) {
    if (address != null) {
      Identity localhost = routeTable.getIdentity();
      SocketAddress current = localhost.getSocketAddress();
     
      if (current == null || !current.equals(address)) {
        localhost.setSocketAddress(address);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.ardverk.dht.routing.Identity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.