/** * This is really just for {@link jcifs.UniAddress}. It does * not throw an {@link java.net.UnknownHostException} because this * is queried frequently and exceptions would be rather costly to * throw on a regular basis here. */ public synchronized static NbtAddress getByName( String host ) { return getByName( new Name( host, 0x20, null )); }
public static NbtAddress[] getAllByName( String host, int type, String scope, InetAddress svr ) throws UnknownHostException { return CLIENT.getAllByName( new Name( host, type, scope ), svr ); }
int readQuestionSectionWireFormat ( byte[] src, int srcIndex ) { int start = srcIndex; srcIndex += this.questionName.readWireFormat(src, srcIndex); this.questionType = readInt2(src, srcIndex); srcIndex += 2; this.questionClass = readInt2(src, srcIndex); srcIndex += 2; return srcIndex - start; }
int writeQuestionSectionWireFormat( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += questionName.writeWireFormat( dst, dstIndex ); writeInt2( questionType, dst, dstIndex ); dstIndex += 2; writeInt2( questionClass, dst, dstIndex ); dstIndex += 2; return dstIndex - start; } int readQuestionSectionWireFormat( byte[] src, int srcIndex ) {
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
int writeQuestionSectionWireFormat ( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += this.questionName.writeWireFormat(dst, dstIndex); writeInt2(this.questionType, dst, dstIndex); dstIndex += 2; writeInt2(this.questionClass, dst, dstIndex); dstIndex += 2; return dstIndex - start; }
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
int readQuestionSectionWireFormat( byte[] src, int srcIndex ) { int start = srcIndex; srcIndex += questionName.readWireFormat( src, srcIndex ); questionType = readInt2( src, srcIndex ); srcIndex += 2; questionClass = readInt2( src, srcIndex ); srcIndex += 2; return srcIndex - start; } int writeResourceRecordWireFormat( byte[] dst, int dstIndex ) {
/** * This is really just for {@link jcifs.UniAddress}. It does * not throw an {@link java.net.UnknownHostException} because this * is queried frequently and exceptions would be rather costly to * throw on a regular basis here. */ public synchronized static NbtAddress getByName( String host ) { return getByName( new Name( host, 0x20, null )); }
public static NbtAddress[] getAllByName( String host, int type, String scope, InetAddress svr ) throws UnknownHostException { return CLIENT.getAllByName( new Name( host, type, scope ), svr ); }
int writeQuestionSectionWireFormat( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += questionName.writeWireFormat( dst, dstIndex ); writeInt2( questionType, dst, dstIndex ); dstIndex += 2; writeInt2( questionClass, dst, dstIndex ); dstIndex += 2; return dstIndex - start; } int readQuestionSectionWireFormat( byte[] src, int srcIndex ) {
/** * Returns the {@link java.lang.String} representaion of this address. */ @Override public String toString () { return this.hostName.toString() + "/" + getHostAddress(); } }
int readQuestionSectionWireFormat( byte[] src, int srcIndex ) { int start = srcIndex; srcIndex += questionName.readWireFormat( src, srcIndex ); questionType = readInt2( src, srcIndex ); srcIndex += 2; questionClass = readInt2( src, srcIndex ); srcIndex += 2; return srcIndex - start; } int writeResourceRecordWireFormat( byte[] dst, int dstIndex ) {
/** * This is really just for {@link jcifs.UniAddress}. It does * not throw an {@link java.net.UnknownHostException} because this * is queried frequently and exceptions would be rather costly to * throw on a regular basis here. */ public synchronized static NbtAddress getByName( String host ) { return getByName( new Name( host, 0x20, null )); }
public static NbtAddress[] getAllByName( String host, int type, String scope, InetAddress svr ) throws UnknownHostException { return CLIENT.getAllByName( new Name( host, type, scope ), svr ); }
int writeQuestionSectionWireFormat( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += questionName.writeWireFormat( dst, dstIndex ); writeInt2( questionType, dst, dstIndex ); dstIndex += 2; writeInt2( questionClass, dst, dstIndex ); dstIndex += 2; return dstIndex - start; } int readQuestionSectionWireFormat( byte[] src, int srcIndex ) {
/** * Returns the {@link java.lang.String} representaion of this address. */ public String toString() { return hostName.toString() + "/" + getHostAddress(); } }
int readQuestionSectionWireFormat ( byte[] src, int srcIndex ) { int start = srcIndex; srcIndex += this.questionName.readWireFormat(src, srcIndex); this.questionType = readInt2(src, srcIndex); srcIndex += 2; this.questionClass = readInt2(src, srcIndex); srcIndex += 2; return srcIndex - start; }
int writeQuestionSectionWireFormat ( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += this.questionName.writeWireFormat(dst, dstIndex); writeInt2(this.questionType, dst, dstIndex); dstIndex += 2; writeInt2(this.questionClass, dst, dstIndex); dstIndex += 2; return dstIndex - start; }
int writeQuestionSectionWireFormat( byte[] dst, int dstIndex ) { int start = dstIndex; dstIndex += questionName.writeWireFormat( dst, dstIndex ); writeInt2( questionType, dst, dstIndex ); dstIndex += 2; writeInt2( questionClass, dst, dstIndex ); dstIndex += 2; return dstIndex - start; } int readQuestionSectionWireFormat( byte[] src, int srcIndex ) {