Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getLocalName (1.27 sec)

  1. 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)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/root/DefaultRootLocator.java

                XMLStreamReader parser = XMLInputFactory.newFactory().createXMLStreamReader(is);
                if (parser.nextTag() == XMLStreamReader.START_ELEMENT
                        && parser.getLocalName().equals("project")) {
                    for (int i = 0; i < parser.getAttributeCount(); i++) {
                        if ("root".equals(parser.getAttributeLocalName(i))) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. 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");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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 like
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top