Exemplo n.º 1
0
 public StunBuilderStep SetTransactionId(StunTransactionId transactionId)
 {
     return(new StunBuilderStep(type, transactionId, attributes));
 }
Exemplo n.º 2
0
 private StunMessage(ReadOnlyMemory <byte> bytes)
 {
     Type          = new StunMessageType(NetworkBitConverter.ToUInt16(bytes.Span.Slice(0, 2)));
     TransactionId = new StunTransactionId(bytes.Slice(8, 12));
     Attributes    = new StunAttributes(SliceAttributes(bytes));
 }
Exemplo n.º 3
0
 private StunBuilderStep(StunMessageType type, StunTransactionId transactionId, ReadOnlyMemory <byte> attributes)
 {
     this.type          = type;
     this.transactionId = transactionId;
     this.attributes    = attributes;
 }