Package jcifs.smb

Class SmbTransport

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SmbTransport
    extends Transport
    • Field Detail

      • DEFAULT_RESPONSE_TIMEOUT

        public static final int DEFAULT_RESPONSE_TIMEOUT
        See Also:
        Constant Field Values
      • LADDR

        public static final java.net.InetAddress LADDR
      • LPORT

        public static final int LPORT
      • MAX_MPX_COUNT

        public static final int MAX_MPX_COUNT
      • SND_BUF_SIZE

        public static final int SND_BUF_SIZE
      • RCV_BUF_SIZE

        public static final int RCV_BUF_SIZE
      • USE_UNICODE

        public static final boolean USE_UNICODE
      • FORCE_UNICODE

        public static final boolean FORCE_UNICODE
      • USE_NTSTATUS

        public static final boolean USE_NTSTATUS
      • SIGNPREF

        public static final boolean SIGNPREF
      • USE_NTSMBS

        public static final boolean USE_NTSMBS
      • USE_EXTSEC

        public static final boolean USE_EXTSEC
      • NETBIOS_HOSTNAME

        public static final java.lang.String NETBIOS_HOSTNAME
      • LM_COMPATIBILITY

        public static final int LM_COMPATIBILITY
      • FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK

        public static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
        See Also:
        Constant Field Values
      • FLAGS_RECEIVE_BUFFER_POSTED

        public static final int FLAGS_RECEIVE_BUFFER_POSTED
        See Also:
        Constant Field Values
      • FLAGS_PATH_NAMES_CASELESS

        public static final int FLAGS_PATH_NAMES_CASELESS
        See Also:
        Constant Field Values
      • FLAGS_PATH_NAMES_CANONICALIZED

        public static final int FLAGS_PATH_NAMES_CANONICALIZED
        See Also:
        Constant Field Values
      • FLAGS_OPLOCK_REQUESTED_OR_GRANTED

        public static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTED
        See Also:
        Constant Field Values
      • FLAGS_NOTIFY_OF_MODIFY_ACTION

        public static final int FLAGS_NOTIFY_OF_MODIFY_ACTION
        See Also:
        Constant Field Values
      • FLAGS2_EXTENDED_ATTRIBUTES

        public static final int FLAGS2_EXTENDED_ATTRIBUTES
        See Also:
        Constant Field Values
      • FLAGS2_SECURITY_SIGNATURES

        public static final int FLAGS2_SECURITY_SIGNATURES
        See Also:
        Constant Field Values
      • FLAGS2_EXTENDED_SECURITY_NEGOTIATION

        public static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATION
        See Also:
        Constant Field Values
      • FLAGS2_RESOLVE_PATHS_IN_DFS

        public static final int FLAGS2_RESOLVE_PATHS_IN_DFS
        See Also:
        Constant Field Values
      • FLAGS2_PERMIT_READ_IF_EXECUTE_PERM

        public static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
        See Also:
        Constant Field Values
      • FLAGS_TARGET_MUST_BE_FILE

        public static final int FLAGS_TARGET_MUST_BE_FILE
        See Also:
        Constant Field Values
      • FLAGS_TARGET_MUST_BE_DIRECTORY

        public static final int FLAGS_TARGET_MUST_BE_DIRECTORY
        See Also:
        Constant Field Values
      • FLAGS_COPY_TARGET_MODE_ASCII

        public static final int FLAGS_COPY_TARGET_MODE_ASCII
        See Also:
        Constant Field Values
      • FLAGS_COPY_SOURCE_MODE_ASCII

        public static final int FLAGS_COPY_SOURCE_MODE_ASCII
        See Also:
        Constant Field Values
      • FLAGS_VERIFY_ALL_WRITES

        public static final int FLAGS_VERIFY_ALL_WRITES
        See Also:
        Constant Field Values
      • OPEN_FUNCTION_FAIL_IF_EXISTS

        public static final int OPEN_FUNCTION_FAIL_IF_EXISTS
        See Also:
        Constant Field Values
      • OPEN_FUNCTION_OVERWRITE_IF_EXISTS

        public static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS
        See Also:
        Constant Field Values
      • PID

        public static final int PID
      • MILLISECONDS_BETWEEN_1970_AND_1601

        public static final long MILLISECONDS_BETWEEN_1970_AND_1601
        See Also:
        Constant Field Values
      • TZ

        public static final java.util.TimeZone TZ
      • USE_BATCHING

        public static final boolean USE_BATCHING
      • OEM_ENCODING

        public static final java.lang.String OEM_ENCODING
      • DEFAULT_FLAGS2

        public static final int DEFAULT_FLAGS2
      • DEFAULT_CAPABILITIES

        public static final int DEFAULT_CAPABILITIES
      • FLAGS2

        public static final int FLAGS2
      • CAPABILITIES

        public static final int CAPABILITIES
      • TCP_NODELAY

        public static final boolean TCP_NODELAY
      • RESPONSE_TIMEOUT

        public static final int RESPONSE_TIMEOUT
      • CONNECTIONS

        public static final java.util.LinkedList CONNECTIONS
      • SSN_LIMIT

        public static final int SSN_LIMIT
      • SO_TIMEOUT

        public static final int SO_TIMEOUT
      • NATIVE_OS

        public static final java.lang.String NATIVE_OS
      • NATIVE_LANMAN

        public static final java.lang.String NATIVE_LANMAN
      • NULL_TRANSPORT

        public static final SmbTransport NULL_TRANSPORT
    • Method Detail

      • doConnect

        protected void doConnect()
                          throws java.io.IOException
        Specified by:
        doConnect in class Transport
        Throws:
        java.io.IOException
      • doDisconnect

        protected void doDisconnect​(boolean hard)
                             throws java.io.IOException
        Specified by:
        doDisconnect in class Transport
        Throws:
        java.io.IOException
      • makeKey

        protected void makeKey​(Request request)
                        throws java.io.IOException
        Specified by:
        makeKey in class Transport
        Throws:
        java.io.IOException
      • peekKey

        protected Request peekKey()
                           throws java.io.IOException
        Specified by:
        peekKey in class Transport
        Throws:
        java.io.IOException
      • doSend

        protected void doSend​(Request request)
                       throws java.io.IOException
        Specified by:
        doSend in class Transport
        Throws:
        java.io.IOException
      • doSend0

        protected void doSend0​(Request request)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • doRecv

        protected void doRecv​(Response response)
                       throws java.io.IOException
        Specified by:
        doRecv in class Transport
        Throws:
        java.io.IOException
      • doSkip

        protected void doSkip()
                       throws java.io.IOException
        Specified by:
        doSkip in class Transport
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Transport