- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for resultCode (0.31 sec)
-
src/main/java/jcifs/smb1/netbios/NameServicePacket.java
end = srcIndex + rDataLength; /* Apparently readRDataWireFormat can return 0 if resultCode != 0 in which case this will look indefinitely. Putting this else clause around the loop might fix that. But I would need to see a capture to confirm. if (resultCode != 0) { srcIndex += rDataLength; } else { */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServicePacket.java
end = srcIndex + this.rDataLength; /* * Apparently readRDataWireFormat can return 0 if resultCode != 0 in * which case this will look indefinitely. Putting this else clause around * the loop might fix that. But I would need to see a capture to confirm. * if (resultCode != 0) { * srcIndex += rDataLength; * } else { */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
assertEquals(expectedString, packet.toString()); // Test other opCode, resultCode, questionType, recordType branches
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
} @Test void readRDataWireFormat_shouldReturnZero_whenResultCodeIsNotZero() throws NoSuchFieldException, IllegalAccessException { // Set 'resultCode' field in superclass to a non-zero value Field resultCodeField = NameServicePacket.class.getDeclaredField("resultCode"); resultCodeField.setAccessible(true); resultCodeField.set(nameQueryResponse, 1); // Simulate an error result code
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
log.info("Failed to send nameservice request for " + name.name, ioe); throw new UnknownHostException(name.name); } if (response.received && response.resultCode == 0) { return response.addrEntry; } } while (--n > 0 && request.isBroadcast); throw new UnknownHostException(name.name); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
ioe.printStackTrace(log); } throw new UnknownHostException(name.name); } if (response.received && response.resultCode == 0) { return response.addrEntry; } } while (--n > 0 && request.isBroadcast); throw new UnknownHostException(name.name); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameQueryResponse.java
} @Override int writeRDataWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readRDataWireFormat(final byte[] src, int srcIndex) { if (resultCode != 0 || opCode != QUERY) { return 0; } final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true; final int nodeType = (src[srcIndex] & 0x60) >> 5; srcIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameQueryResponse.java
} @Override int writeRDataWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readRDataWireFormat(final byte[] src, int srcIndex) { if (this.resultCode != 0 || this.opCode != QUERY) { return 0; } final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true; final int nodeType = (src[srcIndex] & 0x60) >> 5; srcIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.2K bytes - Viewed (0)