C# Class PeerCastStation.Core.ConnectionStream

Inheritance: Stream
Mostrar archivo Open project: kumaryu/peercaststation Class Usage Examples

Public Methods

Method Description
CloseAsync ( CancellationToken cancel_token ) : Task
ConnectionStream ( Stream read_stream, Stream write_stream ) : System
ConnectionStream ( Stream read_stream, Stream write_stream, bool leave_open ) : System
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( int length ) : Task
ReadAsync ( int length, CancellationToken cancel_token ) : Task
ReadAsync ( byte buf, int offset, int length, CancellationToken cancel_token ) : Task
ReadByteAsync ( ) : Task
ReadByteAsync ( CancellationToken cancel_token ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte bytes ) : Task
WriteAsync ( byte bytes, CancellationToken cancel_token ) : Task
WriteAsync ( byte buf, int offset, int length, CancellationToken cancel_token ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
LinkTimeoutCancelTokenSource ( int timeout, CancellationToken cancel_token ) : CancellationTokenSource
WaitOrCancelTask ( Task task, CancellationToken cancel_token ) : Task
WaitOrCancelTask ( Task task, CancellationToken cancel_token ) : Task

Method Details

CloseAsync() public method

public CloseAsync ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

ConnectionStream() public method

public ConnectionStream ( Stream read_stream, Stream write_stream ) : System
read_stream Stream
write_stream Stream
return System

ConnectionStream() public method

public ConnectionStream ( Stream read_stream, Stream write_stream, bool leave_open ) : System
read_stream Stream
write_stream Stream
leave_open bool
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
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 count ) : int
buffer byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( int length ) : Task
length int
return Task

ReadAsync() public method

public ReadAsync ( int length, CancellationToken cancel_token ) : Task
length int
cancel_token System.Threading.CancellationToken
return Task

ReadAsync() public method

public ReadAsync ( byte buf, int offset, int length, CancellationToken cancel_token ) : Task
buf byte
offset int
length int
cancel_token System.Threading.CancellationToken
return Task

ReadByteAsync() public method

public ReadByteAsync ( ) : Task
return Task

ReadByteAsync() public method

public ReadByteAsync ( CancellationToken cancel_token ) : Task
cancel_token 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 count ) : void
buffer byte
offset int
count int
return void

WriteAsync() public method

public WriteAsync ( byte bytes ) : Task
bytes byte
return Task

WriteAsync() public method

public WriteAsync ( byte bytes, CancellationToken cancel_token ) : Task
bytes byte
cancel_token System.Threading.CancellationToken
return Task

WriteAsync() public method

public WriteAsync ( byte buf, int offset, int length, CancellationToken cancel_token ) : Task
buf byte
offset int
length int
cancel_token System.Threading.CancellationToken
return Task