C# Class System.Net.NetworkStreamWrapper

Inheritance: System.IO.Stream
Datei anzeigen Open project: dotnet/corefx

Private Properties

Property Type Description
CloseSocket void
NetworkStreamWrapper System.IO
SetSocketTimeoutOption void

Public Methods

Method Description
BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
Close ( int timeout ) : void
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Read ( byte buffer, int offset, int size ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int size ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CloseSocket ( ) : void
NetworkStreamWrapper ( TcpClient client ) : System.IO
SetSocketTimeoutOption ( int timeout ) : void

Method Details

BeginRead() public method

public BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state Object
return IAsyncResult

BeginWrite() public method

public BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, Object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state Object
return IAsyncResult

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

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

Read() public method

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

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task

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

WriteAsync() public method

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task