Package com.aelitis.azureus.core.dht.nat.impl

Examples of com.aelitis.azureus.core.dht.nat.impl.DHTNATPuncherImpl


  public static DHTNATPuncher
  create(
    DHTNATPuncherAdapter  adapter,
    DHT            dht )
  {
    return( new DHTNATPuncherImpl( adapter, dht ));
  }
View Full Code Here


           
            if ( rhs.equals("1")){
             
              System.out.println( "rendezvous bind: dht2 -> rdv dht1" );
           
              DHTNATPuncherImpl  puncher = (DHTNATPuncherImpl)dhts[2].getNATPuncher();
           
              puncher.setRendezvous(
                dhts[2].getTransport().getLocalContact(),
                dhts[1].getTransport().getLocalContact());

            }else if ( rhs.equals("2" )){
             
              System.out.println( "rendezvous punch: dht0 -> rdv dht2" );
             
              DHTNATPuncherImpl  puncher = (DHTNATPuncherImpl)dhts[0].getNATPuncher();

              Map  originator_data = new HashMap();
             
              originator_data.put( "hello", "mum" );
             
              Map client_data = puncher.punch( "Test", dhts[2].getTransport().getLocalContact(), null, originator_data);
             
              System.out.println( "   punch client data: " + client_data );
            }
          }else if ( command == 'k' ){
           
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.dht.nat.impl.DHTNATPuncherImpl

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.