C# 클래스 System.Net.CommandStream

상속: PooledStream
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_abortReason string
_commands PipelineEntry[]
_index int
_isAsync bool
_request WebRequest

Private Properties

프로퍼티 타입 설명
Abort void
CheckContinuePipeline void
CommandStream System.IO
PostReadCommandProcessing bool
PostSendCommandProcessing bool
ReadCallback void
ReceiveCommandResponse ResponseDescription
ReceiveCommandResponseCallback void
SubmitRequest Stream
WriteCallback void

보호된 메소드들

메소드 설명
BuildCommandsList ( WebRequest request ) : PipelineEntry[]
CheckValid ( ResponseDescription response, int &validThrough, int &completeLength ) : bool

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, Exception innerException ) : Exception
GenerateException ( string message, WebExceptionStatus status, Exception innerException ) : Exception
InitCommandPipeline ( WebRequest request, PipelineEntry commands, bool isAsync ) : void
InvokeRequestCallback ( object obj ) : void
MarkAsRecoverableFailure ( ) : void
PipelineCallback ( PipelineEntry entry, ResponseDescription response, bool timeout, Stream &stream ) : PipelineInstruction

비공개 메소드들

메소드 설명
Abort ( Exception e ) : void
CheckContinuePipeline ( ) : void
CommandStream ( TcpClient client ) : System.IO
PostReadCommandProcessing ( Stream &stream ) : bool
PostSendCommandProcessing ( Stream &stream ) : bool
ReadCallback ( IAsyncResult asyncResult ) : void
ReceiveCommandResponse ( ) : ResponseDescription

Kicks off an asynchronous or sync request to receive a response from the server. Uses the Encoding encoding to transform the bytes received into a string to be returned in the GeneralResponseDescription's StatusDescription field.

ReceiveCommandResponseCallback ( ReceiveState state, int bytesRead ) : void

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 ( WebRequest request, bool isAsync, bool readInitalResponseOnConnect ) : Stream
WriteCallback ( IAsyncResult asyncResult ) : void

메소드 상세

BuildCommandsList() 보호된 메소드

protected BuildCommandsList ( WebRequest request ) : PipelineEntry[]
request WebRequest
리턴 PipelineEntry[]

CheckValid() 보호된 메소드

This function is implemented in a derived class to determine whether a response is valid, and when it is complete.
protected CheckValid ( ResponseDescription response, int &validThrough, int &completeLength ) : bool
response ResponseDescription
validThrough int
completeLength int
리턴 bool

ClearState() 보호된 메소드

protected ClearState ( ) : void
리턴 void

ContinueCommandPipeline() 보호된 메소드

protected ContinueCommandPipeline ( ) : Stream
리턴 Stream

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GenerateException() 보호된 메소드

protected GenerateException ( FtpStatusCode code, string statusDescription, Exception innerException ) : Exception
code FtpStatusCode
statusDescription string
innerException System.Exception
리턴 System.Exception

GenerateException() 보호된 메소드

protected GenerateException ( string message, WebExceptionStatus status, Exception innerException ) : Exception
message string
status WebExceptionStatus
innerException System.Exception
리턴 System.Exception

InitCommandPipeline() 보호된 메소드

protected InitCommandPipeline ( WebRequest request, PipelineEntry commands, bool isAsync ) : void
request WebRequest
commands PipelineEntry
isAsync bool
리턴 void

InvokeRequestCallback() 보호된 메소드

protected InvokeRequestCallback ( object obj ) : void
obj object
리턴 void

MarkAsRecoverableFailure() 보호된 메소드

protected MarkAsRecoverableFailure ( ) : void
리턴 void

PipelineCallback() 보호된 메소드

protected PipelineCallback ( PipelineEntry entry, ResponseDescription response, bool timeout, Stream &stream ) : PipelineInstruction
entry PipelineEntry
response ResponseDescription
timeout bool
stream Stream
리턴 PipelineInstruction

프로퍼티 상세

_abortReason 보호되어 있는 프로퍼티

protected string _abortReason
리턴 string

_commands 보호되어 있는 프로퍼티

protected PipelineEntry[] _commands
리턴 PipelineEntry[]

_index 보호되어 있는 프로퍼티

protected int _index
리턴 int

_isAsync 보호되어 있는 프로퍼티

protected bool _isAsync
리턴 bool

_request 보호되어 있는 프로퍼티

protected WebRequest,System.Net _request
리턴 WebRequest