Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for SessionServicePacket (0.12 sec)

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

            }
            if (off < 4) {
                throw new IOException("NetBIOS socket output buffer requires 4 bytes available before off");
            }
    
            off -= 4;
    
            b[off + 0] = (byte) SessionServicePacket.SESSION_MESSAGE;
            b[off + 1] = (byte) 0x00;
            b[off + 2] = (byte) (len >> 8 & 0xFF);
            b[off + 3] = (byte) (len & 0xFF);
    
            out.write(b, off, 4 + len);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test that the constructor correctly initializes the type and length fields.
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
            assertEquals(SessionServicePacket.SESSION_RETARGET_RESPONSE, packet.type);
            assertEquals(6, packet.length);
        }
    
        @Test
        void writeTrailerWireFormatShouldReturnZero() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/SessionRequestPacket.java

    import jcifs.NetbiosName;
    
    /**
     * NetBIOS session request packet implementation.
     * This packet is used to initiate NetBIOS session connections.
     */
    public class SessionRequestPacket extends SessionServicePacket {
    
        private final Name calledName, callingName;
    
        SessionRequestPacket(final Configuration config) {
            this.calledName = new Name(config);
            this.callingName = new Name(config);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                }
                switch (sbuf[0] & 0xFF) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
                    if (LogStream.level >= 4) {
                        log.println("session established ok with " + address);
                    }
                    return;
                case SessionServicePacket.NEGATIVE_SESSION_RESPONSE:
                    final int errorCode = in.read() & 0xFF;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

                }
                switch (this.sbuf[0] & 0xFF) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
                    if (log.isDebugEnabled()) {
                        log.debug("session established ok with " + this.address);
                    }
                    return;
                case SessionServicePacket.NEGATIVE_SESSION_RESPONSE:
                    final int errorCode = this.in.read() & 0xFF;
    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