NbtAddress.<init>
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using jcifs.netbios.NbtAddress.<init> (Showing top 20 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: jcifs/jcifs

int readRDataWireFormat( byte[] src, int srcIndex ) {
  if( resultCode != 0 || opCode != QUERY ) {
    return 0;
  }
  boolean groupName = (( src[srcIndex] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[srcIndex] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4( src, srcIndex );
  if( address != 0 ) {
    addrEntry[addrIndex] = new NbtAddress( recordName, address, groupName, nodeType );
  } else {
    addrEntry[addrIndex] = null;
  }
  return 6;
}
public String toString() {
origin: com.jaeksoft/jcifs-krb5-jdk7

int readRDataWireFormat( byte[] src, int srcIndex ) {
  if( resultCode != 0 || opCode != QUERY ) {
    return 0;
  }
  boolean groupName = (( src[srcIndex] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[srcIndex] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4( src, srcIndex );
  if( address != 0 ) {
    addrEntry[addrIndex] = new NbtAddress( recordName, address, groupName, nodeType );
  } else {
    addrEntry[addrIndex] = null;
  }
  return 6;
}
public String toString() {
origin: org.samba.jcifs/jcifs

int readRDataWireFormat( byte[] src, int srcIndex ) {
  if( resultCode != 0 || opCode != QUERY ) {
    return 0;
  }
  boolean groupName = (( src[srcIndex] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[srcIndex] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4( src, srcIndex );
  if( address != 0 ) {
    addrEntry[addrIndex] = new NbtAddress( recordName, address, groupName, nodeType );
  } else {
    addrEntry[addrIndex] = null;
  }
  return 6;
}
public String toString() {
origin: org.codelibs/jcifs

@Override
int readRDataWireFormat ( byte[] src, int srcIndex ) {
  if ( this.resultCode != 0 || this.opCode != QUERY ) {
    return 0;
  }
  boolean groupName = ( ( src[ srcIndex ] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[ srcIndex ] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4(src, srcIndex);
  if ( address != 0 ) {
    this.addrEntry[ this.addrIndex ] = new NbtAddress(this.recordName, address, groupName, nodeType);
  }
  else {
    this.addrEntry[ this.addrIndex ] = null;
  }
  return 6;
}
origin: AgNO3/jcifs-ng

@Override
int readRDataWireFormat ( byte[] src, int srcIndex ) {
  if ( this.resultCode != 0 || this.opCode != QUERY ) {
    return 0;
  }
  boolean groupName = ( ( src[ srcIndex ] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[ srcIndex ] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4(src, srcIndex);
  if ( address != 0 ) {
    this.addrEntry[ this.addrIndex ] = new NbtAddress(this.recordName, address, groupName, nodeType);
  }
  else {
    this.addrEntry[ this.addrIndex ] = null;
  }
  return 6;
}
origin: kohsuke/jcifs

int readRDataWireFormat( byte[] src, int srcIndex ) {
  if( resultCode != 0 || opCode != QUERY ) {
    return 0;
  }
  boolean groupName = (( src[srcIndex] & 0x80 ) == 0x80 ) ? true : false;
  int nodeType = ( src[srcIndex] & 0x60 ) >> 5;
  srcIndex += 2;
  int address = readInt4( src, srcIndex );
  if( address != 0 ) {
    addrEntry[addrIndex] = new NbtAddress( recordName, address, groupName, nodeType );
  } else {
    addrEntry[addrIndex] = null;
  }
  return 6;
}
public String toString() {
origin: org.codelibs/jcifs

  @Override
  int readTrailerWireFormat ( InputStream in, byte[] buffer, int bufferIndex ) throws IOException {
    if ( in.read(buffer, bufferIndex, this.length) != this.length ) {
      throw new IOException("unexpected EOF reading netbios retarget session response");
    }
    int addr = readInt4(buffer, bufferIndex);
    bufferIndex += 4;
    new NbtAddress(null, addr, false, NbtAddress.B_NODE);
    readInt2(buffer, bufferIndex);
    return this.length;
  }
}
origin: AgNO3/jcifs-ng

  @Override
  int readTrailerWireFormat ( InputStream in, byte[] buffer, int bufferIndex ) throws IOException {
    if ( in.read(buffer, bufferIndex, this.length) != this.length ) {
      throw new IOException("unexpected EOF reading netbios retarget session response");
    }
    int addr = readInt4(buffer, bufferIndex);
    bufferIndex += 4;
    new NbtAddress(null, addr, false, NbtAddress.B_NODE);
    readInt2(buffer, bufferIndex);
    return this.length;
  }
}
origin: org.samba.jcifs/jcifs

  int readTrailerWireFormat( InputStream in,
              byte[] buffer,
              int bufferIndex )
              throws IOException {
    if( in.read( buffer, bufferIndex, length ) != length ) {
      throw new IOException( "unexpected EOF reading netbios retarget session response" );
    }
    int addr = readInt4( buffer, bufferIndex );
    bufferIndex += 4;
    retargetAddress = new NbtAddress( null, addr, false, NbtAddress.B_NODE );
    retargetPort = readInt2( buffer, bufferIndex );
    return length;
  }
}
origin: jcifs/jcifs

  int readTrailerWireFormat( InputStream in,
              byte[] buffer,
              int bufferIndex )
              throws IOException {
    if( in.read( buffer, bufferIndex, length ) != length ) {
      throw new IOException( "unexpected EOF reading netbios retarget session response" );
    }
    int addr = readInt4( buffer, bufferIndex );
    bufferIndex += 4;
    retargetAddress = new NbtAddress( null, addr, false, NbtAddress.B_NODE );
    retargetPort = readInt2( buffer, bufferIndex );
    return length;
  }
}
origin: com.jaeksoft/jcifs-krb5-jdk7

  int readTrailerWireFormat( InputStream in,
              byte[] buffer,
              int bufferIndex )
              throws IOException {
    if( in.read( buffer, bufferIndex, length ) != length ) {
      throw new IOException( "unexpected EOF reading netbios retarget session response" );
    }
    int addr = readInt4( buffer, bufferIndex );
    bufferIndex += 4;
    retargetAddress = new NbtAddress( null, addr, false, NbtAddress.B_NODE );
    retargetPort = readInt2( buffer, bufferIndex );
    return length;
  }
}
origin: kohsuke/jcifs

  int readTrailerWireFormat( InputStream in,
              byte[] buffer,
              int bufferIndex )
              throws IOException {
    if( in.read( buffer, bufferIndex, length ) != length ) {
      throw new IOException( "unexpected EOF reading netbios retarget session response" );
    }
    int addr = readInt4( buffer, bufferIndex );
    bufferIndex += 4;
    retargetAddress = new NbtAddress( null, addr, false, NbtAddress.B_NODE );
    retargetPort = readInt2( buffer, bufferIndex );
    return length;
  }
}
origin: org.codelibs/jcifs

  return doNameQuery(name, svr);
return new NbtAddress(getUnknownName(), IP, false, NbtAddress.B_NODE);
origin: AgNO3/jcifs-ng

  return doNameQuery(name, svr);
return new NbtAddress(getUnknownName(), IP, false, NbtAddress.B_NODE);
origin: org.codelibs/jcifs

this.unknownAddress = new NbtAddress(this.unknownName, 0, false, NbtAddress.B_NODE);
this.addressCache.put(this.unknownName, new CacheEntry(this.unknownName, this.unknownAddress, SmbConstants.FOREVER));
this.localhostAddress = new NbtAddress(
  localName,
  localInetAddress.hashCode(),
origin: com.jaeksoft/jcifs-krb5-jdk7

  return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
return new NbtAddress( UNKNOWN_NAME, IP, false, B_NODE );
origin: jcifs/jcifs

  return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
return new NbtAddress( UNKNOWN_NAME, IP, false, B_NODE );
origin: org.samba.jcifs/jcifs

  return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
return new NbtAddress( UNKNOWN_NAME, IP, false, B_NODE );
origin: kohsuke/jcifs

  return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
return new NbtAddress( UNKNOWN_NAME, IP, false, B_NODE );
origin: org.codelibs/jcifs

this.addressArray[ i ] = new NbtAddress(
  new Name(this.config, n, hexCode, scope),
  this.queryAddress.address,
jcifs.netbiosNbtAddress<init>

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.
  • getInetAddress
    To convert this address to an InetAddress.
  • 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)