Example #1
0
        /// <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);
        }
Example #2
0
 /// <inheritdoc />
 public override void Write(NatWriter writer)
 {
     base.Write(writer);
     writer.WriteUInt16(0); // reserved
     writer.WriteUInt16(InternalPort);
     writer.WriteUInt16(PreferredExternalPort);
     writer.WriteTimeSpan(Lifetime);
 }
Example #3
0
        /// <inheritdoc />
        public override void Write(NatWriter writer)
        {
            base.Write(writer);

            writer.WriteUInt16(0); // reserved
            writer.WriteTimeSpan(RequestedLifetime);
            writer.WriteIPv6Address(ClientAddress);
        }