/// <inheritdoc /> public override void Write(NatWriter writer) { base.Write(writer); writer.WriteByte(0); // reserved writer.WriteByte(ResultCode); writer.WriteTimeSpan(Lifetime); writer.WriteTimeSpan(EpochTime); writer.WriteBytes(reserved2); }
/// <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(0); // reserved writer.WriteTimeSpan(RequestedLifetime); writer.WriteIPv6Address(ClientAddress); }