- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 38 for getHostAddress (0.09 seconds)
-
build-tools-internal/src/main/resources/forbidden/jdk-signatures.txt
java.net.ServerSocket#<init>(int) java.net.ServerSocket#<init>(int,int) @defaultMessage use NetworkAddress format() to print IP or IP+ports java.net.InetAddress#toString() java.net.InetAddress#getHostAddress() java.net.Inet4Address#getHostAddress() java.net.Inet6Address#getHostAddress() java.net.InetSocketAddress#toString() @defaultMessage avoid DNS lookups by accident: if you have a valid reason, then @SuppressWarnings with that reason so its completely clear
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 4.8K bytes - Click Count (0) -
src/main/java/jcifs/netbios/UniAddress.java
* * @return the ip address */ @Override public String getHostAddress() { if (this.addr instanceof NbtAddress) { return ((NbtAddress) this.addr).getHostAddress(); } return ((InetAddress) this.addr).getHostAddress(); } /** * {@inheritDoc} * * @throws UnknownHostException if the host cannot be resolvedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// Given: Multiple addresses with different fail counts 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 });Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/UniAddress.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NbtAddress.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByName(getHostAddress()); } /** * Returns this IP adress as a {@link java.lang.String} in the form "%d.%d.%d.%d". * * @return the IP address string */ public String getHostAddress() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.7K bytes - Click Count (0) -
src/test/java/jcifs/AddressTest.java
} @Test @DisplayName("getHostAddress should return valid IP address string") void testGetHostAddressContract() { // Given String expectedAddress = "192.168.1.100"; when(mockAddress.getHostAddress()).thenReturn(expectedAddress); // When String hostAddress = mockAddress.getHostAddress(); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
when(mockInetAddress.getHostAddress()).thenReturn("1.2.3.4"); UniAddress uniAddress = new UniAddress(mockInetAddress); assertEquals("1.2.3.4", uniAddress.getHostAddress()); } @Test void shouldReturnNbtAddressHostAddressWhenWrappedIsNbtAddress() { when(mockNbtAddress.getHostAddress()).thenReturn("5.6.7.8");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.4K bytes - Click Count (0) -
src/main/java/jcifs/Address.java
*/ String getHostName(); /** * Return the IP address as text such as "192.168.1.15". * * @return the ip address */ String getHostAddress(); /** * Converts this address to an InetAddress. * * @return this address as an InetAddress * @throws UnknownHostException if the host cannot be resolved */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/net/InetAddresses.java
v6Address.getHostAddress(), v6Address.getAddress(), interfaceIndex); } try { NetworkInterface asInterface = NetworkInterface.getByName(scope); if (asInterface == null) { throw formatIllegalArgumentException("No such interface: '%s'", scope); } return Inet6Address.getByAddress( v6Address.getHostAddress(), v6Address.getAddress(), asInterface);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 47.7K bytes - Click Count (0)