Package net.tomp2p.p2p.builder

Examples of net.tomp2p.p2p.builder.DiscoverBuilder.start()


            // The discover will eventually check wheter the announced ip matches the one that it sees.
            peer.peerBean().serverPeerAddress(serverAddress);
           
            // test with discover again
            DiscoverBuilder builder = new DiscoverBuilder(peer).peerAddress(futureNAT.reporter());
            builder.start().addListener(new BaseFutureAdapter<FutureDiscover>() {
              @Override
              public void operationComplete(FutureDiscover future) throws Exception {
                if (future.isSuccess()) {
                  //UPNP or NAT-PMP was successful, set flag
                  peer.peerBean().serverPeerAddress(serverAddress.changePortForwarding(true));
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.