- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getLocalName (0.05 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/NameServiceClient.java
* * @return local host address */ NetbiosAddress getLocalHost(); /** * Gets the local host NetBIOS name. * * @return the local host name */ NetbiosName getLocalName(); /** * Gets the unknown NetBIOS name instance. * * @return the unknown name */ NetbiosName getUnknownName(); /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
this.in = this.socket.getInputStream(); final SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName()); this.out.write(this.sbuf, 0, ssp.writeWireFormat(this.sbuf, 0)); if (readn(this.in, this.sbuf, 0, 4) < 4) { try { this.socket.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)