Package org.ardverk.dht.message

Examples of org.ardverk.dht.message.DefaultPingRequest


    }
  }
 
  private PingRequest readPingRequest(MessageId messageId,
      Contact contact, SocketAddress address) throws IOException {
    return new DefaultPingRequest(messageId, contact, address);
  }
View Full Code Here


    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);
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Encoder encoder = codec.createEncoder(baos);
    encoder.write(request);
    encoder.close();
View Full Code Here

TOP

Related Classes of org.ardverk.dht.message.DefaultPingRequest

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.