Show / Hide Table of Contents

Class Response

A Port Control Protocol response message.

Inheritance
Object
NatMessage
Message
Response
MapResponse
Implements
ICloneable
Inherited Members
Message.NonceLength
Message.Version
Message.Opcode
Message.IsResponse
Message.Create(Byte[])
Message.Create<T>(Byte[])
NatMessage.Length()
NatMessage.Clone()
NatMessage.Clone<T>()
NatMessage.ToByteArray()
NatMessage.Write(Stream)
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Makaretu.Nat.Pcp
Assembly: Makaretu.Nat.dll
Syntax
public class Response : Message, ICloneable

Constructors

| Improve this Doc View Source

Response()

Creates a new instance of the Response class.

Declaration
public Response()

Properties

| Improve this Doc View Source

EpochTime

The current time of the NAT server.

Declaration
public TimeSpan EpochTime { get; set; }
Property Value
Type Description
TimeSpan

Typically, the number of seconds since the last reset.

| Improve this Doc View Source

Lifetime

The lifetime of the operation.

Declaration
public TimeSpan Lifetime { get; set; }
Property Value
Type Description
TimeSpan

Resolution in seconds.

| Improve this Doc View Source

ResultCode

Success or failure indicator.

Declaration
public byte ResultCode { get; set; }
Property Value
Type Description
Byte

0 for success; otherwise, failure.

Methods

| Improve this Doc View Source

EnsureSuccess()

Throws an exception if the result code indicates failure.

Declaration
public void EnsureSuccess()
See Also
ResultCode
| Improve this Doc View Source

Read(NatReader)

Reads the NAT message.

Declaration
public override void Read(NatReader reader)
Parameters
Type Name Description
NatReader reader

The source for the NAT message.

Overrides
Message.Read(NatReader)
Remarks

Derived classes must override this.

| Improve this Doc View Source

Write(NatWriter)

Writes the NAT message.

Declaration
public override void Write(NatWriter writer)
Parameters
Type Name Description
NatWriter writer

The destination for the NAT message.

Overrides
Message.Write(NatWriter)
Remarks

Derived classes must override this.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX