Class StunAddress
The address attributes of STUN: XOR-MAPPED-ADDRESS and the like, whose port and address are XOR'ed with the magic cookie and, for IPv6, the transaction ID, so that middleboxes do not rewrite them.
Assembly: Uniform.Stun.Protocol.dll
public static class StunAddress
Methods
|
Edit this page
View Source
Return the address of an XOR'ed address attribute's value, or null when malformed.
Declaration
public static IPEndPoint? DecodeXor(ReadOnlySpan<byte> value, byte[] transactionId)
Parameters
Returns
|
Edit this page
View Source
Return the value of an XOR'ed address attribute for endPoint in a message with transactionId.
Declaration
public static byte[] EncodeXor(IPEndPoint endPoint, byte[] transactionId)
Parameters
Returns