Package com.aelitis.azureus.core.networkmanager.impl.tcp

Examples of com.aelitis.azureus.core.networkmanager.impl.tcp.TCPNetworkManager


            bind_ip_set  = true;
          }
        }
      }else{
     
        TCPNetworkManager  net_man = TCPNetworkManager.getSingleton();

          if ( net_man.isTCPListenerEnabled()){
              
          use_incoming_router = _port == net_man.getTCPListeningPortNumber();
         
        }else{
         
          use_incoming_router = false;
       
         
        if ( use_incoming_router ) {
  
        if ( !net_man.isEffectiveBindAddress( bind_ip )){
           
            net_man.setExplicitBindAddress( bind_ip );
           
            bind_ip_set  = true;
          }
      
            //test port and currently-configured listening port are the same,
View Full Code Here


   
    if ( test_type != null ){
     
      if ( test_type.intValue() == TEST_TYPE_BT ){
       
        TCPNetworkManager tcp_man = TCPNetworkManager.getSingleton();
       
        InetSocketAddress adjusted_originator = adjustLoopback( originator );
       
        boolean  test = adjusted_originator.getAddress().isLoopbackAddress();
       
        if (   test ||
            tcp_man.isTCPListenerEnabled() &&
              tcp_man.getTCPListeningPortNumber() == ddb.getLocalContact().getAddress().getPort() &&
              SystemTime.getCurrentTime() - tcp_man.getLastIncomingNonLocalConnectionTime() <= 24*60*60*1000 )){
         
          byte[]  their_hash  = (byte[])request.get( "h" );
         
          if ( their_hash != null ){
           
View Full Code Here

   getInboundProtocols(
       AzureusCore azureus_core)
   {
    List  protocols = new ArrayList();
   
    TCPNetworkManager  tcp_manager = TCPNetworkManager.getSingleton();
   
    if ( tcp_manager.isTCPListenerEnabled()){
     
      protocols.add(
          new NetworkAdminProtocolImpl(
              azureus_core,
              NetworkAdminProtocol.PT_TCP,
              tcp_manager.getTCPListeningPortNumber()));
    }

    UDPNetworkManager  udp_manager = UDPNetworkManager.getSingleton();
   
    int  done_udp = -1;
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.networkmanager.impl.tcp.TCPNetworkManager

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.