Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 18 of 18 for writeWireFormat (0.09 seconds)

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

        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += calledName.writeWireFormat(dst, dstIndex);
            dstIndex += callingName.writeWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            lenient().when(mockConfig.getNetbiosScope()).thenReturn("DEFAULT.SCOPE");
            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
    
            // Setup mock name
            lenient().when(mockName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(34);
            mockName.hexCode = 0x20;
            mockName.name = "TEST";
            mockName.scope = "test.scope";
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/NameTest.java

        }
    
        @Test
        void writeWireFormat_shouldEncodeNameCorrectly() {
            Name name = new Name(mockConfig, "TEST", 0x20, null);
            byte[] dst = new byte[100];
    
            int length = name.writeWireFormat(dst, 0);
    
            // Check first byte is 0x20
            assertEquals(0x20, dst[0]);
    
            // Check encoded name (TEST -> encoded as pairs)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

                    new TestNetbiosName("WORKSTATION1", 0x00, "CORP.LOCAL"));
    
            // Write to buffer
            byte[] buffer = new byte[512];
            int written = originalPacket.writeWireFormat(buffer, 0);
    
            // Read from buffer
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
            SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                            request.nameTrnId = getNextNameTrnId();
                            nid = request.nameTrnId;
    
                            out.setAddress(request.addr);
                            out.setLength(request.writeWireFormat(snd_buf, 0));
                            response.received = false;
    
                            responseTable.put(nid, response);
                            ensureOpen(timeout + 1000);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                            nid = request.nameTrnId;
    
                            this.out.setAddress(request.addr);
                            this.out.setLength(request.writeWireFormat(this.snd_buf, 0));
                            response.received = false;
    
                            this.responseTable.put(nid, response);
                            ensureOpen(timeout + 1000);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 38.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                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();
                    } catch (final IOException ioe) {}
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                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();
                    } catch (final IOException ioe) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
Back to Top