Package net.tomp2p.p2p

Examples of net.tomp2p.p2p.Peer.peerAddress()


          Assert.assertEquals(request.toString(), request);
          return response;
        }
      });

      FutureDirect fd = peers[42].sendDirect(unreachablePeer.peerAddress()).object(request).start()
          .awaitUninterruptibly();
      Assert.assertEquals(response, fd.object());
     
      // make sure we did receive it from the unreachable peer with id
      Assert.assertEquals(unreachablePeer.peerID(), fd.wrappedFuture().responseMessage().sender().peerId());
View Full Code Here


          Assert.assertEquals(request.toString(), request);
          return response;
        }
      });

      FutureDirect fd = unreachablePeer.sendDirect(receiver.peerAddress()).object(request).start()
          .awaitUninterruptibly();
      Assert.assertEquals(response, fd.object());
     
      // make sure we did receive it from the unreachable peer with id
      Assert.assertEquals(receiver.peerID(), fd.wrappedFuture().responseMessage().sender().peerId());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.