Examples of DHTUDPPacketHandlerException


Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

       
      }else{
       
        if ( bad_ip_bloom_filter.contains( addr )){
         
          throw( new DHTUDPPacketHandlerException( "IPFilter check fails (repeat)" ));
        }
      }
     
      if ( ip_filter.isInRange(
          contact.getTransportAddress().getAddress(), "DHT", null,
          logger.isEnabled( DHTLogger.LT_IP_FILTER ))){
       
          // don't let an attacker deliberately fill up our filter so we start
          // rejecting valid addresses
       
        if ( bad_ip_bloom_filter.getEntryCount() >= BAD_IP_BLOOM_FILTER_SIZE/10 ){
         
          bad_ip_bloom_filter = BloomFilterFactory.createAddOnly( BAD_IP_BLOOM_FILTER_SIZE );
        }
       
        bad_ip_bloom_filter.add( addr );
       
        throw( new DHTUDPPacketHandlerException( "IPFilter check fails" ));
      }
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

             
            }catch( Throwable e ){
             
              Debug.printStackTrace(e);
             
              error( new DHTUDPPacketHandlerException( "ping failed", e ));
            }
          }
         
          public void
          error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

             
            }catch( Throwable e ){
             
              Debug.printStackTrace(e);
             
              error( new DHTUDPPacketHandlerException( "send key block failed", e ));
            }
          }
         
          public void
          error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

             
            }catch( Throwable e ){
             
              Debug.printStackTrace(e);
             
              error( new DHTUDPPacketHandlerException( "stats failed", e ));
            }
          }
         
          public void
          error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

               
              }catch( Throwable e ){
               
                Debug.printStackTrace(e);
               
                error( new DHTUDPPacketHandlerException( "store failed", e ));
              }
            }
           
            public void
            error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

               
              }catch( Throwable e ){
               
                Debug.printStackTrace(e);
               
                error( new DHTUDPPacketHandlerException( "queryStore failed", e ));
              }
            }
           
            public void
            error(
              DHTUDPPacketHandlerException  e )
            {
              stats.queryStoreFailed();
             
              synchronized( replies ){
               
                replies[f_i] = e;
               
                checkComplete();
              }
            }
           
            protected void
            checkComplete()
            {
              DHTUDPPacketHandlerException last_error = null;
             
              for ( int i=0;i<replies.length;i++ ){
             
                Object o = replies[i];
               
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

             
            }catch( Throwable e ){
             
              Debug.printStackTrace(e);
             
              error( new DHTUDPPacketHandlerException( "findNode failed", e ));
            }
          }
         
          public void
          error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

             
            }catch( Throwable e ){
             
              Debug.printStackTrace(e);
             
              error( new DHTUDPPacketHandlerException( "findValue failed", e ));
            }
          }
         
          public void
          error(
View Full Code Here

Examples of com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerException

          }catch( DHTTransportException e ){
           
            Debug.printStackTrace(e);
          }
                     
          throw( new DHTUDPPacketHandlerException( "address changed notification" ));
        }
        case DHTUDPPacketReplyError.ET_KEY_BLOCKED:
        {
          handler.keyBlockRequest( remote_contact, error.getKeyBlockRequest(), error.getKeyBlockSignature());
         
          contactAlive( remote_contact );
         
          throw( new DHTUDPPacketHandlerException( "key blocked" ));
        }
      }
       
      throw( new DHTUDPPacketHandlerException( "unknown error type " + error.getErrorType()));
     
    }else{
     
      contactAlive( remote_contact );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.