Package freenet.node.probe

Examples of freenet.node.probe.Listener


  public void run(final FCPConnectionHandler handler, Node node) throws MessageInvalidException {
    if(!handler.hasFullAccess()) {
      throw new MessageInvalidException(ProtocolErrorMessage.ACCESS_DENIED, "Probe requires full access.", identifier, false);
    }

    Listener listener = new Listener() {
      @Override
      public void onError(Error error, Byte code, boolean local) {
        handler.outputHandler.queue(new ProbeError(identifier, error, code, local));
      }
View Full Code Here


              }
            }
        }

    final NumberFormat nf = NumberFormat.getInstance();
    Listener print = new Listener() {
      @Override
      public void onError(Error error, Byte code, boolean local) {
        System.out.print("Probe error: " + error.name());
        if (local) System.out.print(" (local)");
        System.out.println(code == null ? "" : " (" + code + ")");
View Full Code Here

TOP

Related Classes of freenet.node.probe.Listener

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.