- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getHostAddress (0.12 sec)
-
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(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (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 resolved
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/UniAddressTest.java
} @Test void getHostAddressDelegatesToWrappedInetAddress() { InetAddress dummy = mock(InetAddress.class); when(dummy.getHostAddress()).thenReturn("192.0.2.1"); UniAddress ua = new UniAddress(dummy); assertEquals("192.0.2.1", ua.getHostAddress(), "should forward hostAddress to underlying InetAddress"); } @Test void toStringDelegatesToUnderlyingAddress() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (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 */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/MockWitnessService.java
* * @return formatted address string for RPC connections */ public String getServiceAddress() { try { return "ncacn_ip_tcp:" + getAddress().getHostAddress() + "[" + getPort() + "]"; } catch (IOException e) { return "ncacn_ip_tcp:127.0.0.1[135]"; } } /** * Simulate heartbeat processing *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
return; } try { rdmaConnection = rdmaProvider.connect(delegate.getRemoteAddress().getHostAddress(), delegate.getContext().getConfig().getRdmaPort()); log.info("RDMA connection established to {}", delegate.getRemoteAddress()); } catch (IOException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java
* * @param address the InetAddress */ public void setIpAddress(InetAddress address) { if (address != null) { this.ipAddress = address.getHostAddress(); } } /** * Gets the IP address. * * @return the IP address */ public String getIpAddress() { return ipAddress; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.6K bytes - Viewed (0)