Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for writeWireFormat (0.51 sec)

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

                final OutputStream out = super.getOutputStream();
    
                final SessionServicePacket ssp0 = new SessionRequestPacket(calledName, NbtAddress.localhost.hostName);
                out.write(buffer, 0, ssp0.writeWireFormat(buffer, 0));
    
                setSoTimeout(soTimeout);
                type = SessionServicePacket.readPacketType(in, buffer, 0);
            } catch (final IOException ioe) {
                close();
                throw ioe;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/Name.java

         *
         * @return whether this is the unknown address
         */
        public boolean isUnknown() {
            return "0.0.0.0".equals(this.name) && this.hexCode == 0 && this.scope == null;
        }
    
        int writeWireFormat(final byte[] dst, final int dstIndex) {
            // write 0x20 in first byte
            dst[dstIndex] = 0x20;
    
            final byte tmp[] = Strings.getOEMBytes(this.name, this.config);
            int i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/Name.java

            }
            this.name = name.toUpperCase();
            this.hexCode = hexCode;
            this.scope = scope != null && scope.length() > 0 ? scope : DEFAULT_SCOPE;
            this.srcHashCode = 0;
        }
    
        int writeWireFormat(final byte[] dst, final int dstIndex) {
            // write 0x20 in first byte
            dst[dstIndex] = 0x20;
    
            // write name
            try {
                final byte tmp[] = name.getBytes(Name.OEM_ENCODING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  6. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (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) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top