Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readPacketType (0.09 sec)

  1. src/main/java/jcifs/netbios/SessionServicePacket.java

                n = in.read(b, off + i, len - i);
                if ( n <= 0 ) {
                    break;
                }
                i += n;
            }
    
            return i;
        }
    
    
        static int readPacketType ( InputStream in, byte[] buffer, int bufferIndex ) throws IOException {
            int n;
            if ( ( n = readn(in, buffer, bufferIndex, HEADER_LENGTH) ) != HEADER_LENGTH ) {
                if ( n == -1 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

                    len -= n;
                    bip -= n;
                    if( len == 0 ) {
                        return tot;
                    }
                }
    
                switch( SessionServicePacket.readPacketType( in, header, 0 )) {
                    case SessionServicePacket.SESSION_KEEP_ALIVE:
                        break;
                    case SessionServicePacket.SESSION_MESSAGE:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

                n = in.read( b, off + i, len - i );
                if (n <= 0) {
                    break;
                }
                i += n;
            }
    
            return i;
        }
        static int readPacketType( InputStream in,
                                        byte[] buffer,
                                        int bufferIndex )
                                        throws IOException {
            int n;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NbtSocket.java

                out.write( buffer, 0, ssp0.writeWireFormat( buffer, 0 ));
    
                setSoTimeout( soTimeout );
                type = ssp0.readPacketType( in, buffer, 0 );
            } catch( IOException ioe ) {
                close();
                throw ioe;
            }
    
            switch( type ) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.8K bytes
    - Viewed (0)
Back to top