Package net.azib.ipscan.util

Examples of net.azib.ipscan.util.NetBIOSResolver.resolve()


  }

  private String resolveWithNetBIOS(ScanningSubject subject) {
    try {
      NetBIOSResolver resolver = new NetBIOSResolver(subject.getAdaptedPortTimeout());
      String[] names = resolver.resolve(subject.getAddress());
      resolver.close();
      return names == null ? null : names[0];
    }
    catch (SocketTimeoutException e) {
      return null;
View Full Code Here


  public Object scan(ScanningSubject subject) {
    NetBIOSResolver netbios = null;
    try {
      netbios = new NetBIOSResolver(subject.getAdaptedPortTimeout());
      String[] names = netbios.resolve(subject.getAddress());
      if (names == null) return null;

      String computerName = names[0];
      String userName = names[1];
      String groupName = names[2];
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.