Package com.aelitis.azureus.plugins.upnp

Examples of com.aelitis.azureus.plugins.upnp.UPnPPlugin


      if ( now - last_upnp_read > UPNP_READ_MIN || ok_to_try_ext ){
       
        last_upnp_read  = now;
       
        try{
             UPnPPlugin upnp = adapter.getUPnPPlugin();
        
             if ( upnp != null ){
              
              String[]  addresses = upnp.getExternalIPAddresses();
             
              for (int i=0;i<addresses.length;i++){
               
                if ( addresses[i].equals( last_external_address.getHostAddress())){
                 
View Full Code Here


 
        PluginInterface upnp_pi = azureus_core.getPluginManager().getPluginInterfaceByClass( UPnPPlugin.class );
       
        if ( upnp_pi != null ){
       
          UPnPPlugin upnp = (UPnPPlugin)upnp_pi.getPlugin();
         
          UPnPPluginService[]  services = upnp.getServices();
         
          for ( UPnPPluginService service: services ){
           
            NetworkAdminNATDeviceImpl dev = new NetworkAdminNATDeviceImpl( service );
           
View Full Code Here

        try{
            PluginInterface pi_upnp = azureus_core.getPluginManager().getPluginInterfaceByClass( UPnPPlugin.class );

            if ( pi_upnp != null ){
             
                UPnPPlugin upnp = (UPnPPlugin)pi_upnp.getPlugin();

                if ( upnp.isEnabled()){
                 
                  List<Map<String,String>>  upnp_list = new ArrayList<Map<String,String>>();
                 
                  payload.put( "upnp", upnp_list );
                 
                  UPnPPluginService[] services = upnp.getServices();
                 
                  Set<UPnPRootDevice> devices = new HashSet<UPnPRootDevice>();
                 
                  for ( UPnPPluginService service: services ){
                   
View Full Code Here

       
        PluginInterface pi_upnp = core.getPluginManager().getPluginInterfaceByClass( UPnPPlugin.class );

        if( pi_upnp != null ) {

          UPnPPlugin upnp = (UPnPPlugin)pi_upnp.getPlugin();

          UPnPMapping mapping = upnp.getMapping( type != PT_UDP , port );

          if ( mapping == null ) {

            new_mapping = mapping = upnp.addMapping( "NAT Tester", type != PT_UDP, port, true );

              // give UPnP a chance to work

            try{
              Thread.sleep( 500 );
View Full Code Here

    String  upnp_str = null;

    if( pi_upnp != null ) {

      UPnPPlugin upnp = (UPnPPlugin)pi_upnp.getPlugin();

      /*
      UPnPMapping mapping = upnp.getMapping( true, port );

      if ( mapping == null ) {

        new_mapping = mapping = upnp.addMapping( "NAT Tester", true, port, true );

        // give UPnP a chance to work

        try {
          Thread.sleep( 500 );

        }
        catch (Throwable e) {

          Debug.printStackTrace( e );
        }
      }
      */
     
      UPnPPluginService[]  services = upnp.getServices();

      if ( services.length > 0 ){

        upnp_str = "";

View Full Code Here

TOP

Related Classes of com.aelitis.azureus.plugins.upnp.UPnPPlugin

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.