Package org.ardverk.dht.routing

Examples of org.ardverk.dht.routing.DefaultContact


    KUID contactId = readKUID();
    int instanceId = readInt();
    boolean invisible = readBoolean();
    SocketAddress address = readSocketAddress();
   
    return new DefaultContact(type, contactId,
        instanceId, invisible, src, address);
  }
View Full Code Here


 
  public Contact readContact() throws IOException {
    KUID contactId = readKUID();
    SocketAddress address = readSocketAddress();
   
    return new DefaultContact(contactId, address);
  }
View Full Code Here

      = new BencodeMessageCodec();
   
    MessageId messageId = MessageId.createRandom(20);
    KUID contactId = KUID.createRandom(20);
   
    Contact contact = new DefaultContact(Type.SOLICITED,
        contactId, 0, false,
        new InetSocketAddress("localhost", 6666));
   
    SocketAddress address = new InetSocketAddress("localhost", 6666);
    PingRequest request = new DefaultPingRequest(messageId, contact, address);
View Full Code Here

TOP

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

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.