Class Psk1Stream
Assembly: PeerTalk.dll
Syntax
public class Psk1Stream : Stream, IDisposable
Constructors
|
Improve this Doc
View Source
Psk1Stream(Stream, PreSharedKey)
Declaration
public Psk1Stream(Stream stream, PreSharedKey key)
Parameters
Type |
Name |
Description |
Stream |
stream |
The source/destination of the unprotected stream.
|
PreSharedKey |
key |
The pre-shared 256-bit key for the private network of peers.
|
Properties
|
Improve this Doc
View Source
CanRead
Declaration
public override bool CanRead { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CanSeek
Declaration
public override bool CanSeek { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CanTimeout
Declaration
public override bool CanTimeout { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Length
Declaration
public override long Length { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Position
Declaration
public override long Position { get; set; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
Flush()
Declaration
public override void Flush()
Overrides
|
Improve this Doc
View Source
FlushAsync(CancellationToken)
Declaration
public override Task FlushAsync(CancellationToken cancel)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Read(Byte[], Int32, Int32)
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ReadAsync(Byte[], Int32, Int32, CancellationToken)
Declaration
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Seek(Int64, SeekOrigin)
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
SetLength(Int64)
Declaration
public override void SetLength(long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Overrides
|
Improve this Doc
View Source
Write(Byte[], Int32, Int32)
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Overrides
|
Improve this Doc
View Source
WriteAsync(Byte[], Int32, Int32, CancellationToken)
Declaration
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
WriteByte(Byte)
Declaration
public override void WriteByte(byte value)
Parameters
Type |
Name |
Description |
Byte |
value |
|
Overrides
Implements
Extension Methods
See Also