Package net.tomp2p.rpc

Examples of net.tomp2p.rpc.ObjectDataReply


      System.out.print("Send direct message from unreachable peer");
      final String request = "Hello ";
      final String response = "World!";

      Peer receiver = peers[42];
      receiver.objectDataReply(new ObjectDataReply() {
        public Object reply(PeerAddress sender, Object request) throws Exception {
          Assert.assertEquals(request.toString(), request);
          return response;
        }
      });
View Full Code Here

TOP

Related Classes of net.tomp2p.rpc.ObjectDataReply

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.