C# Class System.Net.ConnectStream

Inheritance: System.IO.Stream, ICloseEx, IRequestLifetimeTracker
Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
BeginRead IAsyncResult
BeginReadWithoutValidation IAsyncResult
BeginWrite IAsyncResult
CallDone void
CallDone void
CloseInternal void
CloseInternal void
DrainSocket bool
EnableWriteBuffering void
EndReadWithoutValidation int
ErrorResponseNotify void
ExchangeCallNesting int
FatalResponseNotify void
FillFromBufferedData int
GetChunkHeader byte[]
ICloseEx void
IOError void
IOError void
InternalRead int
InternalWrite IAsyncResult
PollAndRead void
ProcessReadChunkedSize int
ProcessWriteCallDone void
ProcessWriteCallback void
ReadCRLF int
ReadCallback void
ReadChunkedCallback void
ReadChunkedSync int
ReadSingleByte int
ReadWithoutValidation int
ReadWithoutValidation int
RemoveTrailers void
ResubmitWrite void
ResumeClose_Part2 void
ResumeClose_Part2_Wrapper void
ResumeInternalClose void
SafeSetSocketTimeout void
SwitchToContentLength void
WriteCallback void
WriteHeaders void
WriteHeadersCallback void

Public Methods

Method Description
ConnectStream ( Connection connection, HttpWebRequest request ) : System.Diagnostics
ConnectStream ( Connection connection, byte buffer, int offset, int bufferCount, long readCount, bool chunked, HttpWebRequest request ) : System.Diagnostics
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
Read ( [ buffer, int offset, int size ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int size ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginReadWithoutValidation ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
CallDone ( ) : void
CallDone ( ConnectionReturnResult returnResult ) : void
CloseInternal ( bool internalCall ) : void
CloseInternal ( bool internalCall, bool aborting ) : void
DrainSocket ( ) : bool
EnableWriteBuffering ( ) : void
EndReadWithoutValidation ( int bytesTransferred, bool zeroLengthRead ) : int
ErrorResponseNotify ( bool isKeepAlive ) : void
ExchangeCallNesting ( int value, int comparand ) : int
FatalResponseNotify ( ) : void
FillFromBufferedData ( byte buffer, int &offset, int &size ) : int
GetChunkHeader ( int size, int &offset ) : byte[]
ICloseEx ( CloseExState closeState ) : void
IOError ( Exception exception ) : void
IOError ( Exception exception, bool willThrow ) : void
InternalRead ( byte buffer, int offset, int size ) : int
InternalWrite ( bool async, byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
PollAndRead ( bool userRetrievedStream ) : void
ProcessReadChunkedSize ( StreamChunkBytes ReadByteBuffer ) : int
ProcessWriteCallDone ( ConnectionReturnResult returnResult ) : void
ProcessWriteCallback ( IAsyncResult asyncResult, LazyAsyncResult userResult ) : void
ReadCRLF ( byte buffer ) : int
ReadCallback ( IAsyncResult asyncResult ) : void
ReadChunkedCallback ( object state ) : void
ReadChunkedSync ( byte buffer, int offset, int size ) : int
ReadSingleByte ( ) : int
ReadWithoutValidation ( [ buffer, int offset, int size, bool abortOnError ) : int
ReadWithoutValidation ( byte buffer, int offset, int size ) : int
RemoveTrailers ( StreamChunkBytes ReadByteBuffer ) : void
ResubmitWrite ( ConnectStream oldStream, bool suppressWrite ) : void
ResumeClose_Part2 ( LazyAsyncResult userResult ) : void
ResumeClose_Part2_Wrapper ( IAsyncResult ar ) : void
ResumeInternalClose ( LazyAsyncResult userResult ) : void
SafeSetSocketTimeout ( SocketShutdown mode ) : void
SwitchToContentLength ( ) : void
WriteCallback ( IAsyncResult asyncResult ) : void
WriteHeaders ( bool async ) : void
WriteHeadersCallback ( IAsyncResult ar ) : void

Method Details

ConnectStream() public method

public ConnectStream ( Connection connection, HttpWebRequest request ) : System.Diagnostics
connection Connection
request HttpWebRequest
return System.Diagnostics

ConnectStream() public method

public ConnectStream ( Connection connection, byte buffer, int offset, int bufferCount, long readCount, bool chunked, HttpWebRequest request ) : System.Diagnostics
connection Connection
buffer byte
offset int
bufferCount int
readCount long
chunked bool
request HttpWebRequest
return System.Diagnostics

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( [ buffer, int offset, int size ) : int
buffer [
offset int
size int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
return void