- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for addr2 (2.5 sec)
-
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
Address addr1 = mock(Address.class); when(addr1.getHostAddress()).thenReturn("10.0.0.1"); Address addr2 = mock(Address.class); when(addr2.getHostAddress()).thenReturn("10.0.0.2"); when(nameSvc.getAllByName(eq("test.server"), eq(true))).thenReturn(new Address[] { addr1, addr2 }); // Set fail counts (addr1 has more failures, addr2 has fewer)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
try { final NbtAddress[] addrs = getNodeStatus(addr); cacheAddressArray(addrs); return addrs; } catch (final UnknownHostException uhe) { throw new UnknownHostException("no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2)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/main/java/jcifs/smb1/UniAddress.java
Object addr; int i; if (hostname == null || hostname.length() == 0) { throw new UnknownHostException(); } if (isDotQuadIP(hostname)) { final UniAddress[] addrs = new UniAddress[1]; addrs[0] = new UniAddress(NbtAddress.getByName(hostname)); return addrs; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
} else if (calledName == SMBSERVER_NAME) { 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; } }
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
NetbiosAddress[] addrs; try { addrs = tc.getNameServiceClient().getNodeStatus(this); if (this.getNameType() == 0x1D) { for (final NetbiosAddress addr : addrs) { if (addr.getNameType() == 0x20) { return addr.getHostName(); } }
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/smb/SmbTransportPoolImpl.java
final boolean forceSigning) throws IOException { final Address[] addrs = tf.getNameServiceClient().getAllByName(name, true); if (addrs == null || addrs.length == 0) { throw new UnknownHostException(name); } Arrays.sort(addrs, (o1, o2) -> { Integer fail1 = SmbTransportPoolImpl.this.failCounts.get(o1.getHostAddress());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
byte[] addr = new byte[4]; System.arraycopy(data, offset + 4, addr, 0, 4); return InetAddress.getByAddress(addr); } else if (family == 23) { // AF_INET6 byte[] addr = new byte[16]; System.arraycopy(data, offset + 8, addr, 0, 16); return InetAddress.getByAddress(addr); } } catch (Exception e) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
request.addr = NbtAddress.getWINSAddress(); } } } } NbtAddress[] getAllByName(final Name name, final InetAddress addr) throws UnknownHostException { int n; final NameQueryRequest request = new NameQueryRequest(name); final NameQueryResponse response = new NameQueryResponse(); request.addr = addr != null ? addr : NbtAddress.getWINSAddress();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertEquals(SmbConstants.TYPE_WORKGROUP, locator("smb:///").getType()); // Server vs Workgroup depends on NetBIOS name type Address addr = mock(Address.class); NetbiosAddress nb = mock(NetbiosAddress.class); when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb); when(nb.getNameType()).thenReturn(0x1d); // workgroup code
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Dfs.java
_domains = null; } if (_domains != null) { return _domains.map; } try { final UniAddress addr = UniAddress.getByName(auth.domain, true); final SmbTransport trans = SmbTransport.getSmbTransport(addr, 0); final CacheEntry entry = new CacheEntry(Dfs.TTL * 10L); DfsReferral dr = trans.getDfsReferrals(auth, "", 0); if (dr != null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.2K bytes - Viewed (0)