C# Class System.Net.Sockets.NetworkStream

Inheritance: System.IO.Stream, IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
ConvertToNotSocketOwner void
CopyToAsyncCore System.Threading.Task
DebugMembers void
InternalAbortSocket void
NetworkStream System.Buffers
Poll bool
PollRead bool
SetSocketTimeoutOption void
UnsafeBeginRead IAsyncResult
UnsafeBeginWrite IAsyncResult

Méthodes publiques

Méthode 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
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : System.Threading.Task
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
NetworkStream ( Socket socket ) : System.Buffers
NetworkStream ( Socket socket, FileAccess access ) : System.Buffers
NetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System.Buffers
NetworkStream ( Socket socket, bool ownsSocket ) : System.Buffers
Read ( byte buffer, int offset, int size ) : int
ReadAsync ( byte buffer, int offset, int size, 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 size, CancellationToken cancellationToken ) : System.Threading.Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ConvertToNotSocketOwner ( ) : void
CopyToAsyncCore ( Stream destination, AwaitableSocketAsyncEventArgs ea, CancellationToken cancellationToken ) : System.Threading.Task
DebugMembers ( ) : void
InternalAbortSocket ( ) : void
NetworkStream ( ) : System.Buffers
Poll ( int microSeconds, SelectMode mode ) : bool
PollRead ( ) : bool
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

Method Details

BeginRead() public méthode

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

BeginWrite() public méthode

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

Close() public méthode

public Close ( int timeout ) : void
timeout int
Résultat void

CopyToAsync() public méthode

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : System.Threading.Task
destination System.IO.Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

public FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task

NetworkStream() public méthode

public NetworkStream ( Socket socket ) : System.Buffers
socket Socket
Résultat System.Buffers

NetworkStream() public méthode

public NetworkStream ( Socket socket, FileAccess access ) : System.Buffers
socket Socket
access FileAccess
Résultat System.Buffers

NetworkStream() public méthode

public NetworkStream ( Socket socket, FileAccess access, bool ownsSocket ) : System.Buffers
socket Socket
access FileAccess
ownsSocket bool
Résultat System.Buffers

NetworkStream() public méthode

public NetworkStream ( Socket socket, bool ownsSocket ) : System.Buffers
socket Socket
ownsSocket bool
Résultat System.Buffers

Read() public méthode

public Read ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
Résultat int

ReadAsync() public méthode

public ReadAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : Task
buffer byte
offset int
size int
cancellationToken System.Threading.CancellationToken
Résultat Task

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
Résultat void

WriteAsync() public méthode

public WriteAsync ( byte buffer, int offset, int size, CancellationToken cancellationToken ) : System.Threading.Task
buffer byte
offset int
size int
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task