C# Class System.Net.PooledStream

Inheritance: Stream
显示文件 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
Activate bool
BeginMultipleWrite IAsyncResult
BeginRead IAsyncResult
BeginWrite IAsyncResult
CloseSocket void
ConnectionCallback void
Deactivate void
Destroy void
EndMultipleWrite void
MultipleWrite void
Poll bool
PooledStream System
PooledStream System
PostPop void
PrePush void
SetSocketTimeoutOption void
UnsafeBeginRead IAsyncResult
UnsafeBeginWrite IAsyncResult
UpdateLifetime void

Public Methods

Method Description
Close ( int timeout ) : void
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
Read ( byte 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
Activate ( object owningObject, bool async, int timeout, GeneralAsyncDelegate asyncCallback ) : bool
CheckLifetime ( ) : void
Dispose ( bool disposing ) : void

Private Methods

Method Description
Activate ( object owningObject, GeneralAsyncDelegate asyncCallback ) : bool
BeginMultipleWrite ( BufferOffsetSize buffers, AsyncCallback callback, object state ) : IAsyncResult
BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
CloseSocket ( ) : void
ConnectionCallback ( object owningObject, Exception e, Socket socket, IPAddress address ) : void
Deactivate ( ) : void
Destroy ( ) : void
EndMultipleWrite ( IAsyncResult asyncResult ) : void
MultipleWrite ( BufferOffsetSize buffers ) : void
Poll ( int microSeconds, SelectMode mode ) : bool
PooledStream ( ConnectionPool connectionPool, System.TimeSpan lifetime, bool checkLifetime ) : System
PooledStream ( object owner ) : System
PostPop ( object newOwner ) : void
PrePush ( object expectedOwner ) : void
SetSocketTimeoutOption ( SocketShutdown mode, int timeout, bool silent ) : void
UnsafeBeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
UnsafeBeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
UpdateLifetime ( ) : void

Method Details

Activate() protected method

protected Activate ( object owningObject, bool async, int timeout, GeneralAsyncDelegate asyncCallback ) : bool
owningObject object
async bool
timeout int
asyncCallback GeneralAsyncDelegate
return bool

CheckLifetime() protected method

protected CheckLifetime ( ) : void
return void

Close() public method

public Close ( int timeout ) : void
timeout int
return void

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 ( byte buffer, int offset, int size ) : int
buffer byte
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