Class Response
A Port Control Protocol response message.
Implements
Inherited Members
Namespace: Makaretu.Nat.Pcp
Assembly: Makaretu.Nat.dll
Syntax
public class Response : Message, ICloneable
Constructors
| Improve this Doc View SourceResponse()
Creates a new instance of the Response class.
Declaration
public Response()
Properties
| Improve this Doc View SourceEpochTime
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. |
Lifetime
The lifetime of the operation.
Declaration
public TimeSpan Lifetime { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | Resolution in seconds. |
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 SourceEnsureSuccess()
Throws an exception if the result code indicates failure.
Declaration
public void EnsureSuccess()
See Also
| Improve this Doc View SourceRead(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
Remarks
Derived classes must override this.
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
Remarks
Derived classes must override this.