- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for getRemoteAddress (0.1 seconds)
-
src/main/java/jcifs/SmbTransport.java
*/ @Override void close(); /** * Gets the address of the remote SMB server. * * @return the connected address */ Address getRemoteAddress(); /** * Gets the host name of the remote SMB server. * * @return the connected host name */ String getRemoteHostName();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/SmbTransportTest.java
// Arrange when(smbTransport.getRemoteAddress()).thenReturn(remoteAddress); // Act Address result = smbTransport.getRemoteAddress(); // Assert assertNotNull(result, "Remote address should not be null"); assertEquals(remoteAddress, result, "Returned remote address should be the mocked address"); verify(smbTransport).getRemoteAddress(); // Verify that the method was called }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} try { rdmaConnection = rdmaProvider.connect(delegate.getRemoteAddress().getHostAddress(), delegate.getContext().getConfig().getRdmaPort()); log.info("RDMA connection established to {}", delegate.getRemoteAddress()); } catch (IOException e) { log.warn("Failed to establish RDMA connection: {}", e.getMessage());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java
public RdmaConnectionState getState() { return state; } /** * Get remote address * * @return remote socket address */ public InetSocketAddress getRemoteAddress() { return remoteAddress; } /** * Get local address * * @return local socket address */ public InetSocketAddress getLocalAddress() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 8.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
} @Test @DisplayName("Basic getters: address, hostName, inflight, sessions") void basicGetters() { assertEquals(address, transport.getRemoteAddress()); assertNull(transport.getRemoteHostName(), "tconHostName starts null"); assertEquals(0, transport.getInflightRequests()); assertEquals(0, transport.getNumSessions()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
public String getChannelId() { return channelId; } public InetAddress getLocalAddress() { return localAddress; } public InetAddress getRemoteAddress() { return remoteAddress; } public NetworkInterface getNetworkInterface() { return networkInterface; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 20.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
final boolean doSigning, Subject s) throws SmbException { String host = getTargetHost(); if (host == null) { host = trans.getRemoteAddress().getHostAddress(); try { host = trans.getRemoteAddress().getHostName(); } catch (Exception e) { log.debug("Failed to resolve host name", e); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java
RdmaConnection connection = provider.createConnection(remote, local); assertNotNull(connection, "Connection should not be null"); assertEquals(remote, connection.getRemoteAddress(), "Remote address should match"); } @Test public void testRegisterMemory() throws Exception { ByteBuffer buffer = ByteBuffer.allocateDirect(1024);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 4.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
try (RdmaConnection connection = provider.createConnection(address, null)) { assertNotNull(connection, "Connection should not be null"); assertEquals(address, connection.getRemoteAddress(), "Remote address should match"); assertNotNull(connection.getState(), "Connection state should not be null"); System.out.println("RDMA connection created to: " + address);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 13.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
SmbSessionImpl session = th.getSession(); SmbTransportImpl transport = session.getTransport()) { try { entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress()); } catch (final IOException ioe) { if (th.isSMB2()) { throw ioe; } log.debug("doMsrpcShareEnum failed", ioe);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.3K bytes - Click Count (0)