Class Message
A Port Mapping Protocol message.
Implements
Inherited Members
Namespace: Makaretu.Nat.Pmp
Assembly: Makaretu.Nat.dll
Syntax
public class Message : NatMessage, ICloneable
Properties
| Improve this Doc View SourceIsResponse
Indicates that the message is a response.
Declaration
public bool IsResponse { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean | Defaults to false, e.g. its a request. |
Opcode
The operatation.
Declaration
public Opcode Opcode { get; set; }
Property Value
| Type | Description |
|---|---|
| Opcode | One of the Opcode values. |
Version
The protocol version.
Declaration
public byte Version { get; set; }
Property Value
| Type | Description |
|---|---|
| Byte | Defaults to zero, ProtocolVersion. |
Methods
| 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.