/// <inheritdoc /> public override void Write(NatWriter writer) { base.Write(writer); writer.WriteUInt16(0); // reserved writer.WriteUInt16(InternalPort); writer.WriteUInt16(PreferredExternalPort); writer.WriteTimeSpan(Lifetime); }
/// <inheritdoc /> public override void Write(NatWriter writer) { base.Write(writer); writer.WriteUInt16(PeerPort); writer.WriteUInt16(0); // reserved writer.WriteIPv6Address(PeerAddress); }
/// <inheritdoc /> public override void Write(NatWriter writer) { base.Write(writer); writer.WriteBytes(Nonce); writer.WriteByte((byte)Protocol); writer.WriteByte(0); // reserved 24 bits (3 bytes) writer.WriteByte(0); writer.WriteByte(0); writer.WriteUInt16(InternalPort); writer.WriteUInt16(AssignedExternalPort); writer.WriteIPv6Address(AssignedExternalAdddress); }
/// <inheritdoc /> public override void Write(NatWriter writer) { base.Write(writer); writer.WriteUInt16(0); // reserved writer.WriteTimeSpan(RequestedLifetime); writer.WriteIPv6Address(ClientAddress); }