Property | Type | Description | |
---|---|---|---|
_abortReason | string | ||
_commands | PipelineEntry[] | ||
_index | int | ||
_isAsync | bool | ||
_request |
Property | Type | Description | |
---|---|---|---|
Abort | void | ||
CheckContinuePipeline | void | ||
CommandStream | System.IO | ||
PostReadCommandProcessing | bool | ||
PostSendCommandProcessing | bool | ||
ReadCallback | void | ||
ReceiveCommandResponse | |||
ReceiveCommandResponseCallback | void | ||
SubmitRequest | Stream | ||
WriteCallback | void |
Method | Description | |
---|---|---|
BuildCommandsList ( |
||
CheckValid ( |
This function is implemented in a derived class to determine whether a response is valid, and when it is complete.
|
|
ClearState ( ) : void | ||
ContinueCommandPipeline ( ) : Stream | ||
Dispose ( bool disposing ) : void | ||
GenerateException ( FtpStatusCode code, string statusDescription, |
||
GenerateException ( string message, WebExceptionStatus status, |
||
InitCommandPipeline ( |
||
InvokeRequestCallback ( object obj ) : void | ||
MarkAsRecoverableFailure ( ) : void | ||
PipelineCallback ( PipelineEntry entry, |
Method | Description | |
---|---|---|
Abort ( |
||
CheckContinuePipeline ( ) : void | ||
CommandStream ( TcpClient client ) : System.IO | ||
PostReadCommandProcessing ( Stream &stream ) : bool | ||
PostSendCommandProcessing ( Stream &stream ) : bool | ||
ReadCallback ( IAsyncResult asyncResult ) : void | ||
ReceiveCommandResponse ( ) : |
Kicks off an asynchronous or sync request to receive a response from the server. Uses the Encoding
|
|
ReceiveCommandResponseCallback ( |
ReceiveCommandResponseCallback is the main "while loop" of the ReceiveCommandResponse function family. In general, what is does is perform an EndReceive() to complete the previous retrieval of bytes from the server (unless it is using a buffered response) It then processes what is received by using the implementing class's CheckValid() function, as described above. If the response is complete, it returns the single complete response in the GeneralResponseDescription created in BeginReceiveComamndResponse, and buffers the rest as described above. If the response is not complete, it issues another Connection.BeginReceive, with callback ReceiveCommandResponse2, so the action will continue at the next invocation of ReceiveCommandResponse2.
|
|
SubmitRequest ( |
||
WriteCallback ( IAsyncResult asyncResult ) : void |
protected BuildCommandsList ( |
||
request | ||
return | PipelineEntry[] |
protected CheckValid ( |
||
response | ||
validThrough | int | |
completeLength | int | |
return | bool |
protected ContinueCommandPipeline ( ) : Stream | ||
return | Stream |
protected GenerateException ( FtpStatusCode code, string statusDescription, |
||
code | FtpStatusCode | |
statusDescription | string | |
innerException | ||
return |
protected GenerateException ( string message, WebExceptionStatus status, |
||
message | string | |
status | WebExceptionStatus | |
innerException | ||
return |
protected InitCommandPipeline ( |
||
request | ||
commands | PipelineEntry | |
isAsync | bool | |
return | void |
protected InvokeRequestCallback ( object obj ) : void | ||
obj | object | |
return | void |
protected MarkAsRecoverableFailure ( ) : void | ||
return | void |
protected PipelineCallback ( PipelineEntry entry, |
||
entry | PipelineEntry | |
response | ||
timeout | bool | |
stream | Stream | |
return | PipelineInstruction |