Class TrivialFTP
Inheritance
System.Object
TrivialFTP
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.Deploy.Pixie.dll
Syntax
Constructors
|
Improve this Doc
View Source
TrivialFTP(Byte[], String)
Declaration
public TrivialFTP(byte[] aServerIP, string aPath)
Parameters
Type |
Name |
Description |
System.Byte[] |
aServerIP |
|
System.String |
aPath |
|
Fields
|
Improve this Doc
View Source
mBlockSize
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
mDataEP
Declaration
protected IPEndPoint mDataEP
Field Value
Type |
Description |
System.Net.IPEndPoint |
|
|
Improve this Doc
View Source
mFilename
Declaration
protected string mFilename
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mPath
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mPathname
Declaration
protected string mPathname
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mRecvEP
Declaration
protected IPEndPoint mRecvEP
Field Value
Type |
Description |
System.Net.IPEndPoint |
|
|
Improve this Doc
View Source
mServerIP
Declaration
protected byte[] mServerIP
Field Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
mUDP
Declaration
Field Value
Type |
Description |
System.Net.Sockets.UdpClient |
|
|
Improve this Doc
View Source
Port
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Connect()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DoFileCompleted(String)
Declaration
protected void DoFileCompleted(string aFilename)
Parameters
Type |
Name |
Description |
System.String |
aFilename |
|
|
Improve this Doc
View Source
DoFileStart(String, Int64)
Declaration
protected void DoFileStart(string aFilename, long aSize)
Parameters
Type |
Name |
Description |
System.String |
aFilename |
|
System.Int64 |
aSize |
|
|
Improve this Doc
View Source
DoFileTransfer(String, Int64)
Declaration
protected void DoFileTransfer(string aFilename, long aPosition)
Parameters
Type |
Name |
Description |
System.String |
aFilename |
|
System.Int64 |
aPosition |
|
|
Improve this Doc
View Source
DoTransfer()
Declaration
protected void DoTransfer()
|
Improve this Doc
View Source
Execute()
Declaration
|
Improve this Doc
View Source
ReadString(BinaryReader)
Declaration
public string ReadString(BinaryReader aReader)
Parameters
Type |
Name |
Description |
System.IO.BinaryReader |
aReader |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Receive(TrivialFTP.OpType)
Declaration
protected BinaryReader Receive(TrivialFTP.OpType aOp)
Parameters
Returns
Type |
Description |
System.IO.BinaryReader |
|
|
Improve this Doc
View Source
Send(Byte[])
Declaration
protected void Send(byte[] aBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
aBytes |
|
|
Improve this Doc
View Source
SendErrFileNotFound()
Declaration
protected void SendErrFileNotFound()
|
Improve this Doc
View Source
Stop()
Declaration
|
Improve this Doc
View Source
WaitAck(Int32)
Declaration
protected void WaitAck(int aBlockID)
Parameters
Type |
Name |
Description |
System.Int32 |
aBlockID |
|
|
Improve this Doc
View Source
WriteOp(BinaryWriter, TrivialFTP.OpType)
Declaration
protected void WriteOp(BinaryWriter aWriter, TrivialFTP.OpType aOp)
Parameters
|
Improve this Doc
View Source
WriteString(BinaryWriter, String)
Declaration
protected void WriteString(BinaryWriter aWriter, string aValue)
Parameters
Type |
Name |
Description |
System.IO.BinaryWriter |
aWriter |
|
System.String |
aValue |
|
Events
|
Improve this Doc
View Source
OnFileCompleted
Declaration
public event Action<TrivialFTP, string> OnFileCompleted
Event Type
Type |
Description |
System.Action<TrivialFTP, System.String> |
|
|
Improve this Doc
View Source
OnFileStart
Declaration
public event Action<TrivialFTP, string, long> OnFileStart
Event Type
Type |
Description |
System.Action<TrivialFTP, System.String, System.Int64> |
|
|
Improve this Doc
View Source
OnFileTransfer
Declaration
public event Action<TrivialFTP, string, long> OnFileTransfer
Event Type
Type |
Description |
System.Action<TrivialFTP, System.String, System.Int64> |
|