Package net.tomp2p.p2p.builder

Examples of net.tomp2p.p2p.builder.DiscoverBuilder


    public PingBuilder ping() {
        return new PingBuilder(this);
    }

    public DiscoverBuilder discover() {
        return new DiscoverBuilder(this);
    }
View Full Code Here


            //set the new address regardless wheter it will succeed or not.
            // 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

Related Classes of net.tomp2p.p2p.builder.DiscoverBuilder

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.