C# Class System.Net.WebSockets.WebSocketHttpListenerDuplexStream

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

Méthodes publiques

Méthode Description
Abort ( ) : void
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
CloseNetworkConnectionAsync ( CancellationToken cancellationToken ) : Task
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
MultipleWriteAsync ( IList sendBuffers, CancellationToken cancellationToken ) : Task
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
SwitchToOpaqueMode ( WebSocketBase webSocket ) : void
WebSocketHttpListenerDuplexStream ( HttpRequestStream inputStream, HttpResponseStream outputStream, HttpListenerContext context ) : Microsoft.Win32.SafeHandles
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte value ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CanHandleException ( Exception error ) : bool
MultipleWriteAsyncCore ( IList sendBuffers, CancellationToken cancellationToken ) : Task
OnCancel ( object state ) : void
OnReadCompleted ( object sender, HttpListenerAsyncEventArgs eventArgs ) : void
OnWriteCompleted ( object sender, HttpListenerAsyncEventArgs eventArgs ) : void
ReadAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadAsyncFast ( HttpListenerAsyncEventArgs eventArgs ) : bool
WriteAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteAsyncFast ( HttpListenerAsyncEventArgs eventArgs ) : bool

Method Details

Abort() public méthode

public Abort ( ) : void
Résultat void

BeginRead() public méthode

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

BeginWrite() public méthode

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

CloseNetworkConnectionAsync() public méthode

public CloseNetworkConnectionAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat 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 ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task

MultipleWriteAsync() public méthode

public MultipleWriteAsync ( IList sendBuffers, CancellationToken cancellationToken ) : Task
sendBuffers IList
cancellationToken System.Threading.CancellationToken
Résultat Task

Read() public méthode

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

ReadAsync() public méthode

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

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

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

SwitchToOpaqueMode() public méthode

public SwitchToOpaqueMode ( WebSocketBase webSocket ) : void
webSocket WebSocketBase
Résultat void

WebSocketHttpListenerDuplexStream() public méthode

public WebSocketHttpListenerDuplexStream ( HttpRequestStream inputStream, HttpResponseStream outputStream, HttpListenerContext context ) : Microsoft.Win32.SafeHandles
inputStream HttpRequestStream
outputStream HttpResponseStream
context HttpListenerContext
Résultat Microsoft.Win32.SafeHandles

Write() public méthode

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

WriteAsync() public méthode

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

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void