Class StunMessage
Assembly: Libplanet.Stun.dll
Syntax
public abstract class StunMessage : object
Constructors
|
Improve this Doc
View Source
StunMessage()
Declaration
Properties
|
Improve this Doc
View Source
Attributes
Declaration
protected IEnumerable<Attribute> Attributes { get; set; }
Property Value
|
Improve this Doc
View Source
Class
Declaration
public abstract StunMessage.MessageClass Class { get; }
Property Value
|
Improve this Doc
View Source
Method
Declaration
public abstract StunMessage.MessageMethod Method { get; }
Property Value
|
Improve this Doc
View Source
TransactionId
A 96-bit length identifier, used to uniquely identify STUN transactions.
Declaration
public byte[] TransactionId { get; }
Property Value
Methods
|
Improve this Doc
View Source
Encode(IStunContext)
Declaration
public byte[] Encode(IStunContext ctx)
Parameters
Returns
|
Improve this Doc
View Source
GetAttribute<T>()
Declaration
protected T GetAttribute<T>()
where T : Attribute
Returns
Type Parameters
|
Improve this Doc
View Source
ParseAsync(Stream, CancellationToken)
Declaration
public static async Task<StunMessage> ParseAsync(Stream stream, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
Stream |
stream |
A view of a sequence of STUN packet's bytes.
|
CancellationToken |
cancellationToken |
A cancellation token used to propagate notification that this
operation should be canceled.
|
Returns