Package org.planx.routing.messaging

Examples of org.planx.routing.messaging.MessageFactory


  public void testMessage1() {
    DHT node1 = new DHT("Node 5001", 5001, 5101, "127.0.0.1", 5001);
    DHT node2 = new DHT("Node 5002", 5002, 5102, "127.0.0.1", 5001);

    InetSocketAddress address = new InetSocketAddress("127.0.0.1", 5002);
    MessageFactory message = new TestMessage(node1.getNode(), Identifier.randomIdentifier());
    try {
      node1.sendMessage(message, address.getAddress(), 5102, new TestReplyReceiver(node1.getNode()));
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.planx.routing.messaging.MessageFactory

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.