Свойство | Тип | Описание | |
---|---|---|---|
TempDir | String | ||
UserHome | String |
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
SendFile ( String relPath, |
public static BufferToSignal ( byte buffer ) : Signal | ||
buffer | byte | |
Результат | Signal |
public static CreateLocalDirectory ( String absPath ) : bool | ||
absPath | String | |
Результат | bool |
public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : long | ||
dateTime | System.DateTime | /// DateTime /// |
Результат | long |
public static DeleteLocal ( String absPath ) : bool | ||
absPath | String | the absolute path to the item |
Результат | bool |
public static EncryptPassword ( string pwd, string salt ) : string | ||
pwd | string | |
salt | string | |
Результат | string |
public static EndDirWithSlash ( String absPath ) : string | ||
absPath | String | |
Результат | string |
public static FileChecksumToBytes ( String absPath ) : byte[] | ||
absPath | String | |
Результат | byte[] |
public static FileChecksumToString ( String absPath ) : String | ||
absPath | String | |
Результат | String |
public static GenerateSalt ( int size ) : string | ||
size | int | the length in bytes of the salt |
Результат | string |
public static GetFilesRecursive ( string baseDir ) : List |
||
baseDir | string | |
Результат | List |
public static GetModTime ( String fullPath ) : long | ||
fullPath | String | |
Результат | long |
public static Md5Hash ( String input ) : String | ||
input | String | /// Any string /// |
Результат | String |
public static ReceiveFile ( |
||
socket | ||
baseDir | string | the base directory the file will live in |
Результат |
public static ReceiveString ( |
||
socket | ||
Результат | String |
public static SendString ( |
||
socket | ||
str | String | |
Результат | bool |
public static Sha256Hash ( String input ) : String | ||
input | String | /// Input. /// |
Результат | String |
public static ShowCliHelp ( OptionSet options, |
||
options | OptionSet | |
thisAssembly | ||
Результат | void |
public static SignalToBuffer ( Signal signal ) : byte[] | ||
signal | Signal | |
Результат | byte[] |
public static UnixTimeStampToDateTime ( long unixTimeStamp ) : System.DateTime | ||
unixTimeStamp | long | /// Unix time stamp. /// |
Результат | System.DateTime |