Package com.aelitis.azureus.core.pairing

Examples of com.aelitis.azureus.core.pairing.PairedService


    String    sid,
    boolean    pairing_enabled )
  {
    PairingManager pm = PairingManagerFactory.getSingleton();
   
    PairedService service = pm.getService( sid );
   
    if ( plugin_enabled && pairing_enabled && pm.isEnabled()){
     
      setupAutoAuth();
     
      if ( service == null ){
       
        log( "Adding pairing service" );
       
        service =  pm.addService( sid );
       
        PairingConnectionData cd = service.getConnectionData();

        try{         
          updatePairing( cd );
       
        }finally{
       
          cd.sync();
        }
      }
    }else{
     
      pairing_access_code   = null;
      pairing_session_code  = null;
     
      if ( service != null ){
       
        log( "Removing pairing service" );
       
        service.remove();
      }
    }
  }
View Full Code Here


  updatePairing(
    String    sid )
  {
    PairingManager pm = PairingManagerFactory.getSingleton();
   
    PairedService service = pm.getService( sid );
   
    if ( service != null ){
     
      PairingConnectionData cd = service.getConnectionData();
     
      log( "Updating pairing information" );
     
      try{
        updatePairing( cd );
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.pairing.PairedService

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.