- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for hexCode (0.13 sec)
-
src/main/java/jcifs/netbios/Name.java
return false; } n = (Name) obj; if (this.scope == null && n.scope == null) { return this.name.equals(n.name) && this.hexCode == n.hexCode; } return this.name.equals(n.name) && this.hexCode == n.hexCode && this.scope.equals(n.scope); } @Override public String toString() { final StringBuilder sb = new StringBuilder();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NodeStatusRequest.java
@Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { final int tmp = this.questionName.hexCode; this.questionName.hexCode = 0x00; // type has to be 0x00 for node status final int result = writeQuestionSectionWireFormat(dst, dstIndex); this.questionName.hexCode = tmp; return result; } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/Name.java
* @param hexCode the NetBIOS name type/suffix * @param scope the NetBIOS scope identifier (uses default if null or empty) */ public Name(String name, final int hexCode, final String scope) { if (name.length() > 15) { name = name.substring(0, 15); } this.name = name.toUpperCase(); this.hexCode = hexCode;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java
*/ if (!addrFound && queryAddress.hostName.hexCode == hexCode && (queryAddress.hostName == NbtAddress.UNKNOWN_NAME || queryAddress.hostName.name.equals(n))) { if (queryAddress.hostName == NbtAddress.UNKNOWN_NAME) { queryAddress.hostName = new Name(n, hexCode, scope); } queryAddress.groupName = groupName;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NodeStatusResponse.java
*/ if (!addrFound && this.queryAddress.hostName.hexCode == hexCode && (this.queryAddress.hostName.isUnknown() || this.queryAddress.hostName.name.equals(n))) { if (this.queryAddress.hostName.isUnknown()) { this.queryAddress.hostName = new Name(this.config, n, hexCode, scope); } this.queryAddress.groupName = groupName;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.8K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NodeStatusRequest.java
} @Override int writeBodyWireFormat(final byte[] dst, final int dstIndex) { final int tmp = questionName.hexCode; questionName.hexCode = 0x00; // type has to be 0x00 for node status final int result = writeQuestionSectionWireFormat(dst, dstIndex); questionName.hexCode = tmp; return result; } @Override int readBodyWireFormat(final byte[] src, final int srcIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.8K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/NameServiceClient.java
* for a description of <code>type</code> * and <code>scope</code>. * * @param host * hostname to lookup all addresses for * @param type * the hexcode of the name * @param scope * the scope of the name * @return resolved addresses * @throws java.net.UnknownHostException * if there is an error resolving the name */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0)