C# Class ftpClient.Operations.OperationBase

Show file Open project: ERNICommunity/TLAoP

Protected Properties

Property Type Description
_cancelToken System.Threading.CancellationTokenSource
_dataClient System.Net.Sockets.TcpClient
_deferredResponse string>>.Task

Public Methods

Method Description
Finish ( ) : void
Init ( ControlChannel controlClient, TransferMode mode ) : bool
Process ( ControlChannel controlClient ) : Task

Protected Methods

Method Description
DownloadData ( TcpClient dataClient ) : Task
OperationBase ( ) : System
ParseData ( byte data, int size ) : void
PrepareDataChannel ( ControlChannel controlChannel, TransferMode mode, string operationCommand ) : TcpClient
UploadData ( TcpClient dataClient, Stream dataStream ) : Task

Method Details

DownloadData() protected method

protected DownloadData ( TcpClient dataClient ) : Task
dataClient System.Net.Sockets.TcpClient
return Task

Finish() public abstract method

public abstract Finish ( ) : void
return void

Init() public abstract method

public abstract Init ( ControlChannel controlClient, TransferMode mode ) : bool
controlClient ControlChannel
mode TransferMode
return bool

OperationBase() protected method

protected OperationBase ( ) : System
return System

ParseData() protected abstract method

protected abstract ParseData ( byte data, int size ) : void
data byte
size int
return void

PrepareDataChannel() protected method

protected PrepareDataChannel ( ControlChannel controlChannel, TransferMode mode, string operationCommand ) : TcpClient
controlChannel ControlChannel
mode TransferMode
operationCommand string
return System.Net.Sockets.TcpClient

Process() public abstract method

public abstract Process ( ControlChannel controlClient ) : Task
controlClient ControlChannel
return Task

UploadData() protected method

protected UploadData ( TcpClient dataClient, Stream dataStream ) : Task
dataClient System.Net.Sockets.TcpClient
dataStream Stream
return Task

Property Details

_cancelToken protected property

protected CancellationTokenSource,System.Threading _cancelToken
return System.Threading.CancellationTokenSource

_dataClient protected property

protected TcpClient,System.Net.Sockets _dataClient
return System.Net.Sockets.TcpClient

_deferredResponse protected property

protected Task> _deferredResponse
return string>>.Task