Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for questionName (1.81 sec)

  1. src/main/java/jcifs/smb1/netbios/NodeStatusRequest.java

        NodeStatusRequest(final Name name) {
            questionName = name;
            questionType = NBSTAT;
            isRecurDesired = false;
            isBroadcast = false;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            final int tmp = questionName.hexCode;
            questionName.hexCode = 0x00; // type has to be 0x00 for node status
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/NodeStatusRequest.java

            super(cfg);
            this.questionName = name;
            this.questionType = NBSTAT;
            this.isRecurDesired = false;
            this.isBroadcast = false;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            final int tmp = this.questionName.hexCode;
            this.questionName.hexCode = 0x00; // type has to be 0x00 for node status
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.questionName = mockQuestionName; // Ensure questionName is set
    
            int read = packet.readResourceRecordWireFormat(src, 0);
            assertEquals(18, read); // 2 (pointer) + 2 (type) + 2 (class) + 4 (ttl) + 2 (rDataLength) + 6 (rData)
            assertEquals(packet.questionName, packet.recordName);
            assertEquals(NameServicePacket.A, packet.recordType);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServicePacket.java

            final int start = dstIndex;
            if (this.recordName == this.questionName) {
                dst[dstIndex] = (byte) 0xC0; // label string pointer to
                dstIndex++;
                dst[dstIndex++] = (byte) 0x0C; // questionName (offset 12)
            } else {
                dstIndex += this.recordName.writeWireFormat(dst, dstIndex);
            }
            writeInt2(this.recordType, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            if (recordName == questionName) {
                dst[dstIndex] = (byte) 0xC0; // label string pointer to
                dstIndex++;
                dst[dstIndex++] = (byte) 0x0C; // questionName (offset 12)
            } else {
                dstIndex += recordName.writeWireFormat(dst, dstIndex);
            }
            writeInt2(recordType, dst, dstIndex);
            dstIndex += 2;
            writeInt2(recordClass, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NameQueryRequest.java

    package jcifs.netbios;
    
    import jcifs.Configuration;
    
    class NameQueryRequest extends NameServicePacket {
    
        NameQueryRequest(final Configuration config, final Name name) {
            super(config);
            this.questionName = name;
            this.questionType = NB;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NameQueryRequestTest.java

        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly initializes questionName and questionType
            NameQueryRequest request = new NameQueryRequest(mockConfig, mockName);
    
            assertNotNull(request);
            assertEquals(mockName, request.questionName);
            assertEquals(NameServicePacket.NB, request.questionType);
        }
    
        @Test
        void testWriteBodyWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            // Act
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
    
            // Assert
            assertSame(mockName, nodeStatusRequest.questionName);
            assertEquals(NameServicePacket.NBSTAT, nodeStatusRequest.questionType);
            assertFalse(nodeStatusRequest.isRecurDesired);
            assertFalse(nodeStatusRequest.isBroadcast);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // rDataLength (2 bytes)
            src[srcIndex + 10] = 0x00;
            src[srcIndex + 11] = 0x06; // 6 bytes of data
    
            // Initialize questionName to avoid NPE
            Field questionNameField = NameServicePacket.class.getDeclaredField("questionName");
            questionNameField.setAccessible(true);
            questionNameField.set(nameQueryResponse, mockRecordName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NameQueryRequest.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.netbios;
    
    class NameQueryRequest extends NameServicePacket {
    
        NameQueryRequest(final Name name) {
            questionName = name;
            questionType = NB;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top