Package javaforce.service
Class FileSyncServer
java.lang.Object
javaforce.service.FileSyncServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprint_hash(byte[] hash) static voidsetEmbedded(boolean state) voidstart()voidstop()
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
port
public static final int port- See Also:
-
REQ_AUTH
public static final byte REQ_AUTH- See Also:
-
REQ_FILE_OPEN
public static final byte REQ_FILE_OPEN- See Also:
-
REQ_FILE_BLOCK_HASH
public static final byte REQ_FILE_BLOCK_HASH- See Also:
-
REQ_FILE_BLOCK_DATA
public static final byte REQ_FILE_BLOCK_DATA- See Also:
-
REQ_FILE_TRUNCATE
public static final byte REQ_FILE_TRUNCATE- See Also:
-
REQ_FILE_CREATE
public static final byte REQ_FILE_CREATE- See Also:
-
REQ_FILE_DELETE
public static final byte REQ_FILE_DELETE- See Also:
-
REQ_FOLDER_OPEN
public static final byte REQ_FOLDER_OPEN- See Also:
-
REQ_FOLDER_CREATE
public static final byte REQ_FOLDER_CREATE- See Also:
-
REQ_FOLDER_DELETE
public static final byte REQ_FOLDER_DELETE- See Also:
-
REQ_FOLDER_LIST
public static final byte REQ_FOLDER_LIST- See Also:
-
RET_OKAY
public static final byte RET_OKAY- See Also:
-
RET_ERROR
public static final byte RET_ERROR- See Also:
-
RET_CHANGE
public static final byte RET_CHANGE- See Also:
-
RET_NO_CHANGE
public static final byte RET_NO_CHANGE- See Also:
-
RET_NO_EXIST
public static final byte RET_NO_EXIST- See Also:
-
AUTH_PASSWD
public static final int AUTH_PASSWD- See Also:
-
HASH_MD5
public static final int HASH_MD5- See Also:
-
HASH_MD5_SEED
public static final int HASH_MD5_SEED- See Also:
-
max_auth_len
public static final int max_auth_len- See Also:
-
max_data_len
public static final int max_data_len- See Also:
-
-
Constructor Details
-
FileSyncServer
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
setEmbedded
public static void setEmbedded(boolean state) -
print_hash
public static void print_hash(byte[] hash) -
main
-