Package net.azib.ipscan.core

Examples of net.azib.ipscan.core.PortIterator


    return ID;
  }

  @Override
  public String getFullName() {
    int numPorts = new PortIterator(config.portString).size();
    return getName() + " [" + numPorts + (config.useRequestedPorts ? "+" : "" ) + "]";
  }
View Full Code Here


    return portsFound ? new NumericRangeList(openPorts, displayAsRanges) : null;
  }

  public void init() {
    // rebuild port iterator before each scan
    this.portIteratorPrototype = new PortIterator(config.portString);
  }
View Full Code Here

  }
 
  private void savePreferences() {
    // validate port string
    try {
      new PortIterator(portsText.getText());
    }
    catch (Exception e) {
      tabFolder.setSelection(portsTabItem);
      portsText.forceFocus();
      throw new FetcherException("unparseablePortString", e);
View Full Code Here

  public void nextAdressResults(Object[] results) throws IOException {
    String address = results[ipFetcherIndex].toString();
    Object ports = results[portsFetcherIndex];
   
    if (ports != null && ports instanceof NumericRangeList) {
      for (PortIterator i = new PortIterator(ports.toString()); i.hasNext(); ) {
        output.println(address + DELIMETER + i.next());
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.azib.ipscan.core.PortIterator

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.