Свойство | Type | Description | |
---|---|---|---|
TempDir | String | ||
UserHome | String |
Méthode | Description | |
---|---|---|
BufferToSignal ( byte buffer ) : Signal |
Convert a byte array to a single byte signal
|
|
CreateLocalDirectory ( String absPath ) : bool |
Create a directory on the local filesystem if it does not exist
|
|
DateTimeToUnixTimestamp ( System.DateTime dateTime ) : long |
Convert DateTime to unix timestamp.
|
|
DeleteLocal ( String absPath ) : bool |
Delete a local file or directory
|
|
EncryptPassword ( string pwd, string salt ) : string |
Enrcypt a password with a salt and return the result
|
|
EndDirWithSlash ( String absPath ) : string |
Make sure the input directory path has a trailing slash.
|
|
ExitError ( ) : void |
Quit the program when an error occurs.
|
|
FileChecksumToBytes ( String absPath ) : byte[] | ||
FileChecksumToString ( String absPath ) : String | ||
GenerateSalt ( int size ) : string |
Generates a random salt for password encryption purposes
|
|
GetFilesRecursive ( string baseDir ) : List |
Gets a recursive listing of files from a directory
|
|
GetModTime ( String fullPath ) : long |
Get the data modification time of a local file
|
|
Md5Hash ( String input ) : String |
Md5 digest a string.
|
|
ReceiveFile ( |
Receive a file over a socket
|
|
ReceiveString ( |
Get a string from a socket which is sent by SendString
|
|
SendString ( |
Send a string along a socket
|
|
Sha256Hash ( String input ) : String |
Compute Sha256 for a string.
|
|
ShowCliHelp ( OptionSet options, |
Display the command line options and then exit.
|
|
SignalToBuffer ( Signal signal ) : byte[] |
Convert the signal to a byte array
|
|
UnixTimeStampToDateTime ( long unixTimeStamp ) : System.DateTime |
Convert UNIX timestamp to a datetime object
|
Méthode | Description | |
---|---|---|
SendFile ( String relPath, |
public static BufferToSignal ( byte buffer ) : Signal | ||
buffer | byte | |
Résultat | Signal |
public static CreateLocalDirectory ( String absPath ) : bool | ||
absPath | String | |
Résultat | bool |
public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : long | ||
dateTime | System.DateTime | /// DateTime /// |
Résultat | long |
public static DeleteLocal ( String absPath ) : bool | ||
absPath | String | the absolute path to the item |
Résultat | bool |
public static EncryptPassword ( string pwd, string salt ) : string | ||
pwd | string | |
salt | string | |
Résultat | string |
public static EndDirWithSlash ( String absPath ) : string | ||
absPath | String | |
Résultat | string |
public static FileChecksumToBytes ( String absPath ) : byte[] | ||
absPath | String | |
Résultat | byte[] |
public static FileChecksumToString ( String absPath ) : String | ||
absPath | String | |
Résultat | String |
public static GenerateSalt ( int size ) : string | ||
size | int | the length in bytes of the salt |
Résultat | string |
public static GetFilesRecursive ( string baseDir ) : List |
||
baseDir | string | |
Résultat | List |
public static GetModTime ( String fullPath ) : long | ||
fullPath | String | |
Résultat | long |
public static Md5Hash ( String input ) : String | ||
input | String | /// Any string /// |
Résultat | String |
public static ReceiveFile ( |
||
socket | ||
baseDir | string | the base directory the file will live in |
Résultat |
public static ReceiveString ( |
||
socket | ||
Résultat | String |
public static SendString ( |
||
socket | ||
str | String | |
Résultat | bool |
public static Sha256Hash ( String input ) : String | ||
input | String | /// Input. /// |
Résultat | String |
public static ShowCliHelp ( OptionSet options, |
||
options | OptionSet | |
thisAssembly | ||
Résultat | void |
public static SignalToBuffer ( Signal signal ) : byte[] | ||
signal | Signal | |
Résultat | byte[] |
public static UnixTimeStampToDateTime ( long unixTimeStamp ) : System.DateTime | ||
unixTimeStamp | long | /// Unix time stamp. /// |
Résultat | System.DateTime |