- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for hexCode (2.56 sec)
-
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
int originalHexCode = 0xFF; mockName.hexCode = originalHexCode; // Create a spy to capture the state during writeQuestionSectionWireFormat NodeStatusRequest spyRequest = spy(nodeStatusRequest); doAnswer(invocation -> { // Verify hexCode is 0 during the call assertEquals(0x00, mockName.hexCode); return 40;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
void constructor_withAllParameters_shouldInitializeCorrectly() { Name name = new Name(mockConfig, "TestName", 0x20, "custom.scope"); assertEquals("TESTNAME", name.name); assertEquals(0x20, name.hexCode); assertEquals("custom.scope", name.scope); assertEquals(0, name.srcHashCode); } @Test void constructor_withLongName_shouldTruncateTo15Characters() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
NbtAddress[] addrs; try { addrs = CLIENT.getNodeStatus(this); if (hostName.hexCode == 0x1D) { for (final NbtAddress addr : addrs) { if (addr.hostName.hexCode == 0x20) { return addr.hostName.name; } } return null;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} NbtAddress doNameQuery(final Name name, InetAddress svr) throws UnknownHostException { NbtAddress addr; if (name.hexCode == 0x1d && svr == null) { svr = this.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress(name); /*Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
// Setup queryAddress with unknown name Name unknownName = mock(Name.class); lenient().when(unknownName.isUnknown()).thenReturn(true); unknownName.hexCode = 0x20; unknownName.scope = null; mockQueryAddress.hostName = unknownName; response = new NodeStatusResponse(mockConfig, mockQueryAddress); // Prepare test dataRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
} break; case RESOLVER_WINS: case RESOLVER_BCAST: if (element == RESOLVER_WINS && name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else { request.addr = baddr;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0)