jcifs.SmbConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcifs-ng Show documentation
Show all versions of jcifs-ng Show documentation
A pure-java CIFS/SMB client library
/*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package jcifs;
/**
* @author mbechler
*
* @internal
*/
@SuppressWarnings ( "javadoc" )
public interface SmbConstants {
static final int DEFAULT_PORT = 445;
static final int DEFAULT_MAX_MPX_COUNT = 10;
static final int DEFAULT_RESPONSE_TIMEOUT = 30000;
static final int DEFAULT_SO_TIMEOUT = 35000;
static final int DEFAULT_RCV_BUF_SIZE = 0xFFFF;
static final int DEFAULT_SND_BUF_SIZE = 0xFFFF;
static final int DEFAULT_NOTIFY_BUF_SIZE = 1024;
static final int DEFAULT_SSN_LIMIT = 250;
static final int DEFAULT_CONN_TIMEOUT = 35000;
static final int FLAGS_NONE = 0x00;
static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK = 0x01;
static final int FLAGS_RECEIVE_BUFFER_POSTED = 0x02;
static final int FLAGS_PATH_NAMES_CASELESS = 0x08;
static final int FLAGS_PATH_NAMES_CANONICALIZED = 0x10;
static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTED = 0x20;
static final int FLAGS_NOTIFY_OF_MODIFY_ACTION = 0x40;
static final int FLAGS_RESPONSE = 0x80;
static final int FLAGS2_NONE = 0x0000;
static final int FLAGS2_LONG_FILENAMES = 0x0001;
static final int FLAGS2_EXTENDED_ATTRIBUTES = 0x0002;
static final int FLAGS2_SECURITY_SIGNATURES = 0x0004;
static final int FLAGS2_SECURITY_REQUIRE_SIGNATURES = 0x0010;
static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATION = 0x0800;
static final int FLAGS2_RESOLVE_PATHS_IN_DFS = 0x1000;
static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERM = 0x2000;
static final int FLAGS2_STATUS32 = 0x4000;
static final int FLAGS2_UNICODE = 0x8000;
static final int CAP_NONE = 0x0000;
static final int CAP_RAW_MODE = 0x0001;
static final int CAP_MPX_MODE = 0x0002;
static final int CAP_UNICODE = 0x0004;
static final int CAP_LARGE_FILES = 0x0008;
static final int CAP_NT_SMBS = 0x0010;
static final int CAP_RPC_REMOTE_APIS = 0x0020;
static final int CAP_STATUS32 = 0x0040;
static final int CAP_LEVEL_II_OPLOCKS = 0x0080;
static final int CAP_LOCK_AND_READ = 0x0100;
static final int CAP_NT_FIND = 0x0200;
static final int CAP_DFS = 0x1000;
static final int CAP_LARGE_READX = 0x4000;
static final int CAP_LARGE_WRITEX = 0x8000;
static final int CAP_EXTENDED_SECURITY = 0x80000000;
// file attribute encoding
static final int ATTR_READONLY = 0x01;
static final int ATTR_HIDDEN = 0x02;
static final int ATTR_SYSTEM = 0x04;
static final int ATTR_VOLUME = 0x08;
static final int ATTR_DIRECTORY = 0x10;
static final int ATTR_ARCHIVE = 0x20;
// extended file attribute encoding(others same as above)
static final int ATTR_COMPRESSED = 0x800;
static final int ATTR_NORMAL = 0x080;
static final int ATTR_TEMPORARY = 0x100;
// access mask encoding
static final int FILE_READ_DATA = 0x00000001; // 1
static final int FILE_WRITE_DATA = 0x00000002; // 2
static final int FILE_APPEND_DATA = 0x00000004; // 3
static final int FILE_READ_EA = 0x00000008; // 4
static final int FILE_WRITE_EA = 0x00000010; // 5
static final int FILE_EXECUTE = 0x00000020; // 6
static final int FILE_DELETE = 0x00000040; // 7
static final int FILE_READ_ATTRIBUTES = 0x00000080; // 8
static final int FILE_WRITE_ATTRIBUTES = 0x00000100; // 9
static final int DELETE = 0x00010000; // 16
static final int READ_CONTROL = 0x00020000; // 17
static final int WRITE_DAC = 0x00040000; // 18
static final int WRITE_OWNER = 0x00080000; // 19
static final int SYNCHRONIZE = 0x00100000; // 20
static final int GENERIC_ALL = 0x10000000; // 28
static final int GENERIC_EXECUTE = 0x20000000; // 29
static final int GENERIC_WRITE = 0x40000000; // 30
static final int GENERIC_READ = 0x80000000; // 31
// flags for move and copy
static final int FLAGS_TARGET_MUST_BE_FILE = 0x0001;
static final int FLAGS_TARGET_MUST_BE_DIRECTORY = 0x0002;
static final int FLAGS_COPY_TARGET_MODE_ASCII = 0x0004;
static final int FLAGS_COPY_SOURCE_MODE_ASCII = 0x0008;
static final int FLAGS_VERIFY_ALL_WRITES = 0x0010;
static final int FLAGS_TREE_COPY = 0x0020;
// open function
static final int OPEN_FUNCTION_FAIL_IF_EXISTS = 0x0000;
static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS = 0x0020;
static final int SECURITY_SHARE = 0x00;
static final int SECURITY_USER = 0x01;
static final int CMD_OFFSET = 4;
static final int ERROR_CODE_OFFSET = 5;
static final int FLAGS_OFFSET = 9;
static final int SIGNATURE_OFFSET = 14;
static final int TID_OFFSET = 24;
static final int HEADER_LENGTH = 32;
static final long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
String DEFAULT_OEM_ENCODING = "Cp850";
public int FOREVER = -1;
}