- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getLocalName (0.26 sec)
-
src/test/java/jcifs/NameServiceClientTest.java
when(nameServiceClient.getLocalName()).thenReturn(expectedName); // Act NetbiosName actualName = nameServiceClient.getLocalName(); // Assert assertNotNull(actualName); assertEquals(expectedName, actualName); verify(nameServiceClient, times(1)).getLocalName(); } @Test void testGetUnknownName() { // Arrange
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
} @Test @DisplayName("Should get local host name") void testGetLocalName() { // When NetbiosName localName = nameServiceClient.getLocalName(); // Then assertNotNull(localName, "Local name should not be null"); assertTrue(localName.getName().length() > 0, "Local name should not be empty"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
public NbtAddress getLocalHost() { return this.localhostAddress; } /** * {@inheritDoc} * * @see jcifs.NameServiceClient#getLocalName() */ @Override public Name getLocalName() { if (this.localhostAddress != null) { return this.localhostAddress.hostName; } return null; } /**
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/smb1/SmbTransport.java
out = socket.getOutputStream(); in = socket.getInputStream(); final SessionServicePacket ssp = new SessionRequestPacket(calledName, NbtAddress.getLocalName()); out.write(sbuf, 0, ssp.writeWireFormat(sbuf, 0)); if (readn(in, sbuf, 0, 4) < 4) { try { socket.close();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
return localhost; } /** * Gets the local host NetBIOS name. * * @return the local host name */ public static Name getLocalName() { return localhost.hostName; } /** * Determines the address of a host given it's host name. The name can be a NetBIOS name likeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0)