NbtAddress.getInetAddress
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using jcifs.netbios.NbtAddress.getInetAddress (Showing top 11 results out of 315)

  • Common ways to obtain NbtAddress
private void myMethod () {
NbtAddress n =
  • String host;Lmhosts.getByName(host)
  • new NbtAddress(null, address, false, nodeType)
  • Name name;Lmhosts.getByName(name)
  • Smart code suggestions by Codota
}
origin: org.codelibs/jcifs

@Override
public InetAddress toInetAddress () throws UnknownHostException {
  return getInetAddress();
}
origin: AgNO3/jcifs-ng

@Override
public InetAddress toInetAddress () throws UnknownHostException {
  return getInetAddress();
}
origin: stackoverflow.com

 import jcifs.netbios.NbtAddress;
...
NbtAddress nbtAddress = NbtAddress.getByName(hostname);
InetAddress address = nbtAddress.getInetAddress();
String ipAddress = address.getHostAddress();
origin: com.jaeksoft/jcifs-krb5-jdk7

public NbtSocket( NbtAddress address, String calledName, int port,
              InetAddress localAddr, int localPort ) throws IOException {
  super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ),
              localAddr, localPort );
  this.address = address;
  if( calledName == null ) {
    this.calledName = address.hostName;
  } else {
    this.calledName = new Name( calledName, 0x20, null );
  }
  soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
  connect();
}
origin: jcifs/jcifs

public NbtSocket( NbtAddress address, String calledName, int port,
              InetAddress localAddr, int localPort ) throws IOException {
  super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ),
              localAddr, localPort );
  this.address = address;
  if( calledName == null ) {
    this.calledName = address.hostName;
  } else {
    this.calledName = new Name( calledName, 0x20, null );
  }
  soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
  connect();
}
origin: org.samba.jcifs/jcifs

public NbtSocket( NbtAddress address, String calledName, int port,
              InetAddress localAddr, int localPort ) throws IOException {
  super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ),
              localAddr, localPort );
  this.address = address;
  if( calledName == null ) {
    this.calledName = address.hostName;
  } else {
    this.calledName = new Name( calledName, 0x20, null );
  }
  soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
  connect();
}
origin: kohsuke/jcifs

public NbtSocket( NbtAddress address, String calledName, int port,
              InetAddress localAddr, int localPort ) throws IOException {
  super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ),
              localAddr, localPort );
  this.address = address;
  if( calledName == null ) {
    this.calledName = address.hostName;
  } else {
    this.calledName = new Name( calledName, 0x20, null );
  }
  soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
  connect();
}
origin: kohsuke/jcifs

request = new NodeStatusRequest(
          new Name( NbtAddress.ANY_HOSTS_NAME, 0x00, null));
request.addr = addr.getInetAddress();
origin: com.jaeksoft/jcifs-krb5-jdk7

request = new NodeStatusRequest(
          new Name( NbtAddress.ANY_HOSTS_NAME, 0x00, null));
request.addr = addr.getInetAddress();
origin: jcifs/jcifs

request = new NodeStatusRequest(
          new Name( NbtAddress.ANY_HOSTS_NAME, 0x00, null));
request.addr = addr.getInetAddress();
origin: org.samba.jcifs/jcifs

request = new NodeStatusRequest(
          new Name( NbtAddress.ANY_HOSTS_NAME, 0x00, null));
request.addr = addr.getInetAddress();
jcifs.netbiosNbtAddressgetInetAddress

Javadoc

To convert this address to an InetAddress.

Popular methods of NbtAddress

  • getByName
  • getHostAddress
    Returns this IP adress as a java.lang.String in the form "%d.%d.%d.%d".
  • getHostName
    The hostname of this address. If the hostname is null the local machines IP address is returned.
  • <init>
  • checkData
  • checkNodeStatusData
  • firstCalledName
    Guess next called name to try for session establishment. These methods are used by the smb package.
  • getAllByName
  • getNameType
    Returned the hex code associated with this name(e.g. 0x20 is for the file service)
  • nextCalledName
  • cacheAddress
  • cacheAddressArray
  • cacheAddress,
  • cacheAddressArray,
  • checkLookupTable,
  • doNameQuery,
  • getAllByAddress,
  • getCachedAddress,
  • getLocalHost,
  • getLocalName,
  • getWINSAddress

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)