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

Examples of com.aelitis.azureus.core.dht.nat.DHTNATPuncher


                        Map  originator_data = new HashMap();
                       
                        originator_data.put( "hello", "mum" );

                        DHTNATPuncher puncher = dht.getNATPuncher();
                       
                        if ( puncher != null ){
                       
                          puncher.punch( "Test", transport.getLocalContact(), null, originator_data );
                        }
                      }else if ( lhs.equals( "stats" )){
                       
                        try{
                          pos = rhs.lastIndexOf( ":" );
View Full Code Here


  }
 
  public Map
  openTunnel()
  {
    DHTNATPuncher puncher = plugin.getDHT().getNATPuncher();
   
    if ( puncher == null ){
     
      return( null );
    }
   
    return( puncher.punch( "Tunnel", contact, null, null ));
  }
View Full Code Here

    lblUpTime.setText(TimeFormatter.format(controlStats.getRouterUptime() / 1000));
    lblNumberOfUsers.setText("" + controlStats.getEstimatedDHTSize());
    int percent = transportStats.getRouteablePercentage();
    lblReachable.setText((transport.isReachable()?yes_str:no_str) + (percent==-1?"":(" " + percent+"%")));
   
    DHTNATPuncher puncher = dht.getNATPuncher();
   
    String  puncher_str;
   
    if ( puncher == null ){
      puncher_str = "";
    }else{
      puncher_str = puncher.operational()?yes_str:no_str;
    }
   
    lblRendezvous.setText(transport.isReachable()?"":puncher_str);
    long[] stats = routerStats.getStats();
    lblNodes.setText("" + stats[DHTRouterStats.ST_NODES]);
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.dht.nat.DHTNATPuncher

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.